2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
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
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
702 ENABLE_LLVMC_DYNAMIC_PLUGINS
750 CONVENIENCE_LTDL_TRUE
751 CONVENIENCE_LTDL_FALSE
758 NO_MISSING_FIELD_INITIALIZERS
782 ENABLE_VISIBILITY_INLINES_HIDDEN
788 ac_precious_vars='build_alias
799 ac_subdirs_all='projects/sample
801 projects/llvm-stacker
808 projects/llvm-poolalloc
810 projects/llvm-kernel'
812 # Initialize some variables set by options.
814 ac_init_version=false
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
824 program_transform_name=s,x,x,
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917 { (exit 1); exit 1; }; }
918 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
919 eval enable_$ac_feature=no ;;
921 -docdir | --docdir | --docdi | --doc | --do)
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 -enable-* | --enable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
953 -help | --help | --hel | --he | -h)
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1102 -site=* | --site=* | --sit=*)
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1129 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_package=`echo $ac_package| sed 's/-/_/g'`
1135 eval with_$ac_package=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package | sed 's/-/_/g'`
1144 eval with_$ac_package=no ;;
1147 # Obsolete; use --with-x.
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) { echo "$as_me: error: unrecognized option: $ac_option
1165 Try \`$0 --help' for more information." >&2
1166 { (exit 1); exit 1; }; }
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1173 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1174 { (exit 1); exit 1; }; }
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 { echo "$as_me: error: missing argument to $ac_option" >&2
1192 { (exit 1); exit 1; }; }
1195 # Be sure to have absolute directory names.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1201 eval ac_val=\$$ac_var
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207 { (exit 1); exit 1; }; }
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 { echo "$as_me: error: Working directory cannot be determined" >&2
1238 { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 { echo "$as_me: error: pwd does not report name of working directory" >&2
1241 { (exit 1); exit 1; }; }
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$0" ||
1249 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$0" : 'X\(//\)[^/]' \| \
1251 X"$0" : 'X\(//\)$' \| \
1252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281 { (exit 1); exit 1; }; }
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1286 { (exit 1); exit 1; }; }
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 --target=TARGET configure for building compilers for TARGET [HOST]
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-optimized Compile with optimizations enabled (default is NO)
1386 --enable-profiling Compile with profiling enabled (default is NO)
1387 --enable-assertions Compile with assertion checks enabled (default is
1389 --enable-expensive-checks
1390 Compile with expensive debug checks enabled (default
1392 --enable-debug-runtime Build runtime libs with debug symbols (default is
1394 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1395 optimization is on and YES if it's off)
1396 --enable-jit Enable Just In Time Compiling (default is YES)
1397 --enable-doxygen Build doxygen documentation (default is NO)
1398 --enable-threads Use threads if available (default is YES)
1399 --enable-pic Build LLVM with Position Independent Code (default
1401 --enable-targets Build specific host targets: all or
1402 target1,target2,... Valid targets are: host, x86,
1403 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1404 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1405 and cpp (default=all)
1406 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-libffi Check for the presence of libffi (default is NO)
1411 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1413 --enable-llvmc-dynamic-plugins
1414 Enable dynamic LLVMC plugins (default is YES)
1415 --enable-ltdl-install install libltdl
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1422 --with-llvmgcc Specify location of llvm-gcc driver (default
1424 --with-llvmgxx Specify location of llvm-g++ driver (default
1426 --with-optimize-option Select the compiler options to use for optimized
1428 --with-extra-options Specify additional options to compile LLVM with
1429 --with-ocaml-libdir Specify install location for ocaml bindings (default
1431 --with-c-include-dirs Colon separated list of directories clang will
1433 --with-cxx-include-root Directory with the libstdc++ headers.
1434 --with-cxx-include-arch Architecture of the libstdc++ headers.
1435 --with-cxx-include-32bit-dir
1436 32 bit multilib dir.
1437 --with-cxx-include-64bit-dir
1438 64 bit multilib directory.
1439 --with-binutils-include Specify path to binutils/include/ containing
1440 plugin-api.h file for gold plugin.
1441 --with-tclinclude directory where tcl headers are
1442 --with-udis86=<path> Use udis86 external x86 disassembler library
1443 --with-oprofile=<prefix>
1444 Tell OProfile >= 0.9.4 how to symbolize JIT output
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to <llvmbugs@cs.uiuc.edu>.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" || continue
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1488 .) # We are building in place.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1521 llvm configure 2.7svn
1522 generated by GNU Autoconf 2.60
1524 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1525 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1529 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1533 cat >config.log <<_ACEOF
1534 This file contains any messages produced by compilers while
1535 running configure, to aid debugging if configure makes a mistake.
1537 It was created by llvm $as_me 2.7svn, which was
1538 generated by GNU Autoconf 2.60. Invocation command line was
1550 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1551 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1552 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1553 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1554 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1556 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1557 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1559 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1560 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1561 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1562 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1563 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1564 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1565 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 echo "PATH: $as_dir"
1590 # Keep a trace of the command line.
1591 # Strip out --no-create and --no-recursion so they do not pile up.
1592 # Strip out --silent because we don't want to record it for future runs.
1593 # Also quote any args containing shell meta-characters.
1594 # Make two passes to allow for proper duplicate-argument suppression.
1598 ac_must_keep_next=false
1604 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1606 | -silent | --silent | --silen | --sile | --sil)
1609 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1612 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1614 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1615 if test $ac_must_keep_next = true; then
1616 ac_must_keep_next=false # Got value, back to normal.
1619 *=* | --config-cache | -C | -disable-* | --disable-* \
1620 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1621 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1622 | -with-* | --with-* | -without-* | --without-* | --x)
1623 case "$ac_configure_args0 " in
1624 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1627 -* ) ac_must_keep_next=true ;;
1630 ac_configure_args="$ac_configure_args '$ac_arg'"
1635 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1636 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1638 # When interrupted or exit'd, cleanup temporary files, and complete
1639 # config.log. We remove comments because anyway the quotes in there
1640 # would cause problems or look ugly.
1641 # WARNING: Use '\'' to represent an apostrophe within the trap.
1642 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1643 trap 'exit_status=$?
1644 # Save into config.log some information that might help in debugging.
1649 ## ---------------- ##
1650 ## Cache variables. ##
1651 ## ---------------- ##
1654 # The following way of writing the cache mishandles newlines in values,
1656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1657 eval ac_val=\$$ac_var
1661 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1662 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1665 _ | IFS | as_nl) ;; #(
1666 *) $as_unset $ac_var ;;
1671 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672 *${as_nl}ac_space=\ *)
1674 "s/'\''/'\''\\\\'\'''\''/g;
1675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1686 ## ----------------- ##
1687 ## Output variables. ##
1688 ## ----------------- ##
1691 for ac_var in $ac_subst_vars
1693 eval ac_val=\$$ac_var
1695 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697 echo "$ac_var='\''$ac_val'\''"
1701 if test -n "$ac_subst_files"; then
1703 ## ------------------- ##
1704 ## File substitutions. ##
1705 ## ------------------- ##
1708 for ac_var in $ac_subst_files
1710 eval ac_val=\$$ac_var
1712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714 echo "$ac_var='\''$ac_val'\''"
1719 if test -s confdefs.h; then
1729 test "$ac_signal" != 0 &&
1730 echo "$as_me: caught signal $ac_signal"
1731 echo "$as_me: exit $exit_status"
1733 rm -f core *.core core.conftest.* &&
1734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1737 for ac_signal in 1 2 13 15; do
1738 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1743 rm -f -r conftest* confdefs.h
1745 # Predefined preprocessor variables.
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_NAME "$PACKAGE_NAME"
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_STRING "$PACKAGE_STRING"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1772 # Let the site file select an alternate cache file if it wants to.
1773 # Prefer explicitly selected file to automatically selected ones.
1774 if test -n "$CONFIG_SITE"; then
1775 set x "$CONFIG_SITE"
1776 elif test "x$prefix" != xNONE; then
1777 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1779 set x "$ac_default_prefix/share/config.site" \
1780 "$ac_default_prefix/etc/config.site"
1785 if test -r "$ac_site_file"; then
1786 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1787 echo "$as_me: loading site script $ac_site_file" >&6;}
1788 sed 's/^/| /' "$ac_site_file" >&5
1793 if test -r "$cache_file"; then
1794 # Some versions of bash will fail to source /dev/null (special
1795 # files actually), so we avoid doing that.
1796 if test -f "$cache_file"; then
1797 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1798 echo "$as_me: loading cache $cache_file" >&6;}
1800 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1801 *) . "./$cache_file";;
1805 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1806 echo "$as_me: creating cache $cache_file" >&6;}
1810 # Check that the precious variables saved in the cache have kept the same
1812 ac_cache_corrupted=false
1813 for ac_var in $ac_precious_vars; do
1814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1815 eval ac_new_set=\$ac_env_${ac_var}_set
1816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1817 eval ac_new_val=\$ac_env_${ac_var}_value
1818 case $ac_old_set,$ac_new_set in
1820 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1822 ac_cache_corrupted=: ;;
1824 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1825 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1826 ac_cache_corrupted=: ;;
1829 if test "x$ac_old_val" != "x$ac_new_val"; then
1830 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1831 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1832 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1833 echo "$as_me: former value: $ac_old_val" >&2;}
1834 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1835 echo "$as_me: current value: $ac_new_val" >&2;}
1836 ac_cache_corrupted=:
1839 # Pass precious variables to config.status.
1840 if test "$ac_new_set" = set; then
1842 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1843 *) ac_arg=$ac_var=$ac_new_val ;;
1845 case " $ac_configure_args " in
1846 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1847 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1851 if $ac_cache_corrupted; then
1852 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1856 { (exit 1); exit 1; }; }
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1900 for ac_dir in autoconf "$srcdir"/autoconf; do
1901 if test -f "$ac_dir/install-sh"; then
1903 ac_install_sh="$ac_aux_dir/install-sh -c"
1905 elif test -f "$ac_dir/install.sh"; then
1907 ac_install_sh="$ac_aux_dir/install.sh -c"
1909 elif test -f "$ac_dir/shtool"; then
1911 ac_install_sh="$ac_aux_dir/shtool install -c"
1915 if test -z "$ac_aux_dir"; then
1916 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1917 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1918 { (exit 1); exit 1; }; }
1921 # These three variables are undocumented and unsupported,
1922 # and are intended to be withdrawn in a future Autoconf release.
1923 # They can cause serious problems if a builder's source tree is in a directory
1924 # whose full name contains unusual characters.
1925 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1926 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1927 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1931 if test ${srcdir} != "." ; then
1932 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1933 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1934 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1935 { (exit 1); exit 1; }; }
1939 for i in `ls ${srcdir}/projects`
1941 if test -d ${srcdir}/projects/${i} ; then
1944 sample) subdirs="$subdirs projects/sample"
1946 privbracket) subdirs="$subdirs projects/privbracket"
1948 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1950 # llvm-test is the old name of the test-suite, kept here for backwards
1952 llvm-test) subdirs="$subdirs projects/llvm-test"
1954 test-suite) subdirs="$subdirs projects/test-suite"
1956 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1958 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1960 llvm-java) subdirs="$subdirs projects/llvm-java"
1962 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1964 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1966 poolalloc) subdirs="$subdirs projects/poolalloc"
1968 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1971 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1972 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: checking build system type" >&5
1986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 echo "${ECHO_T}$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
2012 ac_save_IFS=$IFS; IFS='-'
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025 { echo "$as_me:$LINENO: checking host system type" >&5
2026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 echo "${ECHO_T}$ac_cv_host" >&6; }
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 echo "$as_me: error: invalid value of canonical host" >&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 $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking target system type" >&5
2063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_target+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$target_alias" = x; then
2068 ac_cv_target=$ac_cv_host
2070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078 echo "${ECHO_T}$ac_cv_target" >&6; }
2079 case $ac_cv_target in
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082 echo "$as_me: error: invalid value of canonical target" >&2;}
2083 { (exit 1); exit 1; }; };;
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2104 program_prefix=${target_alias}-
2106 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2107 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2108 if test "${llvm_cv_os_type+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 llvm_cv_link_all_option="-Wl,--whole-archive"
2114 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2115 llvm_cv_os_type="AIX"
2116 llvm_cv_platform_type="Unix" ;;
2118 llvm_cv_link_all_option="-Wl,--whole-archive"
2119 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2120 llvm_cv_os_type="IRIX"
2121 llvm_cv_platform_type="Unix" ;;
2123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2125 llvm_cv_os_type="Cygwin"
2126 llvm_cv_platform_type="Unix" ;;
2128 llvm_cv_link_all_option="-Wl,-all_load"
2129 llvm_cv_no_link_all_option="-Wl,-noall_load"
2130 llvm_cv_os_type="Darwin"
2131 llvm_cv_platform_type="Unix" ;;
2133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2135 llvm_cv_os_type="FreeBSD"
2136 llvm_cv_platform_type="Unix" ;;
2138 llvm_cv_link_all_option="-Wl,--whole-archive"
2139 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2140 llvm_cv_os_type="OpenBSD"
2141 llvm_cv_platform_type="Unix" ;;
2143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145 llvm_cv_os_type="NetBSD"
2146 llvm_cv_platform_type="Unix" ;;
2148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150 llvm_cv_os_type="DragonFly"
2151 llvm_cv_platform_type="Unix" ;;
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="HP-UX"
2156 llvm_cv_platform_type="Unix" ;;
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="Interix"
2161 llvm_cv_platform_type="Unix" ;;
2163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165 llvm_cv_os_type="Linux"
2166 llvm_cv_platform_type="Unix" ;;
2168 llvm_cv_link_all_option="-Wl,-z,allextract"
2169 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2170 llvm_cv_os_type="SunOS"
2171 llvm_cv_platform_type="Unix" ;;
2173 llvm_cv_link_all_option="-Wl,-z,allextract"
2174 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2175 llvm_cv_os_type="AuroraUX"
2176 llvm_cv_platform_type="Unix" ;;
2178 llvm_cv_link_all_option="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2180 llvm_cv_os_type="Win32"
2181 llvm_cv_platform_type="Win32" ;;
2183 llvm_cv_link_all_option="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2185 llvm_cv_os_type="MingW"
2186 llvm_cv_platform_type="Win32" ;;
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="Haiku"
2191 llvm_cv_platform_type="Unix" ;;
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="Freestanding"
2196 llvm_cv_platform_type="Unix" ;;
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Freestanding"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option=""
2204 llvm_cv_no_link_all_option=""
2205 llvm_cv_os_type="Unknown"
2206 llvm_cv_platform_type="Unknown" ;;
2209 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2210 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2212 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2213 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2214 if test "${llvm_cv_target_os_type+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 llvm_cv_target_os_type="AIX" ;;
2221 llvm_cv_target_os_type="IRIX" ;;
2223 llvm_cv_target_os_type="Cygwin" ;;
2225 llvm_cv_target_os_type="Darwin" ;;
2227 llvm_cv_target_os_type="FreeBSD" ;;
2229 llvm_cv_target_os_type="OpenBSD" ;;
2231 llvm_cv_target_os_type="NetBSD" ;;
2233 llvm_cv_target_os_type="DragonFly" ;;
2235 llvm_cv_target_os_type="HP-UX" ;;
2237 llvm_cv_target_os_type="Interix" ;;
2239 llvm_cv_target_os_type="Linux" ;;
2241 llvm_cv_target_os_type="SunOS" ;;
2243 llvm_cv_target_os_type="AuroraUX" ;;
2245 llvm_cv_target_os_type="Win32" ;;
2247 llvm_cv_target_os_type="MingW" ;;
2249 llvm_cv_target_os_type="Haiku" ;;
2251 llvm_cv_target_os_type="Freestanding" ;;
2253 llvm_cv_target_os_type="Unknown" ;;
2256 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2257 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2259 if test "$llvm_cv_os_type" = "Unknown" ; then
2260 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2261 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2262 { (exit 1); exit 1; }; }
2267 HOST_OS=$llvm_cv_os_type
2269 TARGET_OS=$llvm_cv_target_os_type
2272 LINKALL=$llvm_cv_link_all_option
2274 NOLINKALL=$llvm_cv_no_link_all_option
2277 case $llvm_cv_platform_type in
2280 cat >>confdefs.h <<\_ACEOF
2281 #define LLVM_ON_UNIX 1
2291 cat >>confdefs.h <<\_ACEOF
2292 #define LLVM_ON_WIN32 1
2302 { echo "$as_me:$LINENO: checking target architecture" >&5
2303 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_arch+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 i?86-*) llvm_cv_target_arch="x86" ;;
2309 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2310 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2311 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2312 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2313 arm*-*) llvm_cv_target_arch="ARM" ;;
2314 mips-*) llvm_cv_target_arch="Mips" ;;
2315 pic16-*) llvm_cv_target_arch="PIC16" ;;
2316 xcore-*) llvm_cv_target_arch="XCore" ;;
2317 msp430-*) llvm_cv_target_arch="MSP430" ;;
2318 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2319 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2320 *) llvm_cv_target_arch="Unknown" ;;
2323 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2324 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2326 if test "$llvm_cv_target_arch" = "Unknown" ; then
2327 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2328 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2331 # Determine the LLVM native architecture for the target
2332 case "$llvm_cv_target_arch" in
2333 x86) LLVM_NATIVE_ARCH="X86" ;;
2334 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2335 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2338 ARCH=$llvm_cv_target_arch
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CC"; then
2376 { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_CC"; then
2387 # Extract the first word of "gcc", so it can be a program name with args.
2388 set dummy gcc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_CC="gcc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415 if test -n "$ac_ct_CC"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_CC" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2442 if test -z "$CC"; then
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}cc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_CC="${ac_tool_prefix}cc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2483 if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected=yes
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 for ac_prog in cl.exe
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2580 test -n "$CC" && break
2583 if test -z "$CC"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC="$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$ac_ct_CC" && break
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO: checking for C compiler version" >&5
2655 ac_compiler=`set X $ac_compile; echo $2`
2656 { (ac_try="$ac_compiler --version >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler --version >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -v >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -v >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try="$ac_compiler -V >&5"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 ac_clean_files_save=$ac_clean_files
2703 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2704 # Try to create an executable without -o first, disregard a.out.
2705 # It will help us diagnose broken compilers, and finding out an intuition
2707 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2709 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2711 # List of possible output files, starting from the most likely.
2712 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2713 # only as a last resort. b.out is created by i960 compilers.
2714 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2716 # The IRIX 6 linker writes into existing files which may not be
2717 # executable, retaining their permissions. Remove them first so a
2718 # subsequent execution test works.
2720 for ac_file in $ac_files
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2729 if { (ac_try="$ac_link_default"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link_default") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2744 for ac_file in $ac_files
2746 test -f "$ac_file" || continue
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2751 # We found the default executable, but exeext='' is most
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779 { (exit 77); exit 77; }; }
2782 ac_exeext=$ac_cv_exeext
2783 { echo "$as_me:$LINENO: result: $ac_file" >&5
2784 echo "${ECHO_T}$ac_file" >&6; }
2786 # Check that the compiler produces executables we can run. If not, either
2787 # the compiler is broken, or we cross compile.
2788 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2789 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2790 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2791 # If not cross compiling, check that we can run a simple program.
2792 if test "$cross_compiling" != yes; then
2793 if { ac_try='./$ac_file'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 if test "$cross_compiling" = maybe; then
2808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&2;}
2814 { (exit 1); exit 1; }; }
2818 { echo "$as_me:$LINENO: result: yes" >&5
2819 echo "${ECHO_T}yes" >&6; }
2821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2822 ac_clean_files=$ac_clean_files_save
2823 # Check that the compiler produces executables we can run. If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2827 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828 echo "${ECHO_T}$cross_compiling" >&6; }
2830 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2832 if { (ac_try="$ac_link"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_link") 2>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; then
2842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2843 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2844 # work properly (i.e., refer to `conftest.exe'), while it won't with
2846 for ac_file in conftest.exe conftest conftest.*; do
2847 test -f "$ac_file" || continue
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2863 rm -f conftest$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2865 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2867 rm -f conftest.$ac_ext
2868 EXEEXT=$ac_cv_exeext
2870 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2871 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2872 if test "${ac_cv_objext+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.o conftest.obj
2891 if { (ac_try="$ac_compile"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 for ac_file in conftest.o conftest.obj conftest.*; do
2902 test -f "$ac_file" || continue;
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2922 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2923 echo "${ECHO_T}$ac_cv_objext" >&6; }
2924 OBJEXT=$ac_cv_objext
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_save_c_werror_flag=$ac_c_werror_flag
3006 ac_c_werror_flag=yes
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3188 if test "$ac_test_CFLAGS" = set; then
3189 CFLAGS=$ac_save_CFLAGS
3190 elif test $ac_cv_prog_cc_g = yes; then
3191 if test "$GCC" = yes; then
3197 if test "$GCC" = yes; then
3203 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3204 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3205 if test "${ac_cv_prog_cc_c89+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 ac_cv_prog_cc_c89=no
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3218 #include <sys/types.h>
3219 #include <sys/stat.h>
3220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3221 struct buf { int x; };
3222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223 static char *e (p, i)
3229 static char *f (char * (*g) (char **, int), char **p, ...)
3234 s = g (p, va_arg (v,int));
3239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3240 function prototypes and stuff, but not '\xHH' hex character constants.
3241 These don't provoke an error unfortunately, instead are silently treated
3242 as 'x'. The following induces an error, until -std is added to get
3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3244 array size at least. It's necessary to write '\x00'==0 to get something
3245 that's true only with -std. */
3246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249 inside strings and character constants. */
3251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253 int test (int i, double x);
3254 struct s1 {int (*f) (int a);};
3255 struct s2 {int (*f) (double a);};
3256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270 CC="$ac_save_CC $ac_arg"
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_prog_cc_c89=$ac_arg
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 rm -f conftest.$ac_ext
3321 case "x$ac_cv_prog_cc_c89" in
3323 { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3326 { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3329 CC="$CC $ac_cv_prog_cc_c89"
3330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3349 # On Suns, sometimes $CPP names a directory.
3350 if test -n "$CPP" && test -d "$CPP"; then
3353 if test -z "$CPP"; then
3354 if test "${ac_cv_prog_CPP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 # Double quotes because CPP needs to be expanded
3358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 for ac_c_preproc_warn_flag in '' yes
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
3367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3376 # include <limits.h>
3378 # include <assert.h>
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 if test -z "$ac_cpp_err"; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 # Broken: fails on valid input.
3414 rm -f conftest.err conftest.$ac_ext
3416 # OK, works on sane cases. Now check whether nonexistent headers
3417 # can be detected and how.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <ac_nonexistent.h>
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3449 # Broken: success on invalid input.
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Passes both tests.
3460 rm -f conftest.err conftest.$ac_ext
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3477 { echo "$as_me:$LINENO: result: $CPP" >&5
3478 echo "${ECHO_T}$CPP" >&6; }
3480 for ac_c_preproc_warn_flag in '' yes
3482 # Use a header file that comes with gcc, so configuring glibc
3483 # with a fresh cross-compiler works.
3484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3485 # <limits.h> exists even on freestanding compilers.
3486 # On the NeXT, cc -E runs the code through the compiler's parser,
3487 # not just through cpp. "Syntax error" is here to catch this case.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3495 # include <limits.h>
3497 # include <assert.h>
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 if test -z "$ac_cpp_err"; then
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 if test -z "$ac_cpp_err"; then
3568 # Broken: success on invalid input.
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Passes both tests.
3579 rm -f conftest.err conftest.$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then
3587 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3588 See \`config.log' for more details." >&5
3589 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details." >&2;}
3591 { (exit 1); exit 1; }; }
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3602 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3603 if test "${ac_cv_path_GREP+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 # Extract the first word of "grep ggrep" to use in msg output
3607 if test -z "$GREP"; then
3608 set dummy grep ggrep; ac_prog_name=$2
3609 if test "${ac_cv_path_GREP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_path_GREP_found=false
3613 # Loop through the user's path and test for each of PROGNAME-LIST
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3618 test -z "$as_dir" && as_dir=.
3619 for ac_prog in grep ggrep; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3622 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3623 # Check for GNU ac_path_GREP and select it if it is found.
3624 # Check for GNU $ac_path_GREP
3625 case `"$ac_path_GREP" --version 2>&1` in
3627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3633 cat "conftest.in" "conftest.in" >"conftest.tmp"
3634 mv "conftest.tmp" "conftest.in"
3635 cp "conftest.in" "conftest.nl"
3636 echo 'GREP' >> "conftest.nl"
3637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639 ac_count=`expr $ac_count + 1`
3640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3641 # Best one so far, save it but keep looking for a better one
3642 ac_cv_path_GREP="$ac_path_GREP"
3643 ac_path_GREP_max=$ac_count
3645 # 10*(2^10) chars as input seems more than enough
3646 test $ac_count -gt 10 && break
3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 $ac_path_GREP_found && break 3
3662 GREP="$ac_cv_path_GREP"
3663 if test -z "$GREP"; then
3664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3666 { (exit 1); exit 1; }; }
3670 ac_cv_path_GREP=$GREP
3675 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3676 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3677 GREP="$ac_cv_path_GREP"
3680 { echo "$as_me:$LINENO: checking for egrep" >&5
3681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_EGREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686 then ac_cv_path_EGREP="$GREP -E"
3688 # Extract the first word of "egrep" to use in msg output
3689 if test -z "$EGREP"; then
3690 set dummy egrep; ac_prog_name=$2
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 ac_path_EGREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3700 test -z "$as_dir" && as_dir=.
3701 for ac_prog in egrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3704 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3705 # Check for GNU ac_path_EGREP and select it if it is found.
3706 # Check for GNU $ac_path_EGREP
3707 case `"$ac_path_EGREP" --version 2>&1` in
3709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 echo 'EGREP' >> "conftest.nl"
3719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 ac_count=`expr $ac_count + 1`
3722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_EGREP="$ac_path_EGREP"
3725 ac_path_EGREP_max=$ac_count
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 $ac_path_EGREP_found && break 3
3744 EGREP="$ac_cv_path_EGREP"
3745 if test -z "$EGREP"; then
3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748 { (exit 1); exit 1; }; }
3752 ac_cv_path_EGREP=$EGREP
3758 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3759 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3760 EGREP="$ac_cv_path_EGREP"
3763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3765 if test "${ac_cv_header_stdc+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3802 { (case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_try") 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_try") 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_cv_header_stdc=yes
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 ac_cv_header_stdc=no
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 if test $ac_cv_header_stdc = yes; then
3832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 $EGREP "memchr" >/dev/null 2>&1; then
3846 ac_cv_header_stdc=no
3852 if test $ac_cv_header_stdc = yes; then
3853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864 $EGREP "free" >/dev/null 2>&1; then
3867 ac_cv_header_stdc=no
3873 if test $ac_cv_header_stdc = yes; then
3874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3875 if test "$cross_compiling" = yes; then
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3886 #if ((' ' & 0x0FF) == 0x020)
3887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3890 # define ISLOWER(c) \
3891 (('a' <= (c) && (c) <= 'i') \
3892 || ('j' <= (c) && (c) <= 'r') \
3893 || ('s' <= (c) && (c) <= 'z'))
3894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3902 for (i = 0; i < 256; i++)
3903 if (XOR (islower (i), ISLOWER (i))
3904 || toupper (i) != TOUPPER (i))
3909 rm -f conftest$ac_exeext
3910 if { (ac_try="$ac_link"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_link") 2>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3920 { (case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_try") 2>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3931 echo "$as_me: program exited with status $ac_status" >&5
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3936 ac_cv_header_stdc=no
3938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3946 if test $ac_cv_header_stdc = yes; then
3948 cat >>confdefs.h <<\_ACEOF
3949 #define STDC_HEADERS 1
3954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3965 inttypes.h stdint.h unistd.h
3967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 $ac_includes_default
3981 #include <$ac_header>
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3998 { (case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_try") 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 eval "$as_ac_Header=yes"
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 eval "$as_ac_Header=no"
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_res=`eval echo '${'$as_ac_Header'}'`
4028 { echo "$as_me:$LINENO: result: $ac_res" >&5
4029 echo "${ECHO_T}$ac_res" >&6; }
4030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4031 cat >>confdefs.h <<_ACEOF
4032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4040 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4041 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4042 if test "${ac_cv_c_bigendian+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 # See if sys/param.h defines the BYTE_ORDER macro.
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <sys/types.h>
4053 #include <sys/param.h>
4058 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4081 { (case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_try") 2>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 # It does; now see whether it defined to BIG_ENDIAN or not.
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/param.h>
4113 #if BYTE_ORDER != BIG_ENDIAN
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_c_bigendian=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_c_bigendian=no
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 # It does not; compile a test program.
4169 if test "$cross_compiling" = yes; then
4170 # try to guess the endianness by grepping values into an object file
4171 ac_cv_c_bigendian=unknown
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4179 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4181 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4182 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4187 _ascii (); _ebcdic ();
4192 rm -f conftest.$ac_objext
4193 if { (ac_try="$ac_compile"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4201 grep -v '^ *+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4207 { (case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_try") 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4227 ac_cv_c_bigendian=yes
4229 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4230 if test "$ac_cv_c_bigendian" = unknown; then
4231 ac_cv_c_bigendian=no
4233 # finding both strings is unlikely to happen, but who knows?
4234 ac_cv_c_bigendian=unknown
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4257 /* Are we little or big endian? From Harbison&Steele. */
4261 char c[sizeof (long int)];
4264 return u.c[sizeof (long int) - 1] == 1;
4270 rm -f conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_c_bigendian=no
4292 echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_c_bigendian=yes
4299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4308 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4309 case $ac_cv_c_bigendian in
4317 { { echo "$as_me:$LINENO: error: unknown endianness
4318 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4319 echo "$as_me: error: unknown endianness
4320 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4321 { (exit 1); exit 1; }; } ;;
4325 if test "$cross_compiling" = yes; then
4326 LLVM_CROSS_COMPILING=1
4329 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4330 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4331 if test "${ac_cv_build_exeext+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4335 ac_cv_build_exeext=.exe
4337 ac_build_prefix=${build_alias}-
4339 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4340 set dummy ${ac_build_prefix}gcc; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$BUILD_CC"; then
4347 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 BUILD_CC=$ac_cv_prog_BUILD_CC
4367 if test -n "$BUILD_CC"; then
4368 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4369 echo "${ECHO_T}$BUILD_CC" >&6; }
4371 { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4376 if test -z "$BUILD_CC"; then
4377 # Extract the first word of "gcc", so it can be a program name with args.
4378 set dummy gcc; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test -n "$BUILD_CC"; then
4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_BUILD_CC="gcc"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 BUILD_CC=$ac_cv_prog_BUILD_CC
4405 if test -n "$BUILD_CC"; then
4406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407 echo "${ECHO_T}$BUILD_CC" >&6; }
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 if test -z "$BUILD_CC"; then
4415 # Extract the first word of "cc", so it can be a program name with args.
4416 set dummy cc; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$BUILD_CC"; then
4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4434 ac_prog_rejected=yes
4437 ac_cv_prog_BUILD_CC="cc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 if test $ac_prog_rejected = yes; then
4446 # We found a bogon in the path, so make sure we never use it.
4447 set dummy $ac_cv_prog_BUILD_CC
4449 if test $# != 0; then
4450 # We chose a different compiler from the bogus one.
4451 # However, it has the same basename, so the bogon will be chosen
4452 # first if we set BUILD_CC to just the basename; use the full file name.
4454 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4471 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4472 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4473 { (exit 1); exit 1; }; }
4474 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4476 echo 'int main () { return 0; }' > conftest.$ac_ext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4479 (eval $ac_build_link) 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; then
4483 for file in conftest.*; do
4485 *.c | *.o | *.obj | *.dSYM) ;;
4486 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4490 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4491 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4492 { (exit 1); exit 1; }; }
4495 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4500 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4501 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4502 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4503 ac_build_exeext=$BUILD_EXEEXT
4505 ac_build_prefix=${build_alias}-
4506 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4507 set dummy ${ac_build_prefix}g++; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$BUILD_CXX"; then
4514 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4534 if test -n "$BUILD_CXX"; then
4535 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4536 echo "${ECHO_T}$BUILD_CXX" >&6; }
4538 { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4543 if test -z "$BUILD_CXX"; then
4544 # Extract the first word of "g++", so it can be a program name with args.
4545 set dummy g++; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 if test -n "$BUILD_CXX"; then
4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_BUILD_CXX="g++"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572 if test -n "$BUILD_CXX"; then
4573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574 echo "${ECHO_T}$BUILD_CXX" >&6; }
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 if test -z "$BUILD_CXX"; then
4582 # Extract the first word of "c++", so it can be a program name with args.
4583 set dummy c++; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$BUILD_CXX"; then
4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4601 ac_prog_rejected=yes
4604 ac_cv_prog_BUILD_CXX="c++"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 if test $ac_prog_rejected = yes; then
4613 # We found a bogon in the path, so make sure we never use it.
4614 set dummy $ac_cv_prog_BUILD_CXX
4616 if test $# != 0; then
4617 # We chose a different compiler from the bogus one.
4618 # However, it has the same basename, so the bogon will be chosen
4619 # first if we set BUILD_CXX to just the basename; use the full file name.
4621 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4639 LLVM_CROSS_COMPILING=0
4643 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4654 # Check whether --enable-optimized was given.
4655 if test "${enable_optimized+set}" = set; then
4656 enableval=$enable_optimized;
4661 if test ${enableval} = "no" ; then
4665 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4669 # Check whether --enable-profiling was given.
4670 if test "${enable_profiling+set}" = set; then
4671 enableval=$enable_profiling;
4676 if test ${enableval} = "no" ; then
4680 ENABLE_PROFILING=ENABLE_PROFILING=1
4684 # Check whether --enable-assertions was given.
4685 if test "${enable_assertions+set}" = set; then
4686 enableval=$enable_assertions;
4691 if test ${enableval} = "yes" ; then
4695 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4699 # Check whether --enable-expensive-checks was given.
4700 if test "${enable_expensive_checks+set}" = set; then
4701 enableval=$enable_expensive_checks;
4706 if test ${enableval} = "yes" ; then
4707 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4709 EXPENSIVE_CHECKS=yes
4712 ENABLE_EXPENSIVE_CHECKS=
4718 # Check whether --enable-debug-runtime was given.
4719 if test "${enable_debug_runtime+set}" = set; then
4720 enableval=$enable_debug_runtime;
4725 if test ${enableval} = "no" ; then
4729 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4733 # Check whether --enable-debug-symbols was given.
4734 if test "${enable_debug_symbols+set}" = set; then
4735 enableval=$enable_debug_symbols;
4740 if test ${enableval} = "no" ; then
4744 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4748 # Check whether --enable-jit was given.
4749 if test "${enable_jit+set}" = set; then
4750 enableval=$enable_jit;
4755 if test ${enableval} = "no"
4760 case "$llvm_cv_target_arch" in
4761 x86) TARGET_HAS_JIT=1
4763 Sparc) TARGET_HAS_JIT=0
4765 PowerPC) TARGET_HAS_JIT=1
4767 x86_64) TARGET_HAS_JIT=1
4769 Alpha) TARGET_HAS_JIT=1
4771 ARM) TARGET_HAS_JIT=1
4773 Mips) TARGET_HAS_JIT=0
4775 PIC16) TARGET_HAS_JIT=0
4777 XCore) TARGET_HAS_JIT=0
4779 MSP430) TARGET_HAS_JIT=0
4781 SystemZ) TARGET_HAS_JIT=0
4783 Blackfin) TARGET_HAS_JIT=0
4790 # Check whether --enable-doxygen was given.
4791 if test "${enable_doxygen+set}" = set; then
4792 enableval=$enable_doxygen;
4797 case "$enableval" in
4798 yes) ENABLE_DOXYGEN=1
4800 no) ENABLE_DOXYGEN=0
4802 default) ENABLE_DOXYGEN=0
4804 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4805 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4809 # Check whether --enable-threads was given.
4810 if test "${enable_threads+set}" = set; then
4811 enableval=$enable_threads;
4816 case "$enableval" in
4817 yes) ENABLE_THREADS=1
4819 no) ENABLE_THREADS=0
4821 default) ENABLE_THREADS=1
4823 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4824 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4825 { (exit 1); exit 1; }; } ;;
4828 cat >>confdefs.h <<_ACEOF
4829 #define ENABLE_THREADS $ENABLE_THREADS
4833 # Check whether --enable-pic was given.
4834 if test "${enable_pic+set}" = set; then
4835 enableval=$enable_pic;
4840 case "$enableval" in
4845 default) ENABLE_PIC=1
4847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4848 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
4852 cat >>confdefs.h <<_ACEOF
4853 #define ENABLE_PIC $ENABLE_PIC
4858 # Check whether --enable-targets was given.
4859 if test "${enable_targets+set}" = set; then
4860 enableval=$enable_targets;
4865 if test "$enableval" = host-only ; then
4868 case "$enableval" in
4869 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4870 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4872 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4873 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4875 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4876 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4877 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4878 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4879 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4880 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4881 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4882 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4883 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4884 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4885 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4886 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4887 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4888 host) case "$llvm_cv_target_arch" in
4889 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4890 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4892 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4893 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4894 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4895 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4896 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4897 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4898 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4899 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4900 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4901 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4902 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903 echo "$as_me: error: Can not set target to build" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4906 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4907 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4908 { (exit 1); exit 1; }; } ;;
4913 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4916 # Determine whether we are building LLVM support for the native architecture.
4917 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4918 for a_target in $TARGETS_TO_BUILD; do
4919 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4920 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4922 cat >>confdefs.h <<_ACEOF
4923 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4929 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4930 # target feature def files.
4931 LLVM_ENUM_TARGETS=""
4932 LLVM_ENUM_ASM_PRINTERS=""
4933 LLVM_ENUM_ASM_PARSERS=""
4934 LLVM_ENUM_DISASSEMBLERS=""
4935 for target_to_build in $TARGETS_TO_BUILD; do
4936 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4937 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4938 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4940 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4941 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4943 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4944 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4952 # Check whether --enable-cbe-printf-a was given.
4953 if test "${enable_cbe_printf_a+set}" = set; then
4954 enableval=$enable_cbe_printf_a;
4959 case "$enableval" in
4960 yes) ENABLE_CBE_PRINTF_A=1
4962 no) ENABLE_CBE_PRINTF_A=0
4964 default) ENABLE_CBE_PRINTF_A=1
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4971 cat >>confdefs.h <<_ACEOF
4972 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4977 # Check whether --with-llvmgccdir was given.
4978 if test "${with_llvmgccdir+set}" = set; then
4979 withval=$with_llvmgccdir;
4985 default) WITH_LLVMGCCDIR=default ;;
4986 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4987 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4988 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4989 { (exit 1); exit 1; }; } ;;
4993 # Check whether --with-llvmgcc was given.
4994 if test "${with_llvmgcc+set}" = set; then
4995 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5001 # Check whether --with-llvmgxx was given.
5002 if test "${with_llvmgxx+set}" = set; then
5003 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5008 if test -n "$LLVMGCC"; then
5009 LLVMGCCCOMMAND="$LLVMGCC"
5012 if test -n "$LLVMGXX"; then
5013 LLVMGXXCOMMAND="$LLVMGXX"
5016 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5017 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5018 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5019 { (exit 1); exit 1; }; };
5022 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5023 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5024 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5025 { (exit 1); exit 1; }; };
5029 # Check whether --with-optimize-option was given.
5030 if test "${with_optimize_option+set}" = set; then
5031 withval=$with_optimize_option;
5036 { echo "$as_me:$LINENO: checking optimization flags" >&5
5037 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5040 case "$llvm_cv_os_type" in
5041 MingW) optimize_option=-O3 ;;
5042 *) optimize_option=-O2 ;;
5044 *) optimize_option="$withval" ;;
5046 OPTIMIZE_OPTION=$optimize_option
5048 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5049 echo "${ECHO_T}$optimize_option" >&6; }
5052 # Check whether --with-extra-options was given.
5053 if test "${with_extra_options+set}" = set; then
5054 withval=$with_extra_options;
5060 default) EXTRA_OPTIONS= ;;
5061 *) EXTRA_OPTIONS=$withval ;;
5063 EXTRA_OPTIONS=$EXTRA_OPTIONS
5066 # Check whether --enable-bindings was given.
5067 if test "${enable_bindings+set}" = set; then
5068 enableval=$enable_bindings;
5073 BINDINGS_TO_BUILD=""
5074 case "$enableval" in
5075 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5076 all ) BINDINGS_TO_BUILD="ocaml" ;;
5077 none | no) BINDINGS_TO_BUILD="" ;;
5078 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5079 case "$a_binding" in
5080 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5081 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5082 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5083 { (exit 1); exit 1; }; } ;;
5090 # Check whether --with-ocaml-libdir was given.
5091 if test "${with_ocaml_libdir+set}" = set; then
5092 withval=$with_ocaml_libdir;
5098 auto) with_ocaml_libdir="$withval" ;;
5099 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5101 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5106 # Check whether --with-c-include-dirs was given.
5107 if test "${with_c_include_dirs+set}" = set; then
5108 withval=$with_c_include_dirs;
5114 cat >>confdefs.h <<_ACEOF
5115 #define C_INCLUDE_DIRS "$withval"
5120 # Check whether --with-cxx-include-root was given.
5121 if test "${with_cxx_include_root+set}" = set; then
5122 withval=$with_cxx_include_root;
5128 cat >>confdefs.h <<_ACEOF
5129 #define CXX_INCLUDE_ROOT "$withval"
5134 # Check whether --with-cxx-include-arch was given.
5135 if test "${with_cxx_include_arch+set}" = set; then
5136 withval=$with_cxx_include_arch;
5142 cat >>confdefs.h <<_ACEOF
5143 #define CXX_INCLUDE_ARCH "$withval"
5148 # Check whether --with-cxx-include-32bit-dir was given.
5149 if test "${with_cxx_include_32bit_dir+set}" = set; then
5150 withval=$with_cxx_include_32bit_dir;
5156 cat >>confdefs.h <<_ACEOF
5157 #define CXX_INCLUDE_32BIT_DIR "$withval"
5162 # Check whether --with-cxx-include-64bit-dir was given.
5163 if test "${with_cxx_include_64bit_dir+set}" = set; then
5164 withval=$with_cxx_include_64bit_dir;
5170 cat >>confdefs.h <<_ACEOF
5171 #define CXX_INCLUDE_64BIT_DIR "$withval"
5176 # Check whether --with-binutils-include was given.
5177 if test "${with_binutils_include+set}" = set; then
5178 withval=$with_binutils_include;
5184 default) WITH_BINUTILS_INCDIR=default ;;
5185 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5186 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5187 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5190 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5191 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5193 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5194 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5195 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5196 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5197 { (exit 1); exit 1; }; };
5201 # Check whether --enable-libffi was given.
5202 if test "${enable_libffi+set}" = set; then
5203 enableval=$enable_libffi; case "$enableval" in
5204 yes) llvm_cv_enable_libffi="yes" ;;
5205 no) llvm_cv_enable_libffi="no" ;;
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5211 llvm_cv_enable_libffi=no
5215 if test "$llvm_cv_os_type" = "Win32" ; then
5221 # Check whether --enable-llvmc-dynamic was given.
5222 if test "${enable_llvmc_dynamic+set}" = set; then
5223 enableval=$enable_llvmc_dynamic;
5225 enableval=$llvmc_dynamic
5228 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5229 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5232 ENABLE_LLVMC_DYNAMIC=
5236 # Check whether --enable-llvmc-dynamic-plugins was given.
5237 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5238 enableval=$enable_llvmc_dynamic_plugins;
5243 if test ${enableval} = "yes" ; then
5244 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5247 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5258 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5259 # On Suns, sometimes $CPP names a directory.
5260 if test -n "$CPP" && test -d "$CPP"; then
5263 if test -z "$CPP"; then
5264 if test "${ac_cv_prog_CPP+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 # Double quotes because CPP needs to be expanded
5268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5271 for ac_c_preproc_warn_flag in '' yes
5273 # Use a header file that comes with gcc, so configuring glibc
5274 # with a fresh cross-compiler works.
5275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276 # <limits.h> exists even on freestanding compilers.
5277 # On the NeXT, cc -E runs the code through the compiler's parser,
5278 # not just through cpp. "Syntax error" is here to catch this case.
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5286 # include <limits.h>
5288 # include <assert.h>
5292 if { (ac_try="$ac_cpp conftest.$ac_ext"
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5300 grep -v '^ *+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } >/dev/null; then
5305 if test -s conftest.err; then
5306 ac_cpp_err=$ac_c_preproc_warn_flag
5307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314 if test -z "$ac_cpp_err"; then
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 # Broken: fails on valid input.
5324 rm -f conftest.err conftest.$ac_ext
5326 # OK, works on sane cases. Now check whether nonexistent headers
5327 # can be detected and how.
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 #include <ac_nonexistent.h>
5336 if { (ac_try="$ac_cpp conftest.$ac_ext"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } >/dev/null; then
5349 if test -s conftest.err; then
5350 ac_cpp_err=$ac_c_preproc_warn_flag
5351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5358 if test -z "$ac_cpp_err"; then
5359 # Broken: success on invalid input.
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 # Passes both tests.
5370 rm -f conftest.err conftest.$ac_ext
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5387 { echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6; }
5390 for ac_c_preproc_warn_flag in '' yes
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5405 # include <limits.h>
5407 # include <assert.h>
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5433 if test -z "$ac_cpp_err"; then
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 # Broken: fails on valid input.
5443 rm -f conftest.err conftest.$ac_ext
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5455 if { (ac_try="$ac_cpp conftest.$ac_ext"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5477 if test -z "$ac_cpp_err"; then
5478 # Broken: success on invalid input.
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 # Passes both tests.
5489 rm -f conftest.err conftest.$ac_ext
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5498 See \`config.log' for more details." >&5
5499 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5500 See \`config.log' for more details." >&2;}
5501 { (exit 1); exit 1; }; }
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 if test "${ac_cv_prog_CC+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 if test -n "$CC"; then
5526 ac_cv_prog_CC="$CC" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 if test -n "$CC"; then
5547 { echo "$as_me:$LINENO: result: $CC" >&5
5548 echo "${ECHO_T}$CC" >&6; }
5550 { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5555 test -n "$CC" && break
5558 if test -z "$CC"; then
5562 # Extract the first word of "$ac_prog", so it can be a program name with args.
5563 set dummy $ac_prog; ac_word=$2
5564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 if test -n "$ac_ct_CC"; then
5570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_ac_ct_CC="$ac_prog"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5590 if test -n "$ac_ct_CC"; then
5591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5592 echo "${ECHO_T}$ac_ct_CC" >&6; }
5594 { echo "$as_me:$LINENO: result: no" >&5
5595 echo "${ECHO_T}no" >&6; }
5599 test -n "$ac_ct_CC" && break
5602 if test "x$ac_ct_CC" = x; then
5605 case $cross_compiling:$ac_tool_warned in
5607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5608 whose name does not start with the host triplet. If you think this
5609 configuration is useful to you, please write to autoconf@gnu.org." >&5
5610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5611 whose name does not start with the host triplet. If you think this
5612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5613 ac_tool_warned=yes ;;
5620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: no acceptable C compiler found in \$PATH
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5626 # Provide some information about the compiler.
5627 echo "$as_me:$LINENO: checking for C compiler version" >&5
5628 ac_compiler=`set X $ac_compile; echo $2`
5629 { (ac_try="$ac_compiler --version >&5"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compiler --version >&5") 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }
5639 { (ac_try="$ac_compiler -v >&5"
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compiler -v >&5") 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }
5649 { (ac_try="$ac_compiler -V >&5"
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compiler -V >&5") 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }
5660 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5661 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5662 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5729 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5731 GCC=`test $ac_compiler_gnu = yes && echo yes`
5732 ac_test_CFLAGS=${CFLAGS+set}
5733 ac_save_CFLAGS=$CFLAGS
5734 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5735 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5736 if test "${ac_cv_prog_cc_g+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 ac_save_c_werror_flag=$ac_c_werror_flag
5740 ac_c_werror_flag=yes
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_c_werror_flag=$ac_save_c_werror_flag
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_try") 2>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 ac_c_werror_flag=$ac_save_c_werror_flag
5920 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5921 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5922 if test "$ac_test_CFLAGS" = set; then
5923 CFLAGS=$ac_save_CFLAGS
5924 elif test $ac_cv_prog_cc_g = yes; then
5925 if test "$GCC" = yes; then
5931 if test "$GCC" = yes; then
5937 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5938 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5939 if test "${ac_cv_prog_cc_c89+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_cv_prog_cc_c89=no
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/stat.h>
5954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955 struct buf { int x; };
5956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957 static char *e (p, i)
5963 static char *f (char * (*g) (char **, int), char **p, ...)
5968 s = g (p, va_arg (v,int));
5973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987 int test (int i, double x);
5988 struct s1 {int (*f) (int a);};
5989 struct s2 {int (*f) (double a);};
5990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004 CC="$ac_save_CC $ac_arg"
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_try") 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_prog_cc_c89=$ac_arg
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6047 rm -f core conftest.err conftest.$ac_objext
6048 test "x$ac_cv_prog_cc_c89" != "xno" && break
6050 rm -f conftest.$ac_ext
6055 case "x$ac_cv_prog_cc_c89" in
6057 { echo "$as_me:$LINENO: result: none needed" >&5
6058 echo "${ECHO_T}none needed" >&6; } ;;
6060 { echo "$as_me:$LINENO: result: unsupported" >&5
6061 echo "${ECHO_T}unsupported" >&6; } ;;
6063 CC="$CC $ac_cv_prog_cc_c89"
6064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6065 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076 ac_cpp='$CXXCPP $CPPFLAGS'
6077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6080 if test -z "$CXX"; then
6081 if test -n "$CCC"; then
6084 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_CXX+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$CXX"; then
6095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 if test -n "$CXX"; then
6116 { echo "$as_me:$LINENO: result: $CXX" >&5
6117 echo "${ECHO_T}$CXX" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6124 test -n "$CXX" && break
6127 if test -z "$CXX"; then
6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 if test -n "$ac_ct_CXX"; then
6139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_CXX="$ac_prog"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6159 if test -n "$ac_ct_CXX"; then
6160 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6161 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6163 { echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6; }
6168 test -n "$ac_ct_CXX" && break
6171 if test "x$ac_ct_CXX" = x; then
6174 case $cross_compiling:$ac_tool_warned in
6176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6177 whose name does not start with the host triplet. If you think this
6178 configuration is useful to you, please write to autoconf@gnu.org." >&5
6179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6180 whose name does not start with the host triplet. If you think this
6181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6182 ac_tool_warned=yes ;;
6190 # Provide some information about the compiler.
6191 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6192 ac_compiler=`set X $ac_compile; echo $2`
6193 { (ac_try="$ac_compiler --version >&5"
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compiler --version >&5") 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }
6203 { (ac_try="$ac_compiler -v >&5"
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compiler -v >&5") 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213 { (ac_try="$ac_compiler -V >&5"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compiler -V >&5") 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }
6224 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6225 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6226 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6293 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6294 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6295 GXX=`test $ac_compiler_gnu = yes && echo yes`
6296 ac_test_CXXFLAGS=${CXXFLAGS+set}
6297 ac_save_CXXFLAGS=$CXXFLAGS
6298 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6299 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_cxx_g+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6304 ac_cxx_werror_flag=yes
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6322 rm -f conftest.$ac_objext
6323 if { (ac_try="$ac_compile"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_prog_cxx_g=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6392 { (case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_try") 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6442 grep -v '^ *+' conftest.er1 >conftest.err
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6448 { (case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_try") 2>&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_try") 2>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_cv_prog_cxx_g=yes
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6485 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6486 if test "$ac_test_CXXFLAGS" = set; then
6487 CXXFLAGS=$ac_save_CXXFLAGS
6488 elif test $ac_cv_prog_cxx_g = yes; then
6489 if test "$GXX" = yes; then
6495 if test "$GXX" = yes; then
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6508 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510 if test "${lt_cv_path_NM+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 if test -n "$NM"; then
6514 # Let the user override the test.
6517 lt_nm_to_check="${ac_tool_prefix}nm"
6518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519 lt_nm_to_check="$lt_nm_to_check nm"
6521 for lt_tmp_nm in $lt_nm_to_check; do
6522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6525 test -z "$ac_dir" && ac_dir=.
6526 tmp_nm="$ac_dir/$lt_tmp_nm"
6527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528 # Check to see if the nm accepts a BSD-compat flag.
6529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530 # nm: unknown option "B" ignored
6531 # Tru64's nm complains that /dev/null is an invalid object file
6532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533 */dev/null* | *'Invalid file or object type'*)
6534 lt_cv_path_NM="$tmp_nm -B"
6538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6540 lt_cv_path_NM="$tmp_nm -p"
6544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545 continue # so that we can try to find one that supports BSD flags
6554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6557 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6563 { echo "$as_me:$LINENO: checking for GNU make" >&5
6564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565 if test "${llvm_cv_gnu_make_command+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 llvm_cv_gnu_make_command=''
6569 for a in "$MAKE" make gmake gnumake ; do
6570 if test -z "$a" ; then continue ; fi ;
6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6573 llvm_cv_gnu_make_command=$a ;
6578 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6580 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6584 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585 echo "${ECHO_T}\"Not found\"" >&6; };
6589 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6592 if test "$LN_S" = "ln -s"; then
6593 { echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6; }
6596 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597 echo "${ECHO_T}no, using $LN_S" >&6; }
6600 # Extract the first word of "cmp", so it can be a program name with args.
6601 set dummy cmp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CMP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6632 if test -n "$CMP"; then
6633 { echo "$as_me:$LINENO: result: $CMP" >&5
6634 echo "${ECHO_T}$CMP" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6641 # Extract the first word of "cp", so it can be a program name with args.
6642 set dummy cp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_CP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6673 if test -n "$CP"; then
6674 { echo "$as_me:$LINENO: result: $CP" >&5
6675 echo "${ECHO_T}$CP" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 # Extract the first word of "date", so it can be a program name with args.
6683 set dummy date; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DATE+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6713 DATE=$ac_cv_path_DATE
6714 if test -n "$DATE"; then
6715 { echo "$as_me:$LINENO: result: $DATE" >&5
6716 echo "${ECHO_T}$DATE" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 # Extract the first word of "find", so it can be a program name with args.
6724 set dummy find; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_FIND+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6754 FIND=$ac_cv_path_FIND
6755 if test -n "$FIND"; then
6756 { echo "$as_me:$LINENO: result: $FIND" >&5
6757 echo "${ECHO_T}$FIND" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 # Extract the first word of "grep", so it can be a program name with args.
6765 set dummy grep; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_GREP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6795 GREP=$ac_cv_path_GREP
6796 if test -n "$GREP"; then
6797 { echo "$as_me:$LINENO: result: $GREP" >&5
6798 echo "${ECHO_T}$GREP" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 # Extract the first word of "mkdir", so it can be a program name with args.
6806 set dummy mkdir; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MKDIR+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6836 MKDIR=$ac_cv_path_MKDIR
6837 if test -n "$MKDIR"; then
6838 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839 echo "${ECHO_T}$MKDIR" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 # Extract the first word of "mv", so it can be a program name with args.
6847 set dummy mv; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_MV+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6878 if test -n "$MV"; then
6879 { echo "$as_me:$LINENO: result: $MV" >&5
6880 echo "${ECHO_T}$MV" >&6; }
6882 { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_RANLIB+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 if test -n "$RANLIB"; then
6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 RANLIB=$ac_cv_prog_RANLIB
6916 if test -n "$RANLIB"; then
6917 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918 echo "${ECHO_T}$RANLIB" >&6; }
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6926 if test -z "$ac_cv_prog_RANLIB"; then
6927 ac_ct_RANLIB=$RANLIB
6928 # Extract the first word of "ranlib", so it can be a program name with args.
6929 set dummy ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 if test -n "$ac_ct_RANLIB"; then
6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956 if test -n "$ac_ct_RANLIB"; then
6957 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6964 if test "x$ac_ct_RANLIB" = x; then
6967 case $cross_compiling:$ac_tool_warned in
6969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970 whose name does not start with the host triplet. If you think this
6971 configuration is useful to you, please write to autoconf@gnu.org." >&5
6972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet. If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6975 ac_tool_warned=yes ;;
6977 RANLIB=$ac_ct_RANLIB
6980 RANLIB="$ac_cv_prog_RANLIB"
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}ar; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_AR+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 if test -n "$AR"; then
6992 ac_cv_prog_AR="$AR" # Let the user override the test.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_AR="${ac_tool_prefix}ar"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 if test -n "$AR"; then
7013 { echo "$as_me:$LINENO: result: $AR" >&5
7014 echo "${ECHO_T}$AR" >&6; }
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7022 if test -z "$ac_cv_prog_AR"; then
7024 # Extract the first word of "ar", so it can be a program name with args.
7025 set dummy ar; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 if test -n "$ac_ct_AR"; then
7032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_ac_ct_AR="ar"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7052 if test -n "$ac_ct_AR"; then
7053 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7054 echo "${ECHO_T}$ac_ct_AR" >&6; }
7056 { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7060 if test "x$ac_ct_AR" = x; then
7063 case $cross_compiling:$ac_tool_warned in
7065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7066 whose name does not start with the host triplet. If you think this
7067 configuration is useful to you, please write to autoconf@gnu.org." >&5
7068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7069 whose name does not start with the host triplet. If you think this
7070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7071 ac_tool_warned=yes ;;
7079 # Extract the first word of "rm", so it can be a program name with args.
7080 set dummy rm; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_RM+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7111 if test -n "$RM"; then
7112 { echo "$as_me:$LINENO: result: $RM" >&5
7113 echo "${ECHO_T}$RM" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "sed", so it can be a program name with args.
7121 set dummy sed; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_SED+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7152 if test -n "$SED"; then
7153 { echo "$as_me:$LINENO: result: $SED" >&5
7154 echo "${ECHO_T}$SED" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 # Extract the first word of "tar", so it can be a program name with args.
7162 set dummy tar; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_TAR+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7193 if test -n "$TAR"; then
7194 { echo "$as_me:$LINENO: result: $TAR" >&5
7195 echo "${ECHO_T}$TAR" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "pwd", so it can be a program name with args.
7203 set dummy pwd; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_BINPWD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7233 BINPWD=$ac_cv_path_BINPWD
7234 if test -n "$BINPWD"; then
7235 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7236 echo "${ECHO_T}$BINPWD" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7244 # Extract the first word of "Graphviz", so it can be a program name with args.
7245 set dummy Graphviz; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7275 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7276 if test -n "$GRAPHVIZ"; then
7277 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7278 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_GRAPHVIZ 1
7291 if test "$llvm_cv_os_type" = "MingW" ; then
7292 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7295 cat >>confdefs.h <<_ACEOF
7296 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7300 # Extract the first word of "dot", so it can be a program name with args.
7301 set dummy dot; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_DOT+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7332 if test -n "$DOT"; then
7333 { echo "$as_me:$LINENO: result: $DOT" >&5
7334 echo "${ECHO_T}$DOT" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 if test "$DOT" != "echo dot" ; then
7343 cat >>confdefs.h <<\_ACEOF
7347 if test "$llvm_cv_os_type" = "MingW" ; then
7348 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7351 cat >>confdefs.h <<_ACEOF
7352 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7356 # Extract the first word of "fdp", so it can be a program name with args.
7357 set dummy fdp; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_FDP+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7388 if test -n "$FDP"; then
7389 { echo "$as_me:$LINENO: result: $FDP" >&5
7390 echo "${ECHO_T}$FDP" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7397 if test "$FDP" != "echo fdp" ; then
7399 cat >>confdefs.h <<\_ACEOF
7403 if test "$llvm_cv_os_type" = "MingW" ; then
7404 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7407 cat >>confdefs.h <<_ACEOF
7408 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7412 # Extract the first word of "neato", so it can be a program name with args.
7413 set dummy neato; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_NEATO+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7443 NEATO=$ac_cv_path_NEATO
7444 if test -n "$NEATO"; then
7445 { echo "$as_me:$LINENO: result: $NEATO" >&5
7446 echo "${ECHO_T}$NEATO" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 if test "$NEATO" != "echo neato" ; then
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_NEATO 1
7459 if test "$llvm_cv_os_type" = "MingW" ; then
7460 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7463 cat >>confdefs.h <<_ACEOF
7464 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7468 # Extract the first word of "twopi", so it can be a program name with args.
7469 set dummy twopi; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_TWOPI+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7499 TWOPI=$ac_cv_path_TWOPI
7500 if test -n "$TWOPI"; then
7501 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7502 echo "${ECHO_T}$TWOPI" >&6; }
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7509 if test "$TWOPI" != "echo twopi" ; then
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_TWOPI 1
7515 if test "$llvm_cv_os_type" = "MingW" ; then
7516 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7519 cat >>confdefs.h <<_ACEOF
7520 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7524 # Extract the first word of "circo", so it can be a program name with args.
7525 set dummy circo; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_path_CIRCO+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7555 CIRCO=$ac_cv_path_CIRCO
7556 if test -n "$CIRCO"; then
7557 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7558 echo "${ECHO_T}$CIRCO" >&6; }
7560 { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7565 if test "$CIRCO" != "echo circo" ; then
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_CIRCO 1
7571 if test "$llvm_cv_os_type" = "MingW" ; then
7572 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7575 cat >>confdefs.h <<_ACEOF
7576 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7580 for ac_prog in gv gsview32
7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GV+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 if test -n "$GV"; then
7614 { echo "$as_me:$LINENO: result: $GV" >&5
7615 echo "${ECHO_T}$GV" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 test -n "$GV" && break
7624 test -n "$GV" || GV="echo gv"
7626 if test "$GV" != "echo gv" ; then
7628 cat >>confdefs.h <<\_ACEOF
7632 if test "$llvm_cv_os_type" = "MingW" ; then
7633 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_GV "$GV${EXEEXT}"
7641 # Extract the first word of "dotty", so it can be a program name with args.
7642 set dummy dotty; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_DOTTY+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7672 DOTTY=$ac_cv_path_DOTTY
7673 if test -n "$DOTTY"; then
7674 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7675 echo "${ECHO_T}$DOTTY" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 if test "$DOTTY" != "echo dotty" ; then
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_DOTTY 1
7688 if test "$llvm_cv_os_type" = "MingW" ; then
7689 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7692 cat >>confdefs.h <<_ACEOF
7693 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7699 # Extract the first word of "perl", so it can be a program name with args.
7700 set dummy perl; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_path_PERL+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7730 PERL=$ac_cv_path_PERL
7731 if test -n "$PERL"; then
7732 { echo "$as_me:$LINENO: result: $PERL" >&5
7733 echo "${ECHO_T}$PERL" >&6; }
7735 { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7740 if test "$PERL" != "none"; then
7741 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7742 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7743 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7744 { echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6; }
7748 { echo "$as_me:$LINENO: result: not found" >&5
7749 echo "${ECHO_T}not found" >&6; }
7754 if test x"$PERL" = xnone; then
7757 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7758 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7759 { (exit 1); exit 1; }; }
7765 # Find a good install program. We prefer a C program (faster),
7766 # so one script is as good as another. But avoid the broken or
7767 # incompatible versions:
7768 # SysV /etc/install, /usr/sbin/install
7769 # SunOS /usr/etc/install
7770 # IRIX /sbin/install
7772 # AmigaOS /C/install, which installs bootblocks on floppy discs
7773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7776 # OS/2's system install, which has a completely different semantic
7777 # ./install, which can be erroneously created by make from ./install.sh.
7778 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7779 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7780 if test -z "$INSTALL"; then
7781 if test "${ac_cv_path_install+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 # Account for people who put trailing slashes in PATH elements.
7791 ./ | .// | /cC/* | \
7792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7796 # OSF1 and SCO ODT 3.0 have their own names for install.
7797 # Don't use installbsd from OSF since it installs stuff as root
7799 for ac_prog in ginstall scoinst install; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7802 if test $ac_prog = install &&
7803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7804 # AIX install. It has an incompatible calling convention.
7806 elif test $ac_prog = install &&
7807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7808 # program-specific install script used by HP pwplus--don't use.
7811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7824 if test "${ac_cv_path_install+set}" = set; then
7825 INSTALL=$ac_cv_path_install
7827 # As a last resort, use the slow shell script. Don't cache a
7828 # value for INSTALL within a source directory, because that will
7829 # break other packages using the cache if that directory is
7830 # removed, or if the value is a relative name.
7831 INSTALL=$ac_install_sh
7834 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7835 echo "${ECHO_T}$INSTALL" >&6; }
7837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7838 # It thinks the first close brace ends the variable substitution.
7839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7846 # Extract the first word of "bzip2", so it can be a program name with args.
7847 set dummy bzip2; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_BZIP2+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 BZIP2=$ac_cv_path_BZIP2
7877 if test -n "$BZIP2"; then
7878 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7879 echo "${ECHO_T}$BZIP2" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7886 # Extract the first word of "doxygen", so it can be a program name with args.
7887 set dummy doxygen; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 DOXYGEN=$ac_cv_path_DOXYGEN
7917 if test -n "$DOXYGEN"; then
7918 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7919 echo "${ECHO_T}$DOXYGEN" >&6; }
7921 { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7926 # Extract the first word of "groff", so it can be a program name with args.
7927 set dummy groff; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_path_GROFF+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 GROFF=$ac_cv_path_GROFF
7957 if test -n "$GROFF"; then
7958 { echo "$as_me:$LINENO: result: $GROFF" >&5
7959 echo "${ECHO_T}$GROFF" >&6; }
7961 { echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6; }
7966 # Extract the first word of "gzip", so it can be a program name with args.
7967 set dummy gzip; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_path_GZIP+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 GZIP=$ac_cv_path_GZIP
7997 if test -n "$GZIP"; then
7998 { echo "$as_me:$LINENO: result: $GZIP" >&5
7999 echo "${ECHO_T}$GZIP" >&6; }
8001 { echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6; }
8006 # Extract the first word of "pod2html", so it can be a program name with args.
8007 set dummy pod2html; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_path_POD2HTML+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 POD2HTML=$ac_cv_path_POD2HTML
8037 if test -n "$POD2HTML"; then
8038 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8039 echo "${ECHO_T}$POD2HTML" >&6; }
8041 { echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6; }
8046 # Extract the first word of "pod2man", so it can be a program name with args.
8047 set dummy pod2man; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_POD2MAN+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 POD2MAN=$ac_cv_path_POD2MAN
8077 if test -n "$POD2MAN"; then
8078 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8079 echo "${ECHO_T}$POD2MAN" >&6; }
8081 { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8086 # Extract the first word of "runtest", so it can be a program name with args.
8087 set dummy runtest; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_RUNTEST+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 RUNTEST=$ac_cv_path_RUNTEST
8117 if test -n "$RUNTEST"; then
8118 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8119 echo "${ECHO_T}$RUNTEST" >&6; }
8121 { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8128 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8129 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8131 # Check whether --with-tclinclude was given.
8132 if test "${with_tclinclude+set}" = set; then
8133 withval=$with_tclinclude; with_tclinclude=${withval}
8138 if test "${ac_cv_path_tclsh+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 if test x"${with_tclinclude}" != x ; then
8143 if test -f ${with_tclinclude}/tclsh ; then
8144 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8145 elif test -f ${with_tclinclude}/src/tclsh ; then
8146 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8148 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8149 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8150 { (exit 1); exit 1; }; }
8156 if test x"${ac_cv_path_tclsh}" = x ; then
8157 { echo "$as_me:$LINENO: result: none" >&5
8158 echo "${ECHO_T}none" >&6; }
8159 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
8161 # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165 if test "${ac_cv_path_TCLSH+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 TCLSH=$ac_cv_path_TCLSH
8192 if test -n "$TCLSH"; then
8193 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8194 echo "${ECHO_T}$TCLSH" >&6; }
8196 { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8201 test -n "$TCLSH" && break
8204 if test x"${TCLSH}" = x ; then
8205 ac_cv_path_tclsh='';
8207 ac_cv_path_tclsh="${TCLSH}";
8210 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8211 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8212 TCLSH="${ac_cv_path_tclsh}"
8216 # Extract the first word of "zip", so it can be a program name with args.
8217 set dummy zip; ac_word=$2
8218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220 if test "${ac_cv_path_ZIP+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 if test -n "$ZIP"; then
8248 { echo "$as_me:$LINENO: result: $ZIP" >&5
8249 echo "${ECHO_T}$ZIP" >&6; }
8251 { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8256 for ac_prog in ocamlc
8258 # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy $ac_prog; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_path_OCAMLC+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 OCAMLC=$ac_cv_path_OCAMLC
8289 if test -n "$OCAMLC"; then
8290 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8291 echo "${ECHO_T}$OCAMLC" >&6; }
8293 { echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6; }
8298 test -n "$OCAMLC" && break
8301 for ac_prog in ocamlopt
8303 # Extract the first word of "$ac_prog", so it can be a program name with args.
8304 set dummy $ac_prog; ac_word=$2
8305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 OCAMLOPT=$ac_cv_path_OCAMLOPT
8334 if test -n "$OCAMLOPT"; then
8335 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8336 echo "${ECHO_T}$OCAMLOPT" >&6; }
8338 { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8343 test -n "$OCAMLOPT" && break
8346 for ac_prog in ocamldep
8348 # Extract the first word of "$ac_prog", so it can be a program name with args.
8349 set dummy $ac_prog; ac_word=$2
8350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 OCAMLDEP=$ac_cv_path_OCAMLDEP
8379 if test -n "$OCAMLDEP"; then
8380 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8381 echo "${ECHO_T}$OCAMLDEP" >&6; }
8383 { echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6; }
8388 test -n "$OCAMLDEP" && break
8391 for ac_prog in ocamldoc
8393 # Extract the first word of "$ac_prog", so it can be a program name with args.
8394 set dummy $ac_prog; ac_word=$2
8395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8397 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 OCAMLDOC=$ac_cv_path_OCAMLDOC
8424 if test -n "$OCAMLDOC"; then
8425 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8426 echo "${ECHO_T}$OCAMLDOC" >&6; }
8428 { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8433 test -n "$OCAMLDOC" && break
8436 for ac_prog in gas as
8438 # Extract the first word of "$ac_prog", so it can be a program name with args.
8439 set dummy $ac_prog; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_GAS+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 if test -n "$GAS"; then
8470 { echo "$as_me:$LINENO: result: $GAS" >&5
8471 echo "${ECHO_T}$GAS" >&6; }
8473 { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8478 test -n "$GAS" && break
8482 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8483 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8484 if test "${llvm_cv_link_use_r+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494 CFLAGS="$CFLAGS -Wl,-R."
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8505 int main() { return 0; }
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 llvm_cv_link_use_r=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 llvm_cv_link_use_r=no
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8556 ac_cpp='$CPP $CPPFLAGS'
8557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8564 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8565 if test "$llvm_cv_link_use_r" = yes ; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_LINK_R 1
8574 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8575 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8576 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 ac_cpp='$CPP $CPPFLAGS'
8581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8586 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8597 int main() { return 0; }
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_link") 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 llvm_cv_link_use_export_dynamic=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 llvm_cv_link_use_export_dynamic=no
8644 rm -f core conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8648 ac_cpp='$CPP $CPPFLAGS'
8649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8656 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8657 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8659 cat >>confdefs.h <<\_ACEOF
8660 #define HAVE_LINK_EXPORT_DYNAMIC 1
8668 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8669 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8670 if test "${ac_cv_c_const+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8683 /* FIXME: Include the comments suggested by Paul. */
8685 /* Ultrix mips cc rejects this. */
8686 typedef int charset[2];
8688 /* SunOS 4.1.1 cc rejects this. */
8689 char const *const *ccp;
8691 /* NEC SVR4.0.2 mips cc rejects this. */
8692 struct point {int x, y;};
8693 static struct point const zero = {0,0};
8694 /* AIX XL C 1.02.0.0 rejects this.
8695 It does not let you subtract one const X* pointer from another in
8696 an arm of an if-expression whose if-part is not a constant
8698 const char *g = "string";
8699 ccp = &g + (g ? g-g : 0);
8700 /* HPUX 7.0 cc rejects these. */
8703 ccp = (char const *const *) p;
8704 { /* SCO 3.2v4 cc rejects this. */
8706 char const *s = 0 ? (char *) 0 : (char const *) 0;
8711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8713 const int *foo = &x[0];
8716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8717 typedef const int *iptr;
8721 { /* AIX XL C 1.02.0.0 rejects this saying
8722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8723 struct s { int j; const int *ap[3]; };
8724 struct s *b; b->j = 5;
8726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8730 return !x[0] && !zero.x;
8737 rm -f conftest.$ac_objext
8738 if { (ac_try="$ac_compile"
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_compile") 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752 { (case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_try") 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8782 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8783 if test $ac_cv_c_const = no; then
8785 cat >>confdefs.h <<\_ACEOF
8797 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8798 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8799 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8800 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 #include <sys/types.h>
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_try") 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 eval "$as_ac_Header=yes"
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 eval "$as_ac_Header=no"
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 ac_res=`eval echo '${'$as_ac_Header'}'`
8867 { echo "$as_me:$LINENO: result: $ac_res" >&5
8868 echo "${ECHO_T}$ac_res" >&6; }
8869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870 cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8874 ac_header_dirent=$ac_hdr; break
8878 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8879 if test $ac_header_dirent = dirent.h; then
8880 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8882 if test "${ac_cv_search_opendir+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 ac_func_search_save_LIBS=$LIBS
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8908 for ac_lib in '' dir; do
8909 if test -z "$ac_lib"; then
8910 ac_res="none required"
8913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_link") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930 { (case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_try") 2>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest$ac_exeext'
8940 { (case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_try") 2>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_cv_search_opendir=$ac_res
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8957 rm -f core conftest.err conftest.$ac_objext \
8959 if test "${ac_cv_search_opendir+set}" = set; then
8963 if test "${ac_cv_search_opendir+set}" = set; then
8966 ac_cv_search_opendir=no
8969 LIBS=$ac_func_search_save_LIBS
8971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8973 ac_res=$ac_cv_search_opendir
8974 if test "$ac_res" != no; then
8975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8980 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_opendir+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
9008 for ac_lib in '' x; do
9009 if test -z "$ac_lib"; then
9010 ac_res="none required"
9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_link") 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_try") 2>&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_search_opendir=$ac_res
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9057 rm -f core conftest.err conftest.$ac_objext \
9059 if test "${ac_cv_search_opendir+set}" = set; then
9063 if test "${ac_cv_search_opendir+set}" = set; then
9066 ac_cv_search_opendir=no
9069 LIBS=$ac_func_search_save_LIBS
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9073 ac_res=$ac_cv_search_opendir
9074 if test "$ac_res" != no; then
9075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9082 for ac_header in dlfcn.h
9084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_res=`eval echo '${'$as_ac_Header'}'`
9092 { echo "$as_me:$LINENO: result: $ac_res" >&5
9093 echo "${ECHO_T}$ac_res" >&6; }
9095 # Is the header compilable?
9096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 #include <$ac_header>
9107 rm -f conftest.$ac_objext
9108 if { (ac_try="$ac_compile"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_header_compiler=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 ac_header_compiler=no
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151 echo "${ECHO_T}$ac_header_compiler" >&6; }
9153 # Is the header present?
9154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 #include <$ac_header>
9164 if { (ac_try="$ac_cpp conftest.$ac_ext"
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9172 grep -v '^ *+' conftest.er1 >conftest.err
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } >/dev/null; then
9177 if test -s conftest.err; then
9178 ac_cpp_err=$ac_c_preproc_warn_flag
9179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9186 if test -z "$ac_cpp_err"; then
9187 ac_header_preproc=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_header_preproc=no
9195 rm -f conftest.err conftest.$ac_ext
9196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9197 echo "${ECHO_T}$ac_header_preproc" >&6; }
9199 # So? What about this header?
9200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9206 ac_header_preproc=yes
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9222 ## ----------------------------------- ##
9223 ## Report this to llvmbugs@cs.uiuc.edu ##
9224 ## ----------------------------------- ##
9226 ) | sed "s/^/$as_me: WARNING: /" >&2
9229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 eval "$as_ac_Header=\$ac_header_preproc"
9236 ac_res=`eval echo '${'$as_ac_Header'}'`
9237 { echo "$as_me:$LINENO: result: $ac_res" >&5
9238 echo "${ECHO_T}$ac_res" >&6; }
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242 cat >>confdefs.h <<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250 # Check whether --enable-ltdl-install was given.
9251 if test "${enable_ltdl_install+set}" = set; then
9252 enableval=$enable_ltdl_install;
9258 if test x"${enable_ltdl_install-no}" != xno; then
9260 INSTALL_LTDL_FALSE='#'
9262 INSTALL_LTDL_TRUE='#'
9268 if test x"${enable_ltdl_convenience-no}" != xno; then
9269 CONVENIENCE_LTDL_TRUE=
9270 CONVENIENCE_LTDL_FALSE='#'
9272 CONVENIENCE_LTDL_TRUE='#'
9273 CONVENIENCE_LTDL_FALSE=
9277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9280 libname_spec='lib$name'
9288 shlibpath_overrides_runpath=unknown
9290 dynamic_linker="$host_os ld.so"
9291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9292 if test "$GCC" = yes; then
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9295 # if the path contains ";" then we assume it to be the separator
9296 # otherwise default to the standard path separator (i.e. ":") - it is
9297 # assumed that no part of a normal pathname contains ";" but that should
9298 # okay in the real world where ";" in dirpaths is itself problematic.
9299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9306 need_lib_prefix=unknown
9307 hardcode_into_libs=no
9309 # when you set need_version to no, make sure it does not cause -set_version
9310 # flags to be left without arguments
9311 need_version=unknown
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9317 shlibpath_var=LIBPATH
9319 # AIX 3 has no versioning support, so we append a major version to the name.
9320 soname_spec='${libname}${release}${shared_ext}$major'
9327 hardcode_into_libs=yes
9328 if test "$host_cpu" = ia64; then
9329 # AIX 5 supports IA64
9330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9331 shlibpath_var=LD_LIBRARY_PATH
9333 # With GCC up to 2.95.x, collect2 would create an import file
9334 # for dependence libraries. The import file would start with
9335 # the line `#! .'. This would cause the generated library to
9336 # depend on `.', always an invalid library. This was fixed in
9337 # development snapshots of GCC prior to 3.0.
9339 aix4 | aix4.[01] | aix4.[01].*)
9340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9350 # soname into executable. Probably we can add versioning support to
9351 # collect2, so additional links can be useful in future.
9352 if test "$aix_use_runtimelinking" = yes; then
9353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9354 # instead of lib<name>.a to let people know that these are not
9355 # typical AIX shared libraries.
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 # We preserve .a as extension for shared libraries through AIX4.2
9359 # and later when we are not doing run time linking.
9360 library_names_spec='${libname}${release}.a $libname.a'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9363 shlibpath_var=LIBPATH
9368 library_names_spec='$libname.ixlibrary $libname.a'
9369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9370 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'
9374 library_names_spec='${libname}${shared_ext}'
9375 dynamic_linker="$host_os ld.so"
9376 shlibpath_var=LIBRARY_PATH
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9388 # the default ld.so.conf also contains /usr/contrib/lib and
9389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9390 # libtool to hard-code these into programs
9393 cygwin* | mingw* | pw32*)
9394 version_type=windows
9399 case $GCC,$host_os in
9400 yes,cygwin* | yes,mingw* | yes,pw32*)
9401 library_names_spec='$libname.dll.a'
9402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9403 postinstall_cmds='base_file=`basename \${file}`~
9404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9405 dldir=$destdir/`dirname \$dlpath`~
9406 test -d \$dldir || mkdir -p \$dldir~
9407 $install_prog $dir/$dlname \$dldir/$dlname~
9408 chmod a+x \$dldir/$dlname'
9409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9410 dlpath=$dir/\$dldll~
9412 shlibpath_overrides_runpath=yes
9416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9421 # MinGW DLLs use traditional 'lib' prefix
9422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9425 # It is most probably a Windows format PATH printed by
9426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9427 # path with ; separators, and with drive letters. We can handle the
9428 # drive letters (cygwin fileutils understands them), so leave them,
9429 # especially as we might pass files found there to a mingw objdump,
9430 # which wouldn't understand a cygwinified path. Ahh.
9431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9437 # pw32 DLLs use 'pw' prefix rather than 'lib'
9438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9447 dynamic_linker='Win32 ld.exe'
9448 # FIXME: first we should search . and the directory the executable is in
9452 darwin* | rhapsody*)
9453 dynamic_linker="$host_os dyld"
9457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9458 soname_spec='${libname}${release}${major}$shared_ext'
9459 shlibpath_overrides_runpath=yes
9460 shlibpath_var=DYLD_LIBRARY_PATH
9461 shrext_cmds='.dylib'
9462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9463 if test "$GCC" = yes; then
9464 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"`
9466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LD_LIBRARY_PATH
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 hardcode_into_libs=yes
9493 dynamic_linker='GNU ld.so'
9496 freebsd* | dragonfly*)
9497 # DragonFly does not have aout. When/if they implement a new
9498 # versioning mechanism, adjust this.
9499 if test -x /usr/bin/objformat; then
9500 objformat=`/usr/bin/objformat`
9503 freebsd[123]*) objformat=aout ;;
9507 version_type=freebsd-$objformat
9508 case $version_type in
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9519 shlibpath_var=LD_LIBRARY_PATH
9522 shlibpath_overrides_runpath=yes
9524 freebsd3.[01]* | freebsdelf3.[01]*)
9525 shlibpath_overrides_runpath=yes
9526 hardcode_into_libs=yes
9528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9530 shlibpath_overrides_runpath=no
9531 hardcode_into_libs=yes
9533 freebsd*) # from 4.6 on
9534 shlibpath_overrides_runpath=yes
9535 hardcode_into_libs=yes
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 hardcode_into_libs=yes
9550 hpux9* | hpux10* | hpux11*)
9551 # Give a soname corresponding to the major version so that dld.sl refuses to
9552 # link against other versions.
9559 hardcode_into_libs=yes
9560 dynamic_linker="$host_os dld.so"
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 if test "X$HPUX_IA64_MODE" = X32; then
9566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9574 hardcode_into_libs=yes
9575 dynamic_linker="$host_os dld.sl"
9576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9585 dynamic_linker="$host_os dld.sl"
9586 shlibpath_var=SHLIB_PATH
9587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9593 postinstall_cmds='chmod 555 $lib'
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=no
9605 hardcode_into_libs=yes
9608 irix5* | irix6* | nonstopux*)
9610 nonstopux*) version_type=nonstopux ;;
9612 if test "$lt_cv_prog_gnu_ld" = yes; then
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9623 irix5* | nonstopux*)
9627 case $LD in # libtool.m4 will add one of these switches to LD
9628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9629 libsuff= shlibsuff= libmagic=32-bit;;
9630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9631 libsuff=32 shlibsuff=N32 libmagic=N32;;
9632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9634 *) libsuff= shlibsuff= libmagic=never-match;;
9638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9639 shlibpath_overrides_runpath=no
9640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9642 hardcode_into_libs=yes
9645 # No shared lib support for Linux oldld, aout, or coff.
9646 linux*oldld* | linux*aout* | linux*coff*)
9650 # This must be Linux ELF.
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 shlibpath_overrides_runpath=no
9660 # This implies no fast_install, which is unacceptable.
9661 # Some rework will be needed to allow for fast_install
9662 # before this can be enabled.
9663 hardcode_into_libs=yes
9665 # Append ld.so.conf contents to the search path
9666 if test -f /etc/ld.so.conf; then
9667 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' ' '`
9668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9671 # We used to test for /lib/ld.so.1 and disable shared libraries on
9672 # powerpc, because MkLinux only supported shared libraries with the
9673 # GNU dynamic linker. Since this was broken with cross compilers,
9674 # most powerpc-linux boxes support dynamic linking these days and
9675 # people can always --disable-shared, the test was removed, and we
9676 # assume the GNU/Linux dynamic linker is in use.
9677 dynamic_linker='GNU/Linux ld.so'
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 shlibpath_overrides_runpath=no
9688 hardcode_into_libs=yes
9689 dynamic_linker='GNU ld.so'
9696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9699 dynamic_linker='NetBSD (a.out) ld.so'
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 dynamic_linker='NetBSD ld.elf_so'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9707 hardcode_into_libs=yes
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9729 sys_lib_dlsearch_path_spec="/usr/lib"
9731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9734 *) need_version=no ;;
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9741 openbsd2.[89] | openbsd2.[89].*)
9742 shlibpath_overrides_runpath=no
9745 shlibpath_overrides_runpath=yes
9749 shlibpath_overrides_runpath=yes
9754 libname_spec='$name'
9757 library_names_spec='$libname${shared_ext} $libname.a'
9758 dynamic_linker='OS/2 ld.exe'
9759 shlibpath_var=LIBPATH
9762 osf3* | osf4* | osf5*)
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 hardcode_into_libs=yes
9782 # ldd complains unless libraries are executable
9783 postinstall_cmds='chmod +x $lib'
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9792 if test "$with_gnu_ld" = yes; then
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 case $host_vendor in
9805 shlibpath_overrides_runpath=no
9807 export_dynamic_flag_spec='${wl}-Blargedynsym'
9808 runpath_var=LD_RUN_PATH
9816 shlibpath_overrides_runpath=no
9817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9823 if test -d /usr/nec ;then
9825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9826 soname_spec='$libname${shared_ext}.$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9832 version_type=freebsd-elf
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 hardcode_into_libs=yes
9839 if test "$with_gnu_ld" = yes; then
9840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9841 shlibpath_overrides_runpath=no
9843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9844 shlibpath_overrides_runpath=yes
9847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9851 sys_lib_dlsearch_path_spec='/usr/lib'
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 shlibpath_var=LD_LIBRARY_PATH
9865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9866 echo "${ECHO_T}$dynamic_linker" >&6; }
9867 test "$dynamic_linker" = no && can_build_shared=no
9869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9870 if test "$GCC" = yes; then
9871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9875 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9876 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9877 if test "${libltdl_cv_shlibext+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 eval libltdl_cv_shlibext=$shrext_cmds
9885 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9886 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9887 if test -n "$libltdl_cv_shlibext"; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9896 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9897 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9898 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 libltdl_cv_shlibpath_var="$shlibpath_var"
9903 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9904 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9905 if test -n "$libltdl_cv_shlibpath_var"; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9914 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9915 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9916 if test "${libltdl_cv_sys_search_path+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9921 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9922 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9923 if test -n "$libltdl_cv_sys_search_path"; then
9925 for dir in $libltdl_cv_sys_search_path; do
9926 if test -z "$sys_search_path"; then
9927 sys_search_path="$dir"
9929 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9933 cat >>confdefs.h <<_ACEOF
9934 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9939 { echo "$as_me:$LINENO: checking for objdir" >&5
9940 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9941 if test "${libltdl_cv_objdir+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 libltdl_cv_objdir="$objdir"
9945 if test -n "$objdir"; then
9948 rm -f .libs 2>/dev/null
9949 mkdir .libs 2>/dev/null
9950 if test -d .libs; then
9951 libltdl_cv_objdir=.libs
9953 # MS-DOS does not allow filenames that begin with a dot.
9954 libltdl_cv_objdir=_libs
9956 rmdir .libs 2>/dev/null
9960 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9961 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9963 cat >>confdefs.h <<_ACEOF
9964 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9972 # Check for command to grab the raw symbol name followed by C symbol from nm.
9973 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9974 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 # These are sane defaults that work on at least a few old systems.
9980 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9982 # Character class describing NM global symbol codes.
9983 symcode='[BCDEGRST]'
9985 # Regexp to match symbols that can be accessed directly from C.
9986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9988 # Transform an extracted symbol line into a proper C declaration
9989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9991 # Transform an extracted symbol line into symbol name and symbol address
9992 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'"
9994 # Define system-specific variables.
9999 cygwin* | mingw* | pw32*)
10000 symcode='[ABCDGISTW]'
10002 hpux*) # Its linker distinguishes data from code symbols
10003 if test "$host_cpu" = ia64; then
10004 symcode='[ABCDEGRST]'
10006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10007 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'"
10010 if test "$host_cpu" = ia64; then
10011 symcode='[ABCDGIRSTW]'
10012 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10013 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'"
10016 irix* | nonstopux*)
10017 symcode='[BCDEGRST]'
10020 symcode='[BCDEGQRST]'
10031 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10039 # Handle CRLF in mingw tool chain
10043 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10047 # If we're using GNU nm, then use its standard symbol codes.
10048 case `$NM -V 2>&1` in
10049 *GNU* | *'with BFD'*)
10050 symcode='[ABCDGIRSTW]' ;;
10053 # Try without a prefix undercore, then with it.
10054 for ac_symprfx in "" "_"; do
10056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10057 symxfrm="\\1 $ac_symprfx\\2 \\2"
10059 # Write the raw and C identifiers.
10060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10062 # Check to see that the pipe works correctly.
10066 cat > conftest.$ac_ext <<EOF
10071 void nm_test_func(){}
10075 int main(){nm_test_var='a';nm_test_func();return(0);}
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; then
10083 # Now try to grab the symbols.
10085 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10086 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && test -s "$nlist"; then
10090 # Try sorting and uniquifying the output.
10091 if sort "$nlist" | uniq > "$nlist"T; then
10092 mv -f "$nlist"T "$nlist"
10097 # Make sure that we snagged all the symbols we need.
10098 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10099 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10100 cat <<EOF > conftest.$ac_ext
10106 # Now generate the symbol file.
10107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10109 cat <<EOF >> conftest.$ac_ext
10110 #if defined (__STDC__) && __STDC__
10111 # define lt_ptr_t void *
10113 # define lt_ptr_t char *
10117 /* The mapping between symbol names and symbols. */
10122 lt_preloaded_symbols[] =
10125 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10126 cat <<\EOF >> conftest.$ac_ext
10134 # Now try linking the two files.
10135 mv conftest.$ac_objext conftstm.$ac_objext
10136 lt_save_LIBS="$LIBS"
10137 lt_save_CFLAGS="$CFLAGS"
10138 LIBS="conftstm.$ac_objext"
10139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10147 LIBS="$lt_save_LIBS"
10148 CFLAGS="$lt_save_CFLAGS"
10150 echo "cannot find nm_test_func in $nlist" >&5
10153 echo "cannot find nm_test_var in $nlist" >&5
10156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10159 echo "$progname: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10162 rm -f conftest* conftst*
10164 # Do not use the global_symbol_pipe unless it works.
10165 if test "$pipe_works" = yes; then
10168 lt_cv_sys_global_symbol_pipe=
10174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10175 lt_cv_sys_global_symbol_to_cdecl=
10177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10178 { echo "$as_me:$LINENO: result: failed" >&5
10179 echo "${ECHO_T}failed" >&6; }
10181 { echo "$as_me:$LINENO: result: ok" >&5
10182 echo "${ECHO_T}ok" >&6; }
10186 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10187 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10188 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10192 libltdl_cv_preloaded_symbols=yes
10194 libltdl_cv_preloaded_symbols=no
10198 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10199 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10200 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_PRELOADED_SYMBOLS 1
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10217 { echo "$as_me:$LINENO: checking for shl_load" >&5
10218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10219 if test "${ac_cv_func_shl_load+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define shl_load innocuous_shl_load
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char shl_load (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10238 # include <limits.h>
10240 # include <assert.h>
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_shl_load || defined __stub___shl_load
10262 return shl_load ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_func_shl_load=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_func_shl_load=no
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10314 if test $ac_cv_func_shl_load = yes; then
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_SHL_LOAD 1
10321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10322 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 ac_check_lib_save_LIBS=$LIBS
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10335 /* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
10345 return shl_load ();
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_lib_dld_shl_load=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_lib_dld_shl_load=no
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10398 if test $ac_cv_lib_dld_shl_load = yes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_SHL_LOAD 1
10404 LIBADD_DL="$LIBADD_DL -ldld"
10406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 ac_check_lib_save_LIBS=$LIBS
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_link") 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450 { (case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_try") 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_lib_dl_dlopen=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lib_dl_dlopen=no
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10482 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10483 if test $ac_cv_lib_dl_dlopen = yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_LIBDL 1
10489 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10498 # include <dlfcn.h>
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_LIBDL 1
10547 libltdl_cv_func_dlopen="yes"
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10553 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10554 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lsvld $LIBS"
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_link") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596 { (case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_try") 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest$ac_exeext'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_lib_svld_dlopen=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_lib_svld_dlopen=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10628 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10629 if test $ac_cv_lib_svld_dlopen = yes; then
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_LIBDL 1
10635 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10637 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10638 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 ac_check_lib_save_LIBS=$LIBS
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10661 return dld_link ();
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10681 { (case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_try") 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_try") 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 ac_cv_lib_dld_dld_link=yes
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_cv_lib_dld_dld_link=no
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10714 if test $ac_cv_lib_dld_dld_link = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10720 LIBADD_DL="$LIBADD_DL -ldld"
10722 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10723 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10724 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10735 #define _dyld_func_lookup innocuous__dyld_func_lookup
10737 /* System header to define __stub macros and hopefully few prototypes,
10738 which can conflict with char _dyld_func_lookup (); below.
10739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10740 <limits.h> exists even on freestanding compilers. */
10743 # include <limits.h>
10745 # include <assert.h>
10748 #undef _dyld_func_lookup
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10756 char _dyld_func_lookup ();
10757 /* The GNU C library defines this for functions which it implements
10758 to always fail with ENOSYS. Some functions are actually named
10759 something starting with __ and the normal name is an alias. */
10760 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10767 return _dyld_func_lookup ();
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_link") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest$ac_exeext'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_func__dyld_func_lookup=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_cv_func__dyld_func_lookup=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10818 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10819 if test $ac_cv_func__dyld_func_lookup = yes; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_DYLD 1
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10848 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10850 lt_save_LIBS="$LIBS"
10851 LIBS="$LIBS $LIBADD_DL"
10853 for ac_func in dlerror
10855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10869 #define $ac_func innocuous_$ac_func
10871 /* System header to define __stub macros and hopefully few prototypes,
10872 which can conflict with char $ac_func (); below.
10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874 <limits.h> exists even on freestanding compilers. */
10877 # include <limits.h>
10879 # include <assert.h>
10884 /* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined __stub_$ac_func || defined __stub___$ac_func
10901 return $ac_func ();
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 eval "$as_ac_var=yes"
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 eval "$as_ac_var=no"
10948 rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10951 ac_res=`eval echo '${'$as_ac_var'}'`
10952 { echo "$as_me:$LINENO: result: $ac_res" >&5
10953 echo "${ECHO_T}$ac_res" >&6; }
10954 if test `eval echo '${'$as_ac_var'}'` = yes; then
10955 cat >>confdefs.h <<_ACEOF
10956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10962 LIBS="$lt_save_LIBS"
10965 ac_cpp='$CPP $CPPFLAGS'
10966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10973 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10974 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_cv_sys_symbol_underscore=no
10978 cat > conftest.$ac_ext <<EOF
10979 void nm_test_func(){}
10980 int main(){nm_test_func;return 0;}
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; then
10987 # Now try to grab the symbols.
10988 ac_nlist=conftest.nm
10989 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && test -s "$ac_nlist"; then
10994 # See whether the symbols have a leading underscore.
10995 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10996 ac_cv_sys_symbol_underscore=yes
10998 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11001 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11005 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11008 echo "configure: failed program was:" >&5
11014 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11015 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11018 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11019 if test x"$libltdl_cv_func_dlopen" = xyes ||
11020 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11021 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11022 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11023 if test "${libltdl_cv_need_uscore+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 libltdl_cv_need_uscore=unknown
11028 LIBS="$LIBS $LIBADD_DL"
11029 if test "$cross_compiling" = yes; then :
11030 libltdl_cv_need_uscore=cross
11032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11033 lt_status=$lt_dlunknown
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11035 "configure"
11036 #include "confdefs.h"
11045 # define LT_DLGLOBAL RTLD_GLOBAL
11048 # define LT_DLGLOBAL DL_GLOBAL
11050 # define LT_DLGLOBAL 0
11054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11055 find out it does not work in some platform. */
11056 #ifndef LT_DLLAZY_OR_NOW
11058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11061 # define LT_DLLAZY_OR_NOW DL_LAZY
11064 # define LT_DLLAZY_OR_NOW RTLD_NOW
11067 # define LT_DLLAZY_OR_NOW DL_NOW
11069 # define LT_DLLAZY_OR_NOW 0
11077 extern "C" void exit (int);
11080 void fnord() { int i=42;}
11083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11084 int status = $lt_dlunknown;
11088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11090 /* dlclose (self); */
11098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11103 (./conftest; exit; ) >&5 2>/dev/null
11105 case x$lt_status in
11106 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11107 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11108 x$lt_dlunknown|x*) ;;
11111 # compilation failed
11120 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11121 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11125 if test x"$libltdl_cv_need_uscore" = xyes; then
11127 cat >>confdefs.h <<\_ACEOF
11128 #define NEED_USCORE 1
11134 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11135 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11136 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 # PORTME does your system automatically load deplibs for dlopen?
11140 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11141 # For now, we just catch OSes we know something about -- in the
11142 # future, we'll try test this programmatically.
11143 libltdl_cv_sys_dlopen_deplibs=unknown
11145 aix3*|aix4.1.*|aix4.2.*)
11146 # Unknown whether this is true for these versions of AIX, but
11147 # we want this `case' here to explicitly catch those versions.
11148 libltdl_cv_sys_dlopen_deplibs=unknown
11151 libltdl_cv_sys_dlopen_deplibs=yes
11154 # Assuming the user has installed a libdl from somewhere, this is true
11155 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11156 libltdl_cv_sys_dlopen_deplibs=yes
11158 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11159 # GNU and its variants, using gnu ld.so (Glibc)
11160 libltdl_cv_sys_dlopen_deplibs=yes
11163 libltdl_cv_sys_dlopen_deplibs=yes
11166 libltdl_cv_sys_dlopen_deplibs=yes
11168 irix[12345]*|irix6.[01]*)
11169 # Catch all versions of IRIX before 6.2, and indicate that we don't
11170 # know how it worked for any of those versions.
11171 libltdl_cv_sys_dlopen_deplibs=unknown
11174 # The case above catches anything before 6.2, and it's known that
11175 # at 6.2 and later dlopen does load deplibs.
11176 libltdl_cv_sys_dlopen_deplibs=yes
11179 libltdl_cv_sys_dlopen_deplibs=yes
11182 libltdl_cv_sys_dlopen_deplibs=yes
11185 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11186 # it did *not* use an RPATH in a shared library to find objects the
11187 # library depends on, so we explictly say `no'.
11188 libltdl_cv_sys_dlopen_deplibs=no
11190 osf5.0|osf5.0a|osf5.1)
11191 # dlopen *does* load deplibs and with the right loader patch applied
11192 # it even uses RPATH in a shared library to search for shared objects
11193 # that the library depends on, but there's no easy way to know if that
11194 # patch is installed. Since this is the case, all we can really
11195 # say is unknown -- it depends on the patch being installed. If
11196 # it is, this changes to `yes'. Without it, it would be `no'.
11197 libltdl_cv_sys_dlopen_deplibs=unknown
11200 # the two cases above should catch all versions of osf <= 5.1. Read
11201 # the comments above for what we know about them.
11202 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11203 # is used to find them so we can finally say `yes'.
11204 libltdl_cv_sys_dlopen_deplibs=yes
11207 libltdl_cv_sys_dlopen_deplibs=yes
11209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11210 libltdl_cv_sys_dlopen_deplibs=yes
11215 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11216 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11217 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define LTDL_DLOPEN_DEPLIBS 1
11226 for ac_header in argz.h
11228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11239 # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_header_compiler=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_header_compiler=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 echo "${ECHO_T}$ac_header_compiler" >&6; }
11297 # Is the header present?
11298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <$ac_header>
11308 if { (ac_try="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } >/dev/null; then
11321 if test -s conftest.err; then
11322 ac_cpp_err=$ac_c_preproc_warn_flag
11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11330 if test -z "$ac_cpp_err"; then
11331 ac_header_preproc=yes
11333 echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 ac_header_preproc=no
11339 rm -f conftest.err conftest.$ac_ext
11340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341 echo "${ECHO_T}$ac_header_preproc" >&6; }
11343 # So? What about this header?
11344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 ## ----------------------------------- ##
11367 ## Report this to llvmbugs@cs.uiuc.edu ##
11368 ## ----------------------------------- ##
11370 ) | sed "s/^/$as_me: WARNING: /" >&2
11373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 eval "$as_ac_Header=\$ac_header_preproc"
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 { echo "$as_me:$LINENO: checking for error_t" >&5
11396 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11397 if test "${ac_cv_type_error_t+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11410 typedef error_t ac__type_new_;
11414 if ((ac__type_new_ *) 0)
11416 if (sizeof (ac__type_new_))
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1 >conftest.err
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_type_error_t=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_cv_type_error_t=no
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11468 if test $ac_cv_type_error_t = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_ERROR_T 1
11477 cat >>confdefs.h <<\_ACEOF
11478 #define error_t int
11489 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11513 # include <limits.h>
11515 # include <assert.h>
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 return $ac_func ();
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_try") 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 eval "$as_ac_var=no"
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11587 ac_res=`eval echo '${'$as_ac_var'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11625 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11639 # Is the header compilable?
11640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 #include <$ac_header>
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_header_compiler=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 ac_header_compiler=no
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11695 echo "${ECHO_T}$ac_header_compiler" >&6; }
11697 # Is the header present?
11698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11700 cat >conftest.$ac_ext <<_ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 #include <$ac_header>
11708 if { (ac_try="$ac_cpp conftest.$ac_ext"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } >/dev/null; then
11721 if test -s conftest.err; then
11722 ac_cpp_err=$ac_c_preproc_warn_flag
11723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11730 if test -z "$ac_cpp_err"; then
11731 ac_header_preproc=yes
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_header_preproc=no
11739 rm -f conftest.err conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11741 echo "${ECHO_T}$ac_header_preproc" >&6; }
11743 # So? What about this header?
11744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11750 ac_header_preproc=yes
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766 ## ----------------------------------- ##
11767 ## Report this to llvmbugs@cs.uiuc.edu ##
11768 ## ----------------------------------- ##
11770 ) | sed "s/^/$as_me: WARNING: /" >&2
11773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 eval "$as_ac_Header=\$ac_header_preproc"
11780 ac_res=`eval echo '${'$as_ac_Header'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11798 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11811 # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 #include <$ac_header>
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_try") 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null; then
11893 if test -s conftest.err; then
11894 ac_cpp_err=$ac_c_preproc_warn_flag
11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11902 if test -z "$ac_cpp_err"; then
11903 ac_header_preproc=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_preproc=no
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11915 # So? What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938 ## ----------------------------------- ##
11939 ## Report this to llvmbugs@cs.uiuc.edu ##
11940 ## ----------------------------------- ##
11942 ) | sed "s/^/$as_me: WARNING: /" >&2
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 eval "$as_ac_Header=\$ac_header_preproc"
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11968 for ac_header in string.h strings.h
11970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 ac_res=`eval echo '${'$as_ac_Header'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11981 # Is the header compilable?
11982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 #include <$ac_header>
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_compile") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_header_compiler=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_compiler=no
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037 echo "${ECHO_T}$ac_header_compiler" >&6; }
12039 # Is the header present?
12040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <$ac_header>
12050 if { (ac_try="$ac_cpp conftest.$ac_ext"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null; then
12063 if test -s conftest.err; then
12064 ac_cpp_err=$ac_c_preproc_warn_flag
12065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12072 if test -z "$ac_cpp_err"; then
12073 ac_header_preproc=yes
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_header_preproc=no
12081 rm -f conftest.err conftest.$ac_ext
12082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6; }
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12092 ac_header_preproc=yes
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12108 ## ----------------------------------- ##
12109 ## Report this to llvmbugs@cs.uiuc.edu ##
12110 ## ----------------------------------- ##
12112 ) | sed "s/^/$as_me: WARNING: /" >&2
12115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 eval "$as_ac_Header=\$ac_header_preproc"
12122 ac_res=`eval echo '${'$as_ac_Header'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12128 cat >>confdefs.h <<_ACEOF
12129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12139 for ac_func in strchr index
12141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12155 #define $ac_func innocuous_$ac_func
12157 /* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func (); below.
12159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 <limits.h> exists even on freestanding compilers. */
12163 # include <limits.h>
12165 # include <assert.h>
12170 /* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12177 /* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180 #if defined __stub_$ac_func || defined __stub___$ac_func
12187 return $ac_func ();
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 eval "$as_ac_var=yes"
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 eval "$as_ac_var=no"
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12237 ac_res=`eval echo '${'$as_ac_var'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239 echo "${ECHO_T}$ac_res" >&6; }
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250 for ac_func in strrchr rindex
12252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12266 #define $ac_func innocuous_$ac_func
12268 /* System header to define __stub macros and hopefully few prototypes,
12269 which can conflict with char $ac_func (); below.
12270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271 <limits.h> exists even on freestanding compilers. */
12274 # include <limits.h>
12276 # include <assert.h>
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12288 /* The GNU C library defines this for functions which it implements
12289 to always fail with ENOSYS. Some functions are actually named
12290 something starting with __ and the normal name is an alias. */
12291 #if defined __stub_$ac_func || defined __stub___$ac_func
12298 return $ac_func ();
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (ac_try="$ac_link"
12305 case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_link") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest$ac_exeext'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 eval "$as_ac_var=yes"
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12342 eval "$as_ac_var=no"
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12348 ac_res=`eval echo '${'$as_ac_var'}'`
12349 { echo "$as_me:$LINENO: result: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12361 for ac_func in memcpy bcopy
12363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12377 #define $ac_func innocuous_$ac_func
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char $ac_func (); below.
12381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12382 <limits.h> exists even on freestanding compilers. */
12385 # include <limits.h>
12387 # include <assert.h>
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12399 /* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402 #if defined __stub_$ac_func || defined __stub___$ac_func
12409 return $ac_func ();
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 eval "$as_ac_var=yes"
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 eval "$as_ac_var=no"
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12459 ac_res=`eval echo '${'$as_ac_var'}'`
12460 { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12462 if test `eval echo '${'$as_ac_var'}'` = yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12472 for ac_func in memmove strcmp
12474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12488 #define $ac_func innocuous_$ac_func
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char $ac_func (); below.
12492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493 <limits.h> exists even on freestanding compilers. */
12496 # include <limits.h>
12498 # include <assert.h>
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12510 /* The GNU C library defines this for functions which it implements
12511 to always fail with ENOSYS. Some functions are actually named
12512 something starting with __ and the normal name is an alias. */
12513 #if defined __stub_$ac_func || defined __stub___$ac_func
12520 return $ac_func ();
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_link") 2>conftest.er1
12534 grep -v '^ *+' conftest.er1 >conftest.err
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 eval "$as_ac_var=yes"
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 eval "$as_ac_var=no"
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12570 ac_res=`eval echo '${'$as_ac_var'}'`
12571 { echo "$as_me:$LINENO: result: $ac_res" >&5
12572 echo "${ECHO_T}$ac_res" >&6; }
12573 if test `eval echo '${'$as_ac_var'}'` = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12584 for ac_func in closedir opendir readdir
12586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12600 #define $ac_func innocuous_$ac_func
12602 /* System header to define __stub macros and hopefully few prototypes,
12603 which can conflict with char $ac_func (); below.
12604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12605 <limits.h> exists even on freestanding compilers. */
12608 # include <limits.h>
12610 # include <assert.h>
12615 /* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12622 /* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625 #if defined __stub_$ac_func || defined __stub___$ac_func
12632 return $ac_func ();
12637 rm -f conftest.$ac_objext conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_link") 2>conftest.er1
12646 grep -v '^ *+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 eval "$as_ac_var=yes"
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 eval "$as_ac_var=no"
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12682 ac_res=`eval echo '${'$as_ac_var'}'`
12683 { echo "$as_me:$LINENO: result: $ac_res" >&5
12684 echo "${ECHO_T}$ac_res" >&6; }
12685 if test `eval echo '${'$as_ac_var'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12695 if test "$WITH_LLVMGCCDIR" = "default" ; then
12696 LLVMGCC="llvm-gcc${EXEEXT}"
12697 LLVMGXX="llvm-g++${EXEEXT}"
12698 LLVMGCCCOMMAND="$LLVMGCC"
12699 LLVMGXXCOMMAND="$LLVMGXX"
12700 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12702 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12704 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12705 set dummy $LLVMGCC; ac_word=$2
12706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12708 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 LLVMGCC=$ac_cv_path_LLVMGCC
12735 if test -n "$LLVMGCC"; then
12736 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12737 echo "${ECHO_T}$LLVMGCC" >&6; }
12739 { echo "$as_me:$LINENO: result: no" >&5
12740 echo "${ECHO_T}no" >&6; }
12744 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12745 set dummy $LLVMGXX; ac_word=$2
12746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12748 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12763 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 LLVMGXX=$ac_cv_path_LLVMGXX
12775 if test -n "$LLVMGXX"; then
12776 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12777 echo "${ECHO_T}$LLVMGXX" >&6; }
12779 { echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6; }
12785 if test -z "$LLVMGCC"; then
12786 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12787 LLVMGCCCOMMAND="$LLVMGCC"
12789 if test -z "$LLVMGXX"; then
12790 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12791 LLVMGXXCOMMAND="$LLVMGXX"
12798 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12800 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12805 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12806 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12819 if test "$GCC" != "yes" && test "$ICC" != "yes"
12821 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12822 echo "$as_me: error: gcc|icc required but not found" >&2;}
12823 { (exit 1); exit 1; }; }
12826 if test "$GXX" != "yes" && test "$IXX" != "yes"
12828 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12829 echo "$as_me: error: g++|icc required but not found" >&2;}
12830 { (exit 1); exit 1; }; }
12833 if test "$GCC" = "yes"
12835 cat >conftest.$ac_ext <<_ACEOF
12836 #if !defined(__GNUC__) || __GNUC__ < 3
12837 #error Unsupported GCC version
12841 rm -f conftest.$ac_objext
12842 if { (ac_try="$ac_compile"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_compile") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12881 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12882 { (exit 1); exit 1; }; }
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 if test -z "$llvm_cv_gnu_make_command"
12890 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12891 echo "$as_me: error: GNU Make required but not found" >&2;}
12892 { (exit 1); exit 1; }; }
12895 { echo "$as_me:$LINENO: result: ok" >&5
12896 echo "${ECHO_T}ok" >&6; }
12898 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12899 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12900 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12902 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12904 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12905 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12909 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12910 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12911 if test "${ac_cv_lib_m_sin+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 ac_check_lib_save_LIBS=$LIBS
12916 cat >conftest.$ac_ext <<_ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (ac_try="$ac_link"
12940 case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_link") 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_try") 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_cv_lib_m_sin=yes
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12984 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12985 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12986 if test $ac_cv_lib_m_sin = yes; then
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_LIBM 1
12995 if test "$llvm_cv_os_type" = "MingW" ; then
12997 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12998 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12999 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-limagehlp $LIBS"
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13020 rm -f conftest.$ac_objext conftest$ac_exeext
13021 if { (ac_try="$ac_link"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_link") 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_try") 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_lib_imagehlp_main=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_imagehlp_main=no
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13067 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13068 if test $ac_cv_lib_imagehlp_main = yes; then
13069 cat >>confdefs.h <<_ACEOF
13070 #define HAVE_LIBIMAGEHLP 1
13073 LIBS="-limagehlp $LIBS"
13078 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13079 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13080 if test "${ac_cv_lib_psapi_main+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lpsapi $LIBS"
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_lib_psapi_main=yes
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_cv_lib_psapi_main=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13148 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13149 if test $ac_cv_lib_psapi_main = yes; then
13150 cat >>confdefs.h <<_ACEOF
13151 #define HAVE_LIBPSAPI 1
13154 LIBS="-lpsapi $LIBS"
13160 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13161 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13162 if test "${ac_cv_search_dlopen+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_func_search_save_LIBS=$LIBS
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13188 for ac_lib in '' dl; do
13189 if test -z "$ac_lib"; then
13190 ac_res="none required"
13193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13204 grep -v '^ *+' conftest.er1 >conftest.err
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_cv_search_dlopen=$ac_res
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13237 rm -f core conftest.err conftest.$ac_objext \
13239 if test "${ac_cv_search_dlopen+set}" = set; then
13243 if test "${ac_cv_search_dlopen+set}" = set; then
13246 ac_cv_search_dlopen=no
13248 rm conftest.$ac_ext
13249 LIBS=$ac_func_search_save_LIBS
13251 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13252 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13253 ac_res=$ac_cv_search_dlopen
13254 if test "$ac_res" != no; then
13255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257 cat >>confdefs.h <<\_ACEOF
13258 #define HAVE_DLOPEN 1
13262 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13263 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13267 if test "$llvm_cv_enable_libffi" = "yes" ; then
13268 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13269 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13270 if test "${ac_cv_search_ffi_call+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_func_search_save_LIBS=$LIBS
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13291 return ffi_call ();
13296 for ac_lib in '' ffi; do
13297 if test -z "$ac_lib"; then
13298 ac_res="none required"
13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest$ac_exeext'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_search_ffi_call=$ac_res
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13345 rm -f core conftest.err conftest.$ac_objext \
13347 if test "${ac_cv_search_ffi_call+set}" = set; then
13351 if test "${ac_cv_search_ffi_call+set}" = set; then
13354 ac_cv_search_ffi_call=no
13356 rm conftest.$ac_ext
13357 LIBS=$ac_func_search_save_LIBS
13359 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13360 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13361 ac_res=$ac_cv_search_ffi_call
13362 if test "$ac_res" != no; then
13363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_FFI_CALL 1
13370 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13371 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13372 { (exit 1); exit 1; }; }
13377 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13378 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_mallinfo+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13400 return mallinfo ();
13405 for ac_lib in '' malloc; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_search_mallinfo=$ac_res
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13454 rm -f core conftest.err conftest.$ac_objext \
13456 if test "${ac_cv_search_mallinfo+set}" = set; then
13460 if test "${ac_cv_search_mallinfo+set}" = set; then
13463 ac_cv_search_mallinfo=no
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13469 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13470 ac_res=$ac_cv_search_mallinfo
13471 if test "$ac_res" != no; then
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_MALLINFO 1
13481 if test "$ENABLE_THREADS" -eq 1 ; then
13483 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13484 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-lpthread $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13503 char pthread_mutex_init ();
13507 return pthread_mutex_init ();
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest$ac_exeext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_lib_pthread_pthread_mutex_init=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_cv_lib_pthread_pthread_mutex_init=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13558 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13559 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13560 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_LIBPTHREAD 1
13565 LIBS="-lpthread $LIBS"
13569 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13570 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13571 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 ac_func_search_save_LIBS=$LIBS
13575 cat >conftest.$ac_ext <<_ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13588 char pthread_mutex_lock ();
13592 return pthread_mutex_lock ();
13597 for ac_lib in '' pthread; do
13598 if test -z "$ac_lib"; then
13599 ac_res="none required"
13602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13604 rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (ac_try="$ac_link"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_link") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; } &&
13628 { ac_try='test -s conftest$ac_exeext'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_search_pthread_mutex_lock=$ac_res
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13646 rm -f core conftest.err conftest.$ac_objext \
13648 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13652 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13655 ac_cv_search_pthread_mutex_lock=no
13657 rm conftest.$ac_ext
13658 LIBS=$ac_func_search_save_LIBS
13660 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13661 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13662 ac_res=$ac_cv_search_pthread_mutex_lock
13663 if test "$ac_res" != no; then
13664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_PTHREAD_MUTEX_LOCK 1
13672 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13673 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13674 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 ac_func_search_save_LIBS=$LIBS
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13691 char pthread_rwlock_init ();
13695 return pthread_rwlock_init ();
13700 for ac_lib in '' pthread; do
13701 if test -z "$ac_lib"; then
13702 ac_res="none required"
13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (ac_try="$ac_link"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_cv_search_pthread_rwlock_init=$ac_res
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13749 rm -f core conftest.err conftest.$ac_objext \
13751 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13755 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13758 ac_cv_search_pthread_rwlock_init=no
13760 rm conftest.$ac_ext
13761 LIBS=$ac_func_search_save_LIBS
13763 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13764 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13765 ac_res=$ac_cv_search_pthread_rwlock_init
13766 if test "$ac_res" != no; then
13767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13769 cat >>confdefs.h <<\_ACEOF
13770 #define HAVE_PTHREAD_RWLOCK_INIT 1
13775 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13776 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13777 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 ac_func_search_save_LIBS=$LIBS
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13794 char pthread_getspecific ();
13798 return pthread_getspecific ();
13803 for ac_lib in '' pthread; do
13804 if test -z "$ac_lib"; then
13805 ac_res="none required"
13808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>conftest.er1
13819 grep -v '^ *+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest$ac_exeext'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_search_pthread_getspecific=$ac_res
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13852 rm -f core conftest.err conftest.$ac_objext \
13854 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13858 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13861 ac_cv_search_pthread_getspecific=no
13863 rm conftest.$ac_ext
13864 LIBS=$ac_func_search_save_LIBS
13866 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13867 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13868 ac_res=$ac_cv_search_pthread_getspecific
13869 if test "$ac_res" != no; then
13870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872 cat >>confdefs.h <<\_ACEOF
13873 #define HAVE_PTHREAD_GETSPECIFIC 1
13881 # Check whether --with-udis86 was given.
13882 if test "${with_udis86+set}" = set; then
13883 withval=$with_udis86;
13888 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13891 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13892 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13893 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 ac_check_lib_save_LIBS=$LIBS
13897 LIBS="-ludis86 $LIBS"
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13905 /* Override any GCC internal prototype to avoid an error.
13906 Use char because int might match the return type of a GCC
13907 builtin and then its argument prototype would still apply. */
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (ac_try="$ac_link"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_link") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13935 { (case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_try") 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_cv_lib_udis86_ud_init=yes
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_cv_lib_udis86_ud_init=no
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 LIBS=$ac_check_lib_save_LIBS
13966 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13967 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13968 if test $ac_cv_lib_udis86_ud_init = yes; then
13969 cat >>confdefs.h <<_ACEOF
13970 #define HAVE_LIBUDIS86 1
13973 LIBS="-ludis86 $LIBS"
13977 echo "Error! You need to have libudis86 around."
13989 cat >>confdefs.h <<_ACEOF
13990 #define USE_UDIS86 $USE_UDIS86
13995 # Check whether --with-oprofile was given.
13996 if test "${with_oprofile+set}" = set; then
13997 withval=$with_oprofile;
14001 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14002 no) llvm_cv_oppath=
14005 *) llvm_cv_oppath="${withval}/lib/oprofile"
14006 CPPFLAGS="-I${withval}/include";;
14008 if test -n "$llvm_cv_oppath" ; then
14009 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14010 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14011 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14012 if test "${ac_cv_search_bfd_init+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 ac_func_search_save_LIBS=$LIBS
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 /* Override any GCC internal prototype to avoid an error.
14024 Use char because int might match the return type of a GCC
14025 builtin and then its argument prototype would still apply. */
14033 return bfd_init ();
14038 for ac_lib in '' bfd; do
14039 if test -z "$ac_lib"; then
14040 ac_res="none required"
14043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 ac_cv_search_bfd_init=$ac_res
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14087 rm -f core conftest.err conftest.$ac_objext \
14089 if test "${ac_cv_search_bfd_init+set}" = set; then
14093 if test "${ac_cv_search_bfd_init+set}" = set; then
14096 ac_cv_search_bfd_init=no
14098 rm conftest.$ac_ext
14099 LIBS=$ac_func_search_save_LIBS
14101 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14102 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14103 ac_res=$ac_cv_search_bfd_init
14104 if test "$ac_res" != no; then
14105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14109 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14110 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14111 if test "${ac_cv_search_op_open_agent+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_func_search_save_LIBS=$LIBS
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 /* Override any GCC internal prototype to avoid an error.
14123 Use char because int might match the return type of a GCC
14124 builtin and then its argument prototype would still apply. */
14128 char op_open_agent ();
14132 return op_open_agent ();
14137 for ac_lib in '' opagent; do
14138 if test -z "$ac_lib"; then
14139 ac_res="none required"
14142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14144 rm -f conftest.$ac_objext conftest$ac_exeext
14145 if { (ac_try="$ac_link"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_link") 2>conftest.er1
14153 grep -v '^ *+' conftest.er1 >conftest.err
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_try") 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_search_op_open_agent=$ac_res
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14186 rm -f core conftest.err conftest.$ac_objext \
14188 if test "${ac_cv_search_op_open_agent+set}" = set; then
14192 if test "${ac_cv_search_op_open_agent+set}" = set; then
14195 ac_cv_search_op_open_agent=no
14197 rm conftest.$ac_ext
14198 LIBS=$ac_func_search_save_LIBS
14200 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14201 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14202 ac_res=$ac_cv_search_op_open_agent
14203 if test "$ac_res" != no; then
14204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14208 echo "Error! You need to have libopagent around."
14213 if test "${ac_cv_header_opagent_h+set}" = set; then
14214 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14215 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14216 if test "${ac_cv_header_opagent_h+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14220 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14222 # Is the header compilable?
14223 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14224 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 $ac_includes_default
14232 #include <opagent.h>
14234 rm -f conftest.$ac_objext
14235 if { (ac_try="$ac_compile"
14236 case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_compile") 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_header_compiler=yes
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 ac_header_compiler=no
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278 echo "${ECHO_T}$ac_header_compiler" >&6; }
14280 # Is the header present?
14281 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14282 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <opagent.h>
14291 if { (ac_try="$ac_cpp conftest.$ac_ext"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14299 grep -v '^ *+' conftest.er1 >conftest.err
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } >/dev/null; then
14304 if test -s conftest.err; then
14305 ac_cpp_err=$ac_c_preproc_warn_flag
14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14313 if test -z "$ac_cpp_err"; then
14314 ac_header_preproc=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_header_preproc=no
14322 rm -f conftest.err conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14324 echo "${ECHO_T}$ac_header_preproc" >&6; }
14326 # So? What about this header?
14327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14329 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14330 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14332 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14333 ac_header_preproc=yes
14336 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14337 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14339 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14341 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14343 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14345 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14347 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14349 ## ----------------------------------- ##
14350 ## Report this to llvmbugs@cs.uiuc.edu ##
14351 ## ----------------------------------- ##
14353 ) | sed "s/^/$as_me: WARNING: /" >&2
14356 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14357 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_opagent_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_cv_header_opagent_h=$ac_header_preproc
14363 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14364 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14367 if test $ac_cv_header_opagent_h = yes; then
14371 echo "Error! You need to have opagent.h around."
14387 cat >>confdefs.h <<_ACEOF
14388 #define USE_OPROFILE $USE_OPROFILE
14398 ac_header_dirent=no
14399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14400 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14401 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14402 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <sys/types.h>
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_compile") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439 { (case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_try") 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 eval "$as_ac_Header=yes"
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 eval "$as_ac_Header=no"
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 ac_res=`eval echo '${'$as_ac_Header'}'`
14469 { echo "$as_me:$LINENO: result: $ac_res" >&5
14470 echo "${ECHO_T}$ac_res" >&6; }
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14476 ac_header_dirent=$ac_hdr; break
14480 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14481 if test $ac_header_dirent = dirent.h; then
14482 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14483 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14484 if test "${ac_cv_search_opendir+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 ac_func_search_save_LIBS=$LIBS
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14510 for ac_lib in '' dir; do
14511 if test -z "$ac_lib"; then
14512 ac_res="none required"
14515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest$ac_exeext'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_search_opendir=$ac_res
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14559 rm -f core conftest.err conftest.$ac_objext \
14561 if test "${ac_cv_search_opendir+set}" = set; then
14565 if test "${ac_cv_search_opendir+set}" = set; then
14568 ac_cv_search_opendir=no
14570 rm conftest.$ac_ext
14571 LIBS=$ac_func_search_save_LIBS
14573 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14574 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14575 ac_res=$ac_cv_search_opendir
14576 if test "$ac_res" != no; then
14577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14582 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14584 if test "${ac_cv_search_opendir+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 ac_func_search_save_LIBS=$LIBS
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14610 for ac_lib in '' x; do
14611 if test -z "$ac_lib"; then
14612 ac_res="none required"
14615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_link") 2>conftest.er1
14626 grep -v '^ *+' conftest.er1 >conftest.err
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_try") 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_search_opendir=$ac_res
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14659 rm -f core conftest.err conftest.$ac_objext \
14661 if test "${ac_cv_search_opendir+set}" = set; then
14665 if test "${ac_cv_search_opendir+set}" = set; then
14668 ac_cv_search_opendir=no
14670 rm conftest.$ac_ext
14671 LIBS=$ac_func_search_save_LIBS
14673 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14674 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14675 ac_res=$ac_cv_search_opendir
14676 if test "$ac_res" != no; then
14677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14683 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14684 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14685 if test "${ac_cv_header_mmap_anon+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 ac_cpp='$CPP $CPPFLAGS'
14690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #include <sys/mman.h>
14701 #include <unistd.h>
14706 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_cv_header_mmap_anon=yes
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_cv_header_mmap_anon=no
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 ac_cpp='$CPP $CPPFLAGS'
14756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14762 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14763 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14764 if test "$ac_cv_header_mmap_anon" = yes; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_MMAP_ANONYMOUS 1
14772 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14774 if test "${ac_cv_header_stat_broken+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 cat >conftest.$ac_ext <<_ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 #include <sys/types.h>
14784 #include <sys/stat.h>
14786 #if defined S_ISBLK && defined S_IFDIR
14787 # if S_ISBLK (S_IFDIR)
14792 #if defined S_ISBLK && defined S_IFCHR
14793 # if S_ISBLK (S_IFCHR)
14798 #if defined S_ISLNK && defined S_IFREG
14799 # if S_ISLNK (S_IFREG)
14804 #if defined S_ISSOCK && defined S_IFREG
14805 # if S_ISSOCK (S_IFREG)
14811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14812 $EGREP "You lose" >/dev/null 2>&1; then
14813 ac_cv_header_stat_broken=yes
14815 ac_cv_header_stat_broken=no
14820 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14822 if test $ac_cv_header_stat_broken = yes; then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define STAT_MACROS_BROKEN 1
14830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14832 if test "${ac_cv_header_stdc+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 #include <stdlib.h>
14842 #include <stdarg.h>
14843 #include <string.h>
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_header_stdc=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_header_stdc=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 if test $ac_cv_header_stdc = yes; then
14899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <string.h>
14909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14910 $EGREP "memchr" >/dev/null 2>&1; then
14913 ac_cv_header_stdc=no
14919 if test $ac_cv_header_stdc = yes; then
14920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 #include <stdlib.h>
14930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14931 $EGREP "free" >/dev/null 2>&1; then
14934 ac_cv_header_stdc=no
14940 if test $ac_cv_header_stdc = yes; then
14941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14942 if test "$cross_compiling" = yes; then
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 #include <stdlib.h>
14953 #if ((' ' & 0x0FF) == 0x020)
14954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14957 # define ISLOWER(c) \
14958 (('a' <= (c) && (c) <= 'i') \
14959 || ('j' <= (c) && (c) <= 'r') \
14960 || ('s' <= (c) && (c) <= 'z'))
14961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14969 for (i = 0; i < 256; i++)
14970 if (XOR (islower (i), ISLOWER (i))
14971 || toupper (i) != TOUPPER (i))
14976 rm -f conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14998 echo "$as_me: program exited with status $ac_status" >&5
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ( exit $ac_status )
15003 ac_cv_header_stdc=no
15005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15013 if test $ac_cv_header_stdc = yes; then
15015 cat >>confdefs.h <<\_ACEOF
15016 #define STDC_HEADERS 1
15021 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15022 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15023 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 #include <sys/types.h>
15033 #include <sys/wait.h>
15034 #ifndef WEXITSTATUS
15035 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15038 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15046 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066 { (case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_try") 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_cv_header_sys_wait_h=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_header_sys_wait_h=no
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15096 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15097 if test $ac_cv_header_sys_wait_h = yes; then
15099 cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_SYS_WAIT_H 1
15105 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15106 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15107 if test "${ac_cv_header_time+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <sys/types.h>
15117 #include <sys/time.h>
15123 if ((struct tm *) 0)
15129 rm -f conftest.$ac_objext
15130 if { (ac_try="$ac_compile"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 ac_cv_header_time=yes
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 ac_cv_header_time=no
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15174 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15175 if test $ac_cv_header_time = yes; then
15177 cat >>confdefs.h <<\_ACEOF
15178 #define TIME_WITH_SYS_TIME 1
15190 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15203 # Is the header compilable?
15204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15213 #include <$ac_header>
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_header_compiler=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_header_compiler=no
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259 echo "${ECHO_T}$ac_header_compiler" >&6; }
15261 # Is the header present?
15262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <$ac_header>
15272 if { (ac_try="$ac_cpp conftest.$ac_ext"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } >/dev/null; then
15285 if test -s conftest.err; then
15286 ac_cpp_err=$ac_c_preproc_warn_flag
15287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15294 if test -z "$ac_cpp_err"; then
15295 ac_header_preproc=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_header_preproc=no
15303 rm -f conftest.err conftest.$ac_ext
15304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305 echo "${ECHO_T}$ac_header_preproc" >&6; }
15307 # So? What about this header?
15308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15314 ac_header_preproc=yes
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330 ## ----------------------------------- ##
15331 ## Report this to llvmbugs@cs.uiuc.edu ##
15332 ## ----------------------------------- ##
15334 ) | sed "s/^/$as_me: WARNING: /" >&2
15337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 eval "$as_ac_Header=\$ac_header_preproc"
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350 cat >>confdefs.h <<_ACEOF
15351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15364 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 ac_res=`eval echo '${'$as_ac_Header'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15377 # Is the header compilable?
15378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <$ac_header>
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_compile") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404 { (case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_try") 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest.$ac_objext'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_header_compiler=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_header_compiler=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433 echo "${ECHO_T}$ac_header_compiler" >&6; }
15435 # Is the header present?
15436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <$ac_header>
15446 if { (ac_try="$ac_cpp conftest.$ac_ext"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } >/dev/null; then
15459 if test -s conftest.err; then
15460 ac_cpp_err=$ac_c_preproc_warn_flag
15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15468 if test -z "$ac_cpp_err"; then
15469 ac_header_preproc=yes
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_header_preproc=no
15477 rm -f conftest.err conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479 echo "${ECHO_T}$ac_header_preproc" >&6; }
15481 # So? What about this header?
15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15488 ac_header_preproc=yes
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 ## ----------------------------------- ##
15505 ## Report this to llvmbugs@cs.uiuc.edu ##
15506 ## ----------------------------------- ##
15508 ) | sed "s/^/$as_me: WARNING: /" >&2
15511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 eval "$as_ac_Header=\$ac_header_preproc"
15518 ac_res=`eval echo '${'$as_ac_Header'}'`
15519 { echo "$as_me:$LINENO: result: $ac_res" >&5
15520 echo "${ECHO_T}$ac_res" >&6; }
15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534 for ac_header in utime.h windows.h
15536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15547 # Is the header compilable?
15548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 $ac_includes_default
15557 #include <$ac_header>
15559 rm -f conftest.$ac_objext
15560 if { (ac_try="$ac_compile"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_compile") 2>conftest.er1
15568 grep -v '^ *+' conftest.er1 >conftest.err
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15574 { (case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_try") 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest.$ac_objext'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_header_compiler=yes
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 ac_header_compiler=no
15601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15603 echo "${ECHO_T}$ac_header_compiler" >&6; }
15605 # Is the header present?
15606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15608 cat >conftest.$ac_ext <<_ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 #include <$ac_header>
15616 if { (ac_try="$ac_cpp conftest.$ac_ext"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } >/dev/null; then
15629 if test -s conftest.err; then
15630 ac_cpp_err=$ac_c_preproc_warn_flag
15631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15638 if test -z "$ac_cpp_err"; then
15639 ac_header_preproc=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 ac_header_preproc=no
15647 rm -f conftest.err conftest.$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15649 echo "${ECHO_T}$ac_header_preproc" >&6; }
15651 # So? What about this header?
15652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15658 ac_header_preproc=yes
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15674 ## ----------------------------------- ##
15675 ## Report this to llvmbugs@cs.uiuc.edu ##
15676 ## ----------------------------------- ##
15678 ) | sed "s/^/$as_me: WARNING: /" >&2
15681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 eval "$as_ac_Header=\$ac_header_preproc"
15688 ac_res=`eval echo '${'$as_ac_Header'}'`
15689 { echo "$as_me:$LINENO: result: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15706 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15719 # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 $ac_includes_default
15729 #include <$ac_header>
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15740 grep -v '^ *+' conftest.er1 >conftest.err
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_header_compiler=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_header_compiler=no
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6; }
15777 # Is the header present?
15778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <$ac_header>
15788 if { (ac_try="$ac_cpp conftest.$ac_ext"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15810 if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_preproc=no
15819 rm -f conftest.err conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6; }
15823 # So? What about this header?
15824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15846 ## ----------------------------------- ##
15847 ## Report this to llvmbugs@cs.uiuc.edu ##
15848 ## ----------------------------------- ##
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 eval "$as_ac_Header=\$ac_header_preproc"
15860 ac_res=`eval echo '${'$as_ac_Header'}'`
15861 { echo "$as_me:$LINENO: result: $ac_res" >&5
15862 echo "${ECHO_T}$ac_res" >&6; }
15865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15866 cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15878 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15891 # Is the header compilable?
15892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15901 #include <$ac_header>
15903 rm -f conftest.$ac_objext
15904 if { (ac_try="$ac_compile"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15912 grep -v '^ *+' conftest.er1 >conftest.err
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_header_compiler=yes
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_header_compiler=no
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15947 echo "${ECHO_T}$ac_header_compiler" >&6; }
15949 # Is the header present?
15950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 #include <$ac_header>
15960 if { (ac_try="$ac_cpp conftest.$ac_ext"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null; then
15973 if test -s conftest.err; then
15974 ac_cpp_err=$ac_c_preproc_warn_flag
15975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15982 if test -z "$ac_cpp_err"; then
15983 ac_header_preproc=yes
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_header_preproc=no
15991 rm -f conftest.err conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15993 echo "${ECHO_T}$ac_header_preproc" >&6; }
15995 # So? What about this header?
15996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16002 ac_header_preproc=yes
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16018 ## ----------------------------------- ##
16019 ## Report this to llvmbugs@cs.uiuc.edu ##
16020 ## ----------------------------------- ##
16022 ) | sed "s/^/$as_me: WARNING: /" >&2
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 eval "$as_ac_Header=\$ac_header_preproc"
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16038 cat >>confdefs.h <<_ACEOF
16039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16046 if test "$ENABLE_THREADS" -eq 1 ; then
16048 for ac_header in pthread.h
16050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 ac_res=`eval echo '${'$as_ac_Header'}'`
16058 { echo "$as_me:$LINENO: result: $ac_res" >&5
16059 echo "${ECHO_T}$ac_res" >&6; }
16061 # Is the header compilable?
16062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 #include <$ac_header>
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_compile") 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16088 { (case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_try") 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_try") 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_header_compiler=yes
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ac_header_compiler=no
16115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16117 echo "${ECHO_T}$ac_header_compiler" >&6; }
16119 # Is the header present?
16120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16122 cat >conftest.$ac_ext <<_ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 #include <$ac_header>
16130 if { (ac_try="$ac_cpp conftest.$ac_ext"
16131 case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138 grep -v '^ *+' conftest.er1 >conftest.err
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } >/dev/null; then
16143 if test -s conftest.err; then
16144 ac_cpp_err=$ac_c_preproc_warn_flag
16145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16152 if test -z "$ac_cpp_err"; then
16153 ac_header_preproc=yes
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 ac_header_preproc=no
16161 rm -f conftest.err conftest.$ac_ext
16162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16163 echo "${ECHO_T}$ac_header_preproc" >&6; }
16165 # So? What about this header?
16166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16172 ac_header_preproc=yes
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188 ## ----------------------------------- ##
16189 ## Report this to llvmbugs@cs.uiuc.edu ##
16190 ## ----------------------------------- ##
16192 ) | sed "s/^/$as_me: WARNING: /" >&2
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 eval "$as_ac_Header=\$ac_header_preproc"
16202 ac_res=`eval echo '${'$as_ac_Header'}'`
16203 { echo "$as_me:$LINENO: result: $ac_res" >&5
16204 echo "${ECHO_T}$ac_res" >&6; }
16207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16208 cat >>confdefs.h <<_ACEOF
16209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16225 if test "$llvm_cv_enable_libffi" = "yes" ; then
16228 for ac_header in ffi.h ffi/ffi.h
16230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16241 # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 $ac_includes_default
16251 #include <$ac_header>
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16268 { (case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_try") 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (case "(($ac_try" in
16279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280 *) ac_try_echo=$ac_try;;
16282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283 (eval "$ac_try") 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_header_compiler=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_header_compiler=no
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297 echo "${ECHO_T}$ac_header_compiler" >&6; }
16299 # Is the header present?
16300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 #include <$ac_header>
16310 if { (ac_try="$ac_cpp conftest.$ac_ext"
16311 case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } >/dev/null; then
16323 if test -s conftest.err; then
16324 ac_cpp_err=$ac_c_preproc_warn_flag
16325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16332 if test -z "$ac_cpp_err"; then
16333 ac_header_preproc=yes
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ac_header_preproc=no
16341 rm -f conftest.err conftest.$ac_ext
16342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16343 echo "${ECHO_T}$ac_header_preproc" >&6; }
16345 # So? What about this header?
16346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16352 ac_header_preproc=yes
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16368 ## ----------------------------------- ##
16369 ## Report this to llvmbugs@cs.uiuc.edu ##
16370 ## ----------------------------------- ##
16372 ) | sed "s/^/$as_me: WARNING: /" >&2
16375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 eval "$as_ac_Header=\$ac_header_preproc"
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16401 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16402 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16403 if test "${ac_cv_huge_val_sanity+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 ac_cpp='$CXXCPP $CPPFLAGS'
16409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16414 if test "$cross_compiling" = yes; then
16415 ac_cv_huge_val_sanity=yes
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16427 double x = HUGE_VAL; return x != x;
16432 rm -f conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_cv_huge_val_sanity=yes
16454 echo "$as_me: program exited with status $ac_status" >&5
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ( exit $ac_status )
16459 ac_cv_huge_val_sanity=no
16461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16466 ac_cpp='$CPP $CPPFLAGS'
16467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16473 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16474 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16475 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16478 { echo "$as_me:$LINENO: checking for pid_t" >&5
16479 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16480 if test "${ac_cv_type_pid_t+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 $ac_includes_default
16490 typedef pid_t ac__type_new_;
16494 if ((ac__type_new_ *) 0)
16496 if (sizeof (ac__type_new_))
16502 rm -f conftest.$ac_objext
16503 if { (ac_try="$ac_compile"
16504 case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_compile") 2>conftest.er1
16511 grep -v '^ *+' conftest.er1 >conftest.err
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_type_pid_t=yes
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_type_pid_t=no
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16547 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16548 if test $ac_cv_type_pid_t = yes; then
16552 cat >>confdefs.h <<_ACEOF
16558 { echo "$as_me:$LINENO: checking for size_t" >&5
16559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16560 if test "${ac_cv_type_size_t+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 $ac_includes_default
16570 typedef size_t ac__type_new_;
16574 if ((ac__type_new_ *) 0)
16576 if (sizeof (ac__type_new_))
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597 { (case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_try") 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_type_size_t=yes
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_type_size_t=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16627 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16628 if test $ac_cv_type_size_t = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define size_t unsigned int
16639 cat >>confdefs.h <<_ACEOF
16640 #define RETSIGTYPE void
16643 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16644 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16645 if test "${ac_cv_struct_tm+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <sys/types.h>
16660 struct tm *tp; tp->tm_sec;
16665 rm -f conftest.$ac_objext
16666 if { (ac_try="$ac_compile"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_compile") 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_try") 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_cv_struct_tm=time.h
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_cv_struct_tm=sys/time.h
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16710 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16711 if test $ac_cv_struct_tm = sys/time.h; then
16713 cat >>confdefs.h <<\_ACEOF
16714 #define TM_IN_SYS_TIME 1
16719 { echo "$as_me:$LINENO: checking for int64_t" >&5
16720 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_int64_t+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 typedef int64_t ac__type_new_;
16735 if ((ac__type_new_ *) 0)
16737 if (sizeof (ac__type_new_))
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_int64_t=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_type_int64_t=no
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16789 if test $ac_cv_type_int64_t = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_INT64_T 1
16797 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16798 echo "$as_me: error: Type int64_t required but not found" >&2;}
16799 { (exit 1); exit 1; }; }
16802 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16803 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16804 if test "${ac_cv_type_uint64_t+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 $ac_includes_default
16814 typedef uint64_t ac__type_new_;
16818 if ((ac__type_new_ *) 0)
16820 if (sizeof (ac__type_new_))
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_type_uint64_t=yes
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_type_uint64_t=no
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16871 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16872 if test $ac_cv_type_uint64_t = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_UINT64_T 1
16880 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16881 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_u_int64_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16892 typedef u_int64_t ac__type_new_;
16896 if ((ac__type_new_ *) 0)
16898 if (sizeof (ac__type_new_))
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_compile") 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_cv_type_u_int64_t=yes
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 ac_cv_type_u_int64_t=no
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16950 if test $ac_cv_type_u_int64_t = yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_U_INT64_T 1
16958 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16959 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16960 { (exit 1); exit 1; }; }
16974 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990 #define $ac_func innocuous_$ac_func
16992 /* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16998 # include <limits.h>
17000 # include <assert.h>
17005 /* Override any GCC internal prototype to avoid an error.
17006 Use char because int might match the return type of a GCC
17007 builtin and then its argument prototype would still apply. */
17012 /* The GNU C library defines this for functions which it implements
17013 to always fail with ENOSYS. Some functions are actually named
17014 something starting with __ and the normal name is an alias. */
17015 #if defined __stub_$ac_func || defined __stub___$ac_func
17022 return $ac_func ();
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17036 grep -v '^ *+' conftest.er1 >conftest.err
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } &&
17041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest$ac_exeext'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 eval "$as_ac_var=yes"
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 eval "$as_ac_var=no"
17069 rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17072 ac_res=`eval echo '${'$as_ac_var'}'`
17073 { echo "$as_me:$LINENO: result: $ac_res" >&5
17074 echo "${ECHO_T}$ac_res" >&6; }
17075 if test `eval echo '${'$as_ac_var'}'` = yes; then
17076 cat >>confdefs.h <<_ACEOF
17077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17087 for ac_func in powf fmodf strtof round
17089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17103 #define $ac_func innocuous_$ac_func
17105 /* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17111 # include <limits.h>
17113 # include <assert.h>
17118 /* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17125 /* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128 #if defined __stub_$ac_func || defined __stub___$ac_func
17135 return $ac_func ();
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17149 grep -v '^ *+' conftest.er1 >conftest.err
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 eval "$as_ac_var=yes"
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 eval "$as_ac_var=no"
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17185 ac_res=`eval echo '${'$as_ac_var'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_var'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217 #define $ac_func innocuous_$ac_func
17219 /* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char $ac_func (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
17225 # include <limits.h>
17227 # include <assert.h>
17232 /* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17239 /* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
17242 #if defined __stub_$ac_func || defined __stub___$ac_func
17249 return $ac_func ();
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 eval "$as_ac_var=yes"
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 eval "$as_ac_var=no"
17296 rm -f core conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17299 ac_res=`eval echo '${'$as_ac_var'}'`
17300 { echo "$as_me:$LINENO: result: $ac_res" >&5
17301 echo "${ECHO_T}$ac_res" >&6; }
17302 if test `eval echo '${'$as_ac_var'}'` = yes; then
17303 cat >>confdefs.h <<_ACEOF
17304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313 for ac_func in isatty mkdtemp mkstemp
17315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329 #define $ac_func innocuous_$ac_func
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17337 # include <limits.h>
17339 # include <assert.h>
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined __stub_$ac_func || defined __stub___$ac_func
17361 return $ac_func ();
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 eval "$as_ac_var=yes"
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 eval "$as_ac_var=no"
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17411 ac_res=`eval echo '${'$as_ac_var'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17414 if test `eval echo '${'$as_ac_var'}'` = yes; then
17415 cat >>confdefs.h <<_ACEOF
17416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17427 for ac_func in mktemp realpath sbrk setrlimit strdup
17429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443 #define $ac_func innocuous_$ac_func
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17451 # include <limits.h>
17453 # include <assert.h>
17458 /* Override any GCC internal prototype to avoid an error.
17459 Use char because int might match the return type of a GCC
17460 builtin and then its argument prototype would still apply. */
17465 /* The GNU C library defines this for functions which it implements
17466 to always fail with ENOSYS. Some functions are actually named
17467 something starting with __ and the normal name is an alias. */
17468 #if defined __stub_$ac_func || defined __stub___$ac_func
17475 return $ac_func ();
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 eval "$as_ac_var=yes"
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17540 for ac_func in strerror strerror_r strerror_s setenv
17542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17556 #define $ac_func innocuous_$ac_func
17558 /* System header to define __stub macros and hopefully few prototypes,
17559 which can conflict with char $ac_func (); below.
17560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17561 <limits.h> exists even on freestanding compilers. */
17564 # include <limits.h>
17566 # include <assert.h>
17571 /* Override any GCC internal prototype to avoid an error.
17572 Use char because int might match the return type of a GCC
17573 builtin and then its argument prototype would still apply. */
17578 /* The GNU C library defines this for functions which it implements
17579 to always fail with ENOSYS. Some functions are actually named
17580 something starting with __ and the normal name is an alias. */
17581 #if defined __stub_$ac_func || defined __stub___$ac_func
17588 return $ac_func ();
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_link") 2>conftest.er1
17602 grep -v '^ *+' conftest.er1 >conftest.err
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest$ac_exeext'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 eval "$as_ac_var=yes"
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17635 rm -f core conftest.err conftest.$ac_objext \
17636 conftest$ac_exeext conftest.$ac_ext
17638 ac_res=`eval echo '${'$as_ac_var'}'`
17639 { echo "$as_me:$LINENO: result: $ac_res" >&5
17640 echo "${ECHO_T}$ac_res" >&6; }
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 cat >conftest.$ac_ext <<_ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h. */
17667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17669 #define $ac_func innocuous_$ac_func
17671 /* System header to define __stub macros and hopefully few prototypes,
17672 which can conflict with char $ac_func (); below.
17673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674 <limits.h> exists even on freestanding compilers. */
17677 # include <limits.h>
17679 # include <assert.h>
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined __stub_$ac_func || defined __stub___$ac_func
17701 return $ac_func ();
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (ac_try="$ac_link"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_link") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest$ac_exeext'
17731 { (case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_try") 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 eval "$as_ac_var=yes"
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 eval "$as_ac_var=no"
17748 rm -f core conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17751 ac_res=`eval echo '${'$as_ac_var'}'`
17752 { echo "$as_me:$LINENO: result: $ac_res" >&5
17753 echo "${ECHO_T}$ac_res" >&6; }
17754 if test `eval echo '${'$as_ac_var'}'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17766 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17782 #define $ac_func innocuous_$ac_func
17784 /* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func (); below.
17786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787 <limits.h> exists even on freestanding compilers. */
17790 # include <limits.h>
17792 # include <assert.h>
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17804 /* The GNU C library defines this for functions which it implements
17805 to always fail with ENOSYS. Some functions are actually named
17806 something starting with __ and the normal name is an alias. */
17807 #if defined __stub_$ac_func || defined __stub___$ac_func
17814 return $ac_func ();
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_link") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest$ac_exeext'
17844 { (case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_try") 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 eval "$as_ac_var=yes"
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 eval "$as_ac_var=no"
17861 rm -f core conftest.err conftest.$ac_objext \
17862 conftest$ac_exeext conftest.$ac_ext
17864 ac_res=`eval echo '${'$as_ac_var'}'`
17865 { echo "$as_me:$LINENO: result: $ac_res" >&5
17866 echo "${ECHO_T}$ac_res" >&6; }
17867 if test `eval echo '${'$as_ac_var'}'` = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17875 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17876 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17877 if test "${llvm_cv_c_printf_a+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17886 if test "$cross_compiling" = yes; then
17887 llvmac_cv_c_printf_a=no
17889 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17898 #include <stdlib.h>
17904 volatile double A, B;
17908 sprintf(Buffer, "%a", A);
17912 if (A != 0x1.999999999999ap-4)
17919 rm -f conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17930 { (case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_try") 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 llvm_cv_c_printf_a=yes
17941 echo "$as_me: program exited with status $ac_status" >&5
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ( exit $ac_status )
17946 llvmac_cv_c_printf_a=no
17948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17960 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17961 if test "$llvm_cv_c_printf_a" = "yes"; then
17963 cat >>confdefs.h <<\_ACEOF
17964 #define HAVE_PRINTF_A 1
17970 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17971 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17972 if test "${ac_cv_func_rand48+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 ac_cpp='$CXXCPP $CPPFLAGS'
17977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 #include <stdlib.h>
17991 srand48(0);lrand48();drand48();
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_func_rand48=yes
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_func_rand48=no
18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040 ac_cpp='$CPP $CPPFLAGS'
18041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18047 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18049 if test "$ac_cv_func_rand48" = "yes" ; then
18051 cat >>confdefs.h <<\_ACEOF
18052 #define HAVE_RAND48 1
18059 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18060 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18061 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 ac_cpp='$CXXCPP $CPPFLAGS'
18066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_compile") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18100 { (case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_try") 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 ac_cv_func_isnan_in_math_h=yes
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ac_cv_func_isnan_in_math_h=no
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 ac_cpp='$CPP $CPPFLAGS'
18130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18136 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18139 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_ISNAN_IN_MATH_H 1
18147 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18148 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18149 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_compile") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_cv_func_isnan_in_cmath=yes
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_cv_func_isnan_in_cmath=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18224 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18226 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_ISNAN_IN_CMATH 1
18234 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18235 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18236 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 ac_cpp='$CXXCPP $CPPFLAGS'
18241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18255 float f; std::isnan(f);
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_func_std_isnan_in_cmath=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_func_std_isnan_in_cmath=no
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 ac_cpp='$CPP $CPPFLAGS'
18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18310 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18311 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18313 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE_STD_ISNAN_IN_CMATH 1
18322 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18323 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18324 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_cpp='$CXXCPP $CPPFLAGS'
18329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_func_isinf_in_math_h=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_func_isinf_in_math_h=no
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392 ac_cpp='$CPP $CPPFLAGS'
18393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18399 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18401 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_ISINF_IN_MATH_H 1
18409 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18410 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18411 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 ac_cpp='$CXXCPP $CPPFLAGS'
18416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_compile") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_func_isinf_in_cmath=yes
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_cv_func_isinf_in_cmath=no
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 ac_cpp='$CPP $CPPFLAGS'
18480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18486 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18488 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_ISINF_IN_CMATH 1
18496 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18497 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18498 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_cpp='$CXXCPP $CPPFLAGS'
18503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18517 float f; std::isinf(f)}
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_func_std_isinf_in_cmath=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_func_std_isinf_in_cmath=no
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 ac_cpp='$CPP $CPPFLAGS'
18567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18573 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18575 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_STD_ISINF_IN_CMATH 1
18583 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18584 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18585 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_cpp='$CXXCPP $CPPFLAGS'
18590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <ieeefp.h>
18604 float f; finite(f);
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_func_finite_in_ieeefp_h=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_cv_func_finite_in_ieeefp_h=no
18651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 ac_cpp='$CPP $CPPFLAGS'
18654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18659 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18660 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18662 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18664 cat >>confdefs.h <<\_ACEOF
18665 #define HAVE_FINITE_IN_IEEEFP_H 1
18672 if test "$llvm_cv_platform_type" = "Unix" ; then
18675 for ac_header in stdlib.h unistd.h
18677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 ac_res=`eval echo '${'$as_ac_Header'}'`
18685 { echo "$as_me:$LINENO: result: $ac_res" >&5
18686 echo "${ECHO_T}$ac_res" >&6; }
18688 # Is the header compilable?
18689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 $ac_includes_default
18698 #include <$ac_header>
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_header_compiler=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_header_compiler=no
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18744 echo "${ECHO_T}$ac_header_compiler" >&6; }
18746 # Is the header present?
18747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include <$ac_header>
18757 if { (ac_try="$ac_cpp conftest.$ac_ext"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } >/dev/null; then
18770 if test -s conftest.err; then
18771 ac_cpp_err=$ac_c_preproc_warn_flag
18772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18779 if test -z "$ac_cpp_err"; then
18780 ac_header_preproc=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_header_preproc=no
18788 rm -f conftest.err conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18790 echo "${ECHO_T}$ac_header_preproc" >&6; }
18792 # So? What about this header?
18793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18799 ac_header_preproc=yes
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18815 ## ----------------------------------- ##
18816 ## Report this to llvmbugs@cs.uiuc.edu ##
18817 ## ----------------------------------- ##
18819 ) | sed "s/^/$as_me: WARNING: /" >&2
18822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 eval "$as_ac_Header=\$ac_header_preproc"
18829 ac_res=`eval echo '${'$as_ac_Header'}'`
18830 { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18835 cat >>confdefs.h <<_ACEOF
18836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18844 for ac_func in getpagesize
18846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18860 #define $ac_func innocuous_$ac_func
18862 /* System header to define __stub macros and hopefully few prototypes,
18863 which can conflict with char $ac_func (); below.
18864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18865 <limits.h> exists even on freestanding compilers. */
18868 # include <limits.h>
18870 # include <assert.h>
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18882 /* The GNU C library defines this for functions which it implements
18883 to always fail with ENOSYS. Some functions are actually named
18884 something starting with __ and the normal name is an alias. */
18885 #if defined __stub_$ac_func || defined __stub___$ac_func
18892 return $ac_func ();
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18906 grep -v '^ *+' conftest.er1 >conftest.err
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest$ac_exeext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 eval "$as_ac_var=yes"
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no"
18939 rm -f core conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943 { echo "$as_me:$LINENO: result: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18953 { echo "$as_me:$LINENO: checking for working mmap" >&5
18954 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18955 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 if test "$cross_compiling" = yes; then
18959 ac_cv_func_mmap_fixed_mapped=no
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 $ac_includes_default
18968 /* malloc might have been renamed as rpl_malloc. */
18971 /* Thanks to Mike Haertel and Jim Avera for this test.
18972 Here is a matrix of mmap possibilities:
18973 mmap private not fixed
18974 mmap private fixed at somewhere currently unmapped
18975 mmap private fixed at somewhere already mapped
18976 mmap shared not fixed
18977 mmap shared fixed at somewhere currently unmapped
18978 mmap shared fixed at somewhere already mapped
18979 For private mappings, we should verify that changes cannot be read()
18980 back from the file, nor mmap's back from the file at a different
18981 address. (There have been systems where private was not correctly
18982 implemented like the infamous i386 svr4.0, and systems where the
18983 VM page cache was not coherent with the file system buffer cache
18984 like early versions of FreeBSD and possibly contemporary NetBSD.)
18985 For shared mappings, we should conversely verify that changes get
18986 propagated back to all the places they're supposed to be.
18988 Grep wants private fixed already mapped.
18989 The main things grep needs to know about mmap are:
18990 * does it exist and is it safe to write into the mmap'd area
18991 * how to use it (BSD variants) */
18994 #include <sys/mman.h>
18996 #if !STDC_HEADERS && !HAVE_STDLIB_H
19000 /* This mess was copied from the GNU getpagesize.h. */
19001 #if !HAVE_GETPAGESIZE
19002 /* Assume that all systems that can run configure have sys/param.h. */
19003 # if !HAVE_SYS_PARAM_H
19004 # define HAVE_SYS_PARAM_H 1
19007 # ifdef _SC_PAGESIZE
19008 # define getpagesize() sysconf(_SC_PAGESIZE)
19009 # else /* no _SC_PAGESIZE */
19010 # if HAVE_SYS_PARAM_H
19011 # include <sys/param.h>
19012 # ifdef EXEC_PAGESIZE
19013 # define getpagesize() EXEC_PAGESIZE
19014 # else /* no EXEC_PAGESIZE */
19016 # define getpagesize() NBPG * CLSIZE
19019 # endif /* no CLSIZE */
19020 # else /* no NBPG */
19022 # define getpagesize() NBPC
19023 # else /* no NBPC */
19025 # define getpagesize() PAGESIZE
19026 # endif /* PAGESIZE */
19027 # endif /* no NBPC */
19028 # endif /* no NBPG */
19029 # endif /* no EXEC_PAGESIZE */
19030 # else /* no HAVE_SYS_PARAM_H */
19031 # define getpagesize() 8192 /* punt totally */
19032 # endif /* no HAVE_SYS_PARAM_H */
19033 # endif /* no _SC_PAGESIZE */
19035 #endif /* no HAVE_GETPAGESIZE */
19040 char *data, *data2, *data3;
19044 pagesize = getpagesize ();
19046 /* First, make a file with some known garbage in it. */
19047 data = (char *) malloc (pagesize);
19050 for (i = 0; i < pagesize; ++i)
19051 *(data + i) = rand ();
19053 fd = creat ("conftest.mmap", 0600);
19056 if (write (fd, data, pagesize) != pagesize)
19060 /* Next, try to mmap the file at a fixed address which already has
19061 something else allocated at it. If we can, also make sure that
19062 we see the same garbage. */
19063 fd = open ("conftest.mmap", O_RDWR);
19066 data2 = (char *) malloc (2 * pagesize);
19069 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19073 for (i = 0; i < pagesize; ++i)
19074 if (*(data + i) != *(data2 + i))
19077 /* Finally, make sure that changes to the mapped area do not
19078 percolate back to the file as seen by read(). (This is a bug on
19079 some variants of i386 svr4.0.) */
19080 for (i = 0; i < pagesize; ++i)
19081 *(data2 + i) = *(data2 + i) + 1;
19082 data3 = (char *) malloc (pagesize);
19085 if (read (fd, data3, pagesize) != pagesize)
19087 for (i = 0; i < pagesize; ++i)
19088 if (*(data + i) != *(data3 + i))
19094 rm -f conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19105 { (case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_try") 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_func_mmap_fixed_mapped=yes
19116 echo "$as_me: program exited with status $ac_status" >&5
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 ( exit $ac_status )
19121 ac_cv_func_mmap_fixed_mapped=no
19123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19128 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19129 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19130 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_MMAP 1
19137 rm -f conftest.mmap
19139 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19140 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19141 if test "${ac_cv_func_mmap_file+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 ac_cpp='$CPP $CPPFLAGS'
19146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19150 if test "$cross_compiling" = yes; then
19151 ac_cv_func_mmap_file=no
19153 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 #include <sys/types.h>
19162 #include <sys/mman.h>
19170 fd = creat ("foo",0777);
19171 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19173 return (fd != (int) MAP_FAILED);
19178 rm -f conftest$ac_exeext
19179 if { (ac_try="$ac_link"
19180 case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_link") 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_func_mmap_file=yes
19200 echo "$as_me: program exited with status $ac_status" >&5
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ( exit $ac_status )
19205 ac_cv_func_mmap_file=no
19207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19219 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19220 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19221 if test "$ac_cv_func_mmap_file" = yes; then
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_MMAP_FILE
19231 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19232 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19233 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 if test "$llvm_cv_os_type" = "Interix" ; then
19237 ac_cv_need_dev_zero_for_mmap=yes
19239 ac_cv_need_dev_zero_for_mmap=no
19243 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19244 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19245 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19247 cat >>confdefs.h <<\_ACEOF
19248 #define NEED_DEV_ZERO_FOR_MMAP 1
19253 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19255 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19256 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19258 if test "$ac_cv_func_mmap_file" = "no"
19260 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19261 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19265 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19266 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 volatile unsigned long val = 1;
19275 __sync_synchronize();
19276 __sync_val_compare_and_swap(&val, 1, 0);
19277 __sync_add_and_fetch(&val, 1);
19278 __sync_sub_and_fetch(&val, 1);
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_link") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 { echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6; }
19320 cat >>confdefs.h <<\_ACEOF
19321 #define LLVM_MULTITHREADED 1
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 { echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6; }
19331 cat >>confdefs.h <<\_ACEOF
19332 #define LLVM_MULTITHREADED 0
19335 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19336 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19339 rm -f core conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19344 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19345 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19346 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19347 if test "${llvm_cv_linux_mixed+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19363 error: Not x86-64 even if uname says so!
19374 rm -f conftest.$ac_objext
19375 if { (ac_try="$ac_compile"
19376 case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_compile") 2>conftest.er1
19383 grep -v '^ *+' conftest.er1 >conftest.err
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_try") 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 llvm_cv_linux_mixed=no
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 llvm_cv_linux_mixed=yes
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 ac_cpp='$CPP $CPPFLAGS'
19419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19425 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19426 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19428 if test "$llvm_cv_linux_mixed" = "yes"; then
19429 llvm_cv_target_arch="x86"
19435 for ac_func in __dso_handle
19437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19451 #define $ac_func innocuous_$ac_func
19453 /* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char $ac_func (); below.
19455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19456 <limits.h> exists even on freestanding compilers. */
19459 # include <limits.h>
19461 # include <assert.h>
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19473 /* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476 #if defined __stub_$ac_func || defined __stub___$ac_func
19483 return $ac_func ();
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19497 grep -v '^ *+' conftest.er1 >conftest.err
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest$ac_exeext'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 eval "$as_ac_var=yes"
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 eval "$as_ac_var=no"
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19533 ac_res=`eval echo '${'$as_ac_var'}'`
19534 { echo "$as_me:$LINENO: result: $ac_res" >&5
19535 echo "${ECHO_T}$ac_res" >&6; }
19536 if test `eval echo '${'$as_ac_var'}'` = yes; then
19537 cat >>confdefs.h <<_ACEOF
19538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19546 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19547 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 llvm_cv_llvmgcc_sanity="no"
19551 if test -x "$LLVMGCC" ; then
19552 cp /dev/null conftest.c
19553 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19554 grep 'target datalayout =' > /dev/null 2>&1
19555 if test $? -eq 0 ; then
19556 llvm_cv_llvmgcc_sanity="yes"
19561 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19562 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19564 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19565 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19566 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19567 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19568 LLVMCC1=$llvmcc1path
19570 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19571 LLVMCC1PLUS=$llvmcc1pluspath
19573 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19574 LLVMGCCDIR=$llvmgccdir
19576 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19577 LLVMGCC_LANGS=$llvmgcclangs
19579 { echo "$as_me:$LINENO: result: ok" >&5
19580 echo "${ECHO_T}ok" >&6; }
19583 SHLIBEXT=$libltdl_cv_shlibext
19586 # Translate the various configuration directories and other basic
19587 # information into substitutions that will end up in Makefile.config.in
19588 # that these configured values can be used by the makefiles
19589 if test "${prefix}" = "NONE" ; then
19590 prefix="/usr/local"
19592 eval LLVM_PREFIX="${prefix}";
19593 eval LLVM_BINDIR="${prefix}/bin";
19594 eval LLVM_LIBDIR="${prefix}/lib";
19595 eval LLVM_DATADIR="${prefix}/share/llvm";
19596 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19597 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19598 eval LLVM_INCLUDEDIR="${prefix}/include";
19599 eval LLVM_INFODIR="${prefix}/info";
19600 eval LLVM_MANDIR="${prefix}/man";
19601 LLVM_CONFIGTIME=`date`
19613 # Place the various directores into the config.h file as #defines so that we
19614 # can know about the installation paths within LLVM.
19616 cat >>confdefs.h <<_ACEOF
19617 #define LLVM_PREFIX "$LLVM_PREFIX"
19621 cat >>confdefs.h <<_ACEOF
19622 #define LLVM_BINDIR "$LLVM_BINDIR"
19626 cat >>confdefs.h <<_ACEOF
19627 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19631 cat >>confdefs.h <<_ACEOF
19632 #define LLVM_DATADIR "$LLVM_DATADIR"
19636 cat >>confdefs.h <<_ACEOF
19637 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19641 cat >>confdefs.h <<_ACEOF
19642 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19646 cat >>confdefs.h <<_ACEOF
19647 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19651 cat >>confdefs.h <<_ACEOF
19652 #define LLVM_INFODIR "$LLVM_INFODIR"
19656 cat >>confdefs.h <<_ACEOF
19657 #define LLVM_MANDIR "$LLVM_MANDIR"
19661 cat >>confdefs.h <<_ACEOF
19662 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19666 cat >>confdefs.h <<_ACEOF
19667 #define LLVM_HOSTTRIPLE "$host"
19671 # Determine which bindings to build.
19672 if test "$BINDINGS_TO_BUILD" = auto ; then
19673 BINDINGS_TO_BUILD=""
19674 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19675 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19678 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19681 # This isn't really configurey, but it avoids having to repeat the list in
19686 # Do any work necessary to ensure that bindings have what they need.
19687 binding_prereqs_failed=0
19688 for a_binding in $BINDINGS_TO_BUILD ; do
19689 case "$a_binding" in
19691 if test "x$OCAMLC" = x ; then
19692 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19693 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19694 binding_prereqs_failed=1
19696 if test "x$OCAMLDEP" = x ; then
19697 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19698 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19699 binding_prereqs_failed=1
19701 if test "x$OCAMLOPT" = x ; then
19702 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19703 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19705 if test "x$with_ocaml_libdir" != xauto ; then
19706 OCAML_LIBDIR=$with_ocaml_libdir
19709 ocaml_stdlib="`"$OCAMLC" -where`"
19710 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19712 # ocaml stdlib is beneath our prefix; use stdlib
19713 OCAML_LIBDIR=$ocaml_stdlib
19716 # ocaml stdlib is outside our prefix; use libdir/ocaml
19717 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19724 if test "$binding_prereqs_failed" = 1 ; then
19725 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19726 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19727 { (exit 1); exit 1; }; }
19730 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19731 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19732 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741 oldcxxflags="$CXXFLAGS"
19742 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 llvm_cv_cxx_visibility_inlines_hidden=yes
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 llvm_cv_cxx_visibility_inlines_hidden=no
19800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 CXXFLAGS="$oldcxxflags"
19803 ac_cpp='$CPP $CPPFLAGS'
19804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19811 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19812 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19813 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19816 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19821 if test "$llvm_cv_link_use_r" = "yes" ; then
19828 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19829 RDYNAMIC="-Wl,-export-dynamic"
19836 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19838 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19840 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19842 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19844 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19846 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19849 ac_config_files="$ac_config_files Makefile.config"
19852 ac_config_files="$ac_config_files llvm.spec"
19855 ac_config_files="$ac_config_files docs/doxygen.cfg"
19858 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19861 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19864 ac_config_commands="$ac_config_commands setup"
19866 ac_config_commands="$ac_config_commands Makefile"
19869 ac_config_commands="$ac_config_commands Makefile.common"
19872 ac_config_commands="$ac_config_commands examples/Makefile"
19875 ac_config_commands="$ac_config_commands lib/Makefile"
19878 ac_config_commands="$ac_config_commands runtime/Makefile"
19881 ac_config_commands="$ac_config_commands test/Makefile"
19884 ac_config_commands="$ac_config_commands test/Makefile.tests"
19887 ac_config_commands="$ac_config_commands unittests/Makefile"
19890 ac_config_commands="$ac_config_commands tools/Makefile"
19893 ac_config_commands="$ac_config_commands utils/Makefile"
19896 ac_config_commands="$ac_config_commands projects/Makefile"
19899 ac_config_commands="$ac_config_commands bindings/Makefile"
19902 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19906 cat >confcache <<\_ACEOF
19907 # This file is a shell script that caches the results of configure
19908 # tests run on this system so they can be shared between configure
19909 # scripts and configure runs, see configure's option --config-cache.
19910 # It is not useful on other systems. If it contains results you don't
19911 # want to keep, you may remove or edit it.
19913 # config.status only pays attention to the cache file if you give it
19914 # the --recheck option to rerun configure.
19916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19918 # following values.
19922 # The following way of writing the cache mishandles newlines in values,
19923 # but we know of no workaround that is simple, portable, and efficient.
19924 # So, we kill variables containing newlines.
19925 # Ultrix sh set writes to stderr and can't be redirected directly,
19926 # and sets the high bit in the cache file unless we assign to the vars.
19928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19929 eval ac_val=\$$ac_var
19933 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19934 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19937 _ | IFS | as_nl) ;; #(
19938 *) $as_unset $ac_var ;;
19944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19945 *${as_nl}ac_space=\ *)
19946 # `set' does not quote correctly, so add quotes (double-quote
19947 # substitution turns \\\\ into \\, and sed turns \\ into \).
19950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19953 # `set' quotes correctly as required by POSIX, so do not add quotes.
19954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19968 if test -w "$cache_file"; then
19969 test "x$cache_file" != "x/dev/null" &&
19970 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19971 echo "$as_me: updating cache $cache_file" >&6;}
19972 cat confcache >$cache_file
19974 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19975 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19981 # Let make expand exec_prefix.
19982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19984 DEFS=-DHAVE_CONFIG_H
19988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19989 # 1. Remove the extension, and $U if already installed.
19990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19991 ac_i=`echo "$ac_i" | sed "$ac_script"`
19992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19993 # will be set to the directory where LIBOBJS objects are built.
19994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19997 LIBOBJS=$ac_libobjs
19999 LTLIBOBJS=$ac_ltlibobjs
20002 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20003 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20004 Usually this means the macro was only invoked conditionally." >&5
20005 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20006 Usually this means the macro was only invoked conditionally." >&2;}
20007 { (exit 1); exit 1; }; }
20009 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20010 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20011 Usually this means the macro was only invoked conditionally." >&5
20012 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&2;}
20014 { (exit 1); exit 1; }; }
20017 : ${CONFIG_STATUS=./config.status}
20018 ac_clean_files_save=$ac_clean_files
20019 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20020 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20021 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20022 cat >$CONFIG_STATUS <<_ACEOF
20024 # Generated by $as_me.
20025 # Run this file to recreate the current configuration.
20026 # Compiler output produced by configure, useful for debugging
20027 # configure, is in config.log if it exists.
20030 ac_cs_recheck=false
20032 SHELL=\${CONFIG_SHELL-$SHELL}
20035 cat >>$CONFIG_STATUS <<\_ACEOF
20036 ## --------------------- ##
20037 ## M4sh Initialization. ##
20038 ## --------------------- ##
20040 # Be Bourne compatible
20041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20044 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20045 # is contrary to our usage. Disable this feature.
20046 alias -g '${1+"$@"}'='"$@"'
20047 setopt NO_GLOB_SUBST
20049 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20051 BIN_SH=xpg4; export BIN_SH # for Tru64
20052 DUALCASE=1; export DUALCASE # for MKS sh
20056 # Avoid depending upon Character Ranges.
20057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20060 as_cr_digits='0123456789'
20061 as_cr_alnum=$as_cr_Letters$as_cr_digits
20063 # The user is always right.
20064 if test "${PATH_SEPARATOR+set}" != set; then
20065 echo "#! /bin/sh" >conf$$.sh
20066 echo "exit 0" >>conf$$.sh
20068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20076 # Support unset when possible.
20077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20085 # We need space, tab and new line, in precisely that order. Quoting is
20086 # there to prevent editors from complaining about space-tab.
20087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20088 # splitting by setting IFS to empty value.)
20093 # Find who we are. Look in the path if we contain no directory separator.
20095 *[\\/]* ) as_myself=$0 ;;
20096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20100 test -z "$as_dir" && as_dir=.
20101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20107 # We did not find ourselves, most probably we were run as `sh COMMAND'
20108 # in which case we are not to be found in the path.
20109 if test "x$as_myself" = x; then
20112 if test ! -f "$as_myself"; then
20113 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20114 { (exit 1); exit 1; }
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 for as_var in ENV MAIL MAILPATH
20119 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20129 LC_TELEPHONE LC_TIME
20131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20132 eval $as_var=C; export $as_var
20134 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20138 # Required to use basename.
20139 if expr a : '\(a\)' >/dev/null 2>&1 &&
20140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20147 as_basename=basename
20153 # Name of the executable.
20154 as_me=`$as_basename -- "$0" ||
20155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20156 X"$0" : 'X\(//\)$' \| \
20157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20159 sed '/^.*\/\([^/][^/]*\)\/*$/{
20178 as_lineno_1=$LINENO
20179 as_lineno_2=$LINENO
20180 test "x$as_lineno_1" != "x$as_lineno_2" &&
20181 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20183 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20184 # uniformly replaced by the line number. The first 'sed' inserts a
20185 # line-number line after each line using $LINENO; the second 'sed'
20186 # does the real work. The second script uses 'N' to pair each
20187 # line-number line with the line containing $LINENO, and appends
20188 # trailing '-' during substitution so that $LINENO is not a special
20189 # case at line end.
20190 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20191 # scripts with optimization help from Paolo Bonzini. Blame Lee
20192 # E. McMahon (1931-1989) for sed's syntax. :-)
20204 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20207 ' >$as_me.lineno &&
20208 chmod +x "$as_me.lineno" ||
20209 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20210 { (exit 1); exit 1; }; }
20212 # Don't try to exec as it changes $[0], causing all sort of problems
20213 # (the dirname of $[0] is not the place where we might find the
20214 # original and so on. Autoconf is especially sensitive to this).
20215 . "./$as_me.lineno"
20216 # Exit status is that of the last command.
20221 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20227 ECHO_C= ECHO_N= ECHO_T=
20228 case `echo -n x` in
20230 case `echo 'x\c'` in
20231 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20238 if expr a : '\(a\)' >/dev/null 2>&1 &&
20239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20245 rm -f conf$$ conf$$.exe conf$$.file
20246 if test -d conf$$.dir; then
20247 rm -f conf$$.dir/conf$$.file
20253 if ln -s conf$$.file conf$$ 2>/dev/null; then
20255 # ... but there are two gotchas:
20256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20258 # In both cases, we have to default to `cp -p'.
20259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20261 elif ln conf$$.file conf$$ 2>/dev/null; then
20266 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20267 rmdir conf$$.dir 2>/dev/null
20269 if mkdir -p . 2>/dev/null; then
20272 test -d ./-p && rmdir ./-p
20276 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20277 # systems may use methods other than mode bits to determine executability.
20278 cat >conf$$.file <<_ASEOF
20282 chmod +x conf$$.file
20283 if test -x conf$$.file >/dev/null 2>&1; then
20284 as_executable_p="test -x"
20290 # Sed expression to map a string onto a valid CPP name.
20291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20293 # Sed expression to map a string onto a valid variable name.
20294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20299 # Save the log message, to keep $[0] and so on meaningful, and to
20300 # report actual input values of CONFIG_FILES etc. instead of their
20301 # values after options handling.
20303 This file was extended by llvm $as_me 2.7svn, which was
20304 generated by GNU Autoconf 2.60. Invocation command line was
20306 CONFIG_FILES = $CONFIG_FILES
20307 CONFIG_HEADERS = $CONFIG_HEADERS
20308 CONFIG_LINKS = $CONFIG_LINKS
20309 CONFIG_COMMANDS = $CONFIG_COMMANDS
20312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20317 cat >>$CONFIG_STATUS <<_ACEOF
20318 # Files that config.status was made for.
20319 config_files="$ac_config_files"
20320 config_headers="$ac_config_headers"
20321 config_commands="$ac_config_commands"
20325 cat >>$CONFIG_STATUS <<\_ACEOF
20327 \`$as_me' instantiates files from templates according to the
20328 current configuration.
20330 Usage: $0 [OPTIONS] [FILE]...
20332 -h, --help print this help, then exit
20333 -V, --version print version number, then exit
20334 -q, --quiet do not print progress messages
20335 -d, --debug don't remove temporary files
20336 --recheck update $as_me by reconfiguring in the same conditions
20337 --file=FILE[:TEMPLATE]
20338 instantiate the configuration file FILE
20339 --header=FILE[:TEMPLATE]
20340 instantiate the configuration header FILE
20342 Configuration files:
20345 Configuration headers:
20348 Configuration commands:
20351 Report bugs to <bug-autoconf@gnu.org>."
20354 cat >>$CONFIG_STATUS <<_ACEOF
20356 llvm config.status 2.7svn
20357 configured by $0, generated by GNU Autoconf 2.60,
20358 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20360 Copyright (C) 2006 Free Software Foundation, Inc.
20361 This config.status script is free software; the Free Software Foundation
20362 gives unlimited permission to copy, distribute and modify it."
20369 cat >>$CONFIG_STATUS <<\_ACEOF
20370 # If no file are specified by the user, then we need to provide default
20371 # value. By we need to know if files were specified by the user.
20377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20389 # Handling of the options.
20390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20393 echo "$ac_cs_version"; exit ;;
20394 --debug | --debu | --deb | --de | --d | -d )
20396 --file | --fil | --fi | --f )
20398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20399 ac_need_defaults=false;;
20400 --header | --heade | --head | --hea )
20402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20403 ac_need_defaults=false;;
20405 # Conflict between --help and --header
20406 { echo "$as_me: error: ambiguous option: $1
20407 Try \`$0 --help' for more information." >&2
20408 { (exit 1); exit 1; }; };;
20409 --help | --hel | -h )
20410 echo "$ac_cs_usage"; exit ;;
20411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20415 # This is an error.
20416 -*) { echo "$as_me: error: unrecognized option: $1
20417 Try \`$0 --help' for more information." >&2
20418 { (exit 1); exit 1; }; } ;;
20420 *) ac_config_targets="$ac_config_targets $1"
20421 ac_need_defaults=false ;;
20427 ac_configure_extra_args=
20429 if $ac_cs_silent; then
20431 ac_configure_extra_args="$ac_configure_extra_args --silent"
20435 cat >>$CONFIG_STATUS <<_ACEOF
20436 if \$ac_cs_recheck; then
20437 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20438 CONFIG_SHELL=$SHELL
20439 export CONFIG_SHELL
20440 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20449 ## Running $as_me. ##
20455 cat >>$CONFIG_STATUS <<_ACEOF
20459 llvm_src="${srcdir}"
20463 cat >>$CONFIG_STATUS <<\_ACEOF
20465 # Handling of arguments.
20466 for ac_config_target in $ac_config_targets
20468 case $ac_config_target in
20469 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20470 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20471 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20472 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20473 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20474 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20475 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20476 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20477 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20478 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20479 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20480 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20481 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20482 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20483 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20484 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20485 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20486 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20487 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20488 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20489 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20490 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20491 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20492 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20493 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20497 { (exit 1); exit 1; }; };;
20502 # If the user did not use the arguments to specify the items to instantiate,
20503 # then the envvar interface is used. Set only those that are not.
20504 # We use the long form for the default assignment because of an extremely
20505 # bizarre bug on SunOS 4.1.3.
20506 if $ac_need_defaults; then
20507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20512 # Have a temporary directory for convenience. Make it in the build tree
20513 # simply because there is no reason against having it here, and in addition,
20514 # creating and moving files from /tmp can sometimes cause problems.
20515 # Hook for its removal unless debugging.
20516 # Note that there is a small window in which the directory will not be cleaned:
20517 # after its creation but before its name has been assigned to `$tmp'.
20521 trap 'exit_status=$?
20522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20524 trap '{ (exit 1); exit 1; }' 1 2 13 15
20526 # Create a (secure) tmp directory for tmp files.
20529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20530 test -n "$tmp" && test -d "$tmp"
20533 tmp=./conf$$-$RANDOM
20534 (umask 077 && mkdir "$tmp")
20537 echo "$me: cannot create a temporary directory in ." >&2
20538 { (exit 1); exit 1; }
20542 # Set up the sed scripts for CONFIG_FILES section.
20545 # No need to generate the scripts if there are no CONFIG_FILES.
20546 # This happens for instance when ./config.status config.h
20547 if test -n "$CONFIG_FILES"; then
20554 for ac_last_try in false false false false false :; do
20555 cat >conf$$subs.sed <<_ACEOF
20556 SHELL!$SHELL$ac_delim
20557 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20558 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20559 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20560 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20561 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20562 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20563 exec_prefix!$exec_prefix$ac_delim
20564 prefix!$prefix$ac_delim
20565 program_transform_name!$program_transform_name$ac_delim
20566 bindir!$bindir$ac_delim
20567 sbindir!$sbindir$ac_delim
20568 libexecdir!$libexecdir$ac_delim
20569 datarootdir!$datarootdir$ac_delim
20570 datadir!$datadir$ac_delim
20571 sysconfdir!$sysconfdir$ac_delim
20572 sharedstatedir!$sharedstatedir$ac_delim
20573 localstatedir!$localstatedir$ac_delim
20574 includedir!$includedir$ac_delim
20575 oldincludedir!$oldincludedir$ac_delim
20576 docdir!$docdir$ac_delim
20577 infodir!$infodir$ac_delim
20578 htmldir!$htmldir$ac_delim
20579 dvidir!$dvidir$ac_delim
20580 pdfdir!$pdfdir$ac_delim
20581 psdir!$psdir$ac_delim
20582 libdir!$libdir$ac_delim
20583 localedir!$localedir$ac_delim
20584 mandir!$mandir$ac_delim
20585 DEFS!$DEFS$ac_delim
20586 ECHO_C!$ECHO_C$ac_delim
20587 ECHO_N!$ECHO_N$ac_delim
20588 ECHO_T!$ECHO_T$ac_delim
20589 LIBS!$LIBS$ac_delim
20590 build_alias!$build_alias$ac_delim
20591 host_alias!$host_alias$ac_delim
20592 target_alias!$target_alias$ac_delim
20593 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20594 subdirs!$subdirs$ac_delim
20595 build!$build$ac_delim
20596 build_cpu!$build_cpu$ac_delim
20597 build_vendor!$build_vendor$ac_delim
20598 build_os!$build_os$ac_delim
20599 host!$host$ac_delim
20600 host_cpu!$host_cpu$ac_delim
20601 host_vendor!$host_vendor$ac_delim
20602 host_os!$host_os$ac_delim
20603 target!$target$ac_delim
20604 target_cpu!$target_cpu$ac_delim
20605 target_vendor!$target_vendor$ac_delim
20606 target_os!$target_os$ac_delim
20608 HOST_OS!$HOST_OS$ac_delim
20609 TARGET_OS!$TARGET_OS$ac_delim
20610 LINKALL!$LINKALL$ac_delim
20611 NOLINKALL!$NOLINKALL$ac_delim
20612 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20613 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20614 ARCH!$ARCH$ac_delim
20615 ENDIAN!$ENDIAN$ac_delim
20617 CFLAGS!$CFLAGS$ac_delim
20618 LDFLAGS!$LDFLAGS$ac_delim
20619 CPPFLAGS!$CPPFLAGS$ac_delim
20620 ac_ct_CC!$ac_ct_CC$ac_delim
20621 EXEEXT!$EXEEXT$ac_delim
20622 OBJEXT!$OBJEXT$ac_delim
20624 GREP!$GREP$ac_delim
20625 EGREP!$EGREP$ac_delim
20626 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20627 BUILD_CC!$BUILD_CC$ac_delim
20628 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20629 BUILD_CXX!$BUILD_CXX$ac_delim
20630 CVSBUILD!$CVSBUILD$ac_delim
20631 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20632 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20633 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20634 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20635 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20636 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20637 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20639 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20640 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20641 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20642 ENABLE_PIC!$ENABLE_PIC$ac_delim
20643 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20644 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20645 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20646 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20647 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20648 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20649 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20650 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20651 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20652 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20657 elif $ac_last_try; then
20658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20660 { (exit 1); exit 1; }; }
20662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20667 if test -n "$ac_eof"; then
20668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20669 ac_eof=`expr $ac_eof + 1`
20672 cat >>$CONFIG_STATUS <<_ACEOF
20673 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20678 s/^/s,@/; s/!/@,|#_!!_#|/
20681 s/'"$ac_delim"'$/,g/; t
20683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20684 ' >>$CONFIG_STATUS <conf$$subs.sed
20685 rm -f conf$$subs.sed
20686 cat >>$CONFIG_STATUS <<_ACEOF
20692 for ac_last_try in false false false false false :; do
20693 cat >conf$$subs.sed <<_ACEOF
20694 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20696 CXXFLAGS!$CXXFLAGS$ac_delim
20697 ac_ct_CXX!$ac_ct_CXX$ac_delim
20699 ifGNUmake!$ifGNUmake$ac_delim
20700 LN_S!$LN_S$ac_delim
20703 DATE!$DATE$ac_delim
20704 FIND!$FIND$ac_delim
20705 MKDIR!$MKDIR$ac_delim
20707 RANLIB!$RANLIB$ac_delim
20712 BINPWD!$BINPWD$ac_delim
20713 GRAPHVIZ!$GRAPHVIZ$ac_delim
20716 NEATO!$NEATO$ac_delim
20717 TWOPI!$TWOPI$ac_delim
20718 CIRCO!$CIRCO$ac_delim
20720 DOTTY!$DOTTY$ac_delim
20721 PERL!$PERL$ac_delim
20722 HAVE_PERL!$HAVE_PERL$ac_delim
20723 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20724 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20725 INSTALL_DATA!$INSTALL_DATA$ac_delim
20726 BZIP2!$BZIP2$ac_delim
20727 DOXYGEN!$DOXYGEN$ac_delim
20728 GROFF!$GROFF$ac_delim
20729 GZIP!$GZIP$ac_delim
20730 POD2HTML!$POD2HTML$ac_delim
20731 POD2MAN!$POD2MAN$ac_delim
20732 RUNTEST!$RUNTEST$ac_delim
20733 TCLSH!$TCLSH$ac_delim
20735 OCAMLC!$OCAMLC$ac_delim
20736 OCAMLOPT!$OCAMLOPT$ac_delim
20737 OCAMLDEP!$OCAMLDEP$ac_delim
20738 OCAMLDOC!$OCAMLDOC$ac_delim
20740 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20741 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20742 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20743 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20744 LIBADD_DL!$LIBADD_DL$ac_delim
20745 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20746 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20747 LLVMGCC!$LLVMGCC$ac_delim
20748 LLVMGXX!$LLVMGXX$ac_delim
20749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20751 USE_UDIS86!$USE_UDIS86$ac_delim
20752 USE_OPROFILE!$USE_OPROFILE$ac_delim
20753 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20754 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20755 MMAP_FILE!$MMAP_FILE$ac_delim
20756 LLVMCC1!$LLVMCC1$ac_delim
20757 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20758 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20759 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20760 SHLIBEXT!$SHLIBEXT$ac_delim
20761 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20762 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20763 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20764 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20765 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20766 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20767 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20768 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20769 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20770 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20771 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20772 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20773 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20774 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20775 RPATH!$RPATH$ac_delim
20776 RDYNAMIC!$RDYNAMIC$ac_delim
20777 LIBOBJS!$LIBOBJS$ac_delim
20778 LTLIBOBJS!$LTLIBOBJS$ac_delim
20781 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
20783 elif $ac_last_try; then
20784 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20785 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20786 { (exit 1); exit 1; }; }
20788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20792 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20793 if test -n "$ac_eof"; then
20794 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20795 ac_eof=`expr $ac_eof + 1`
20798 cat >>$CONFIG_STATUS <<_ACEOF
20799 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20803 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20804 s/^/s,@/; s/!/@,|#_!!_#|/
20807 s/'"$ac_delim"'$/,g/; t
20809 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20810 ' >>$CONFIG_STATUS <conf$$subs.sed
20811 rm -f conf$$subs.sed
20812 cat >>$CONFIG_STATUS <<_ACEOF
20819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20821 # trailing colons and then remove the whole line if VPATH becomes empty
20822 # (actually we leave an empty line to preserve line numbers).
20823 if test "x$srcdir" = x.; then
20824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20825 s/:*\$(srcdir):*/:/
20826 s/:*\${srcdir}:*/:/
20828 s/^\([^=]*=[ ]*\):*/\1/
20834 cat >>$CONFIG_STATUS <<\_ACEOF
20835 fi # test -n "$CONFIG_FILES"
20838 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20841 :[FHLC]) ac_mode=$ac_tag; continue;;
20843 case $ac_mode$ac_tag in
20845 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20846 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20847 { (exit 1); exit 1; }; };;
20848 :[FH]-) ac_tag=-:-;;
20849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20866 -) ac_f="$tmp/stdin";;
20867 *) # Look for the file first in the build tree, then in the source tree
20868 # (if the path is not absolute). The absolute path cannot be DOS-style,
20869 # because $ac_f cannot contain `:'.
20873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20875 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20876 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20877 { (exit 1); exit 1; }; };;
20879 ac_file_inputs="$ac_file_inputs $ac_f"
20882 # Let's still pretend it is `configure' which instantiates (i.e., don't
20883 # use $as_me), people would be surprised to read:
20884 # /* config.h. Generated by config.status. */
20885 configure_input="Generated from "`IFS=:
20886 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20887 if test x"$ac_file" != x-; then
20888 configure_input="$ac_file. $configure_input"
20889 { echo "$as_me:$LINENO: creating $ac_file" >&5
20890 echo "$as_me: creating $ac_file" >&6;}
20894 *:-:* | *:-) cat >"$tmp/stdin";;
20899 ac_dir=`$as_dirname -- "$ac_file" ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901 X"$ac_file" : 'X\(//\)[^/]' \| \
20902 X"$ac_file" : 'X\(//\)$' \| \
20903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20909 /^X\(\/\/\)[^/].*/{
20924 -*) as_dir=./$as_dir;;
20926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20931 *) as_qdir=$as_dir;;
20933 as_dirs="'$as_qdir' $as_dirs"
20934 as_dir=`$as_dirname -- "$as_dir" ||
20935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20936 X"$as_dir" : 'X\(//\)[^/]' \| \
20937 X"$as_dir" : 'X\(//\)$' \| \
20938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20944 /^X\(\/\/\)[^/].*/{
20957 test -d "$as_dir" && break
20959 test -z "$as_dirs" || eval "mkdir $as_dirs"
20960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20961 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20962 { (exit 1); exit 1; }; }; }
20966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20969 # A ".." for each directory in $ac_dir_suffix.
20970 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20971 case $ac_top_builddir_sub in
20972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20976 ac_abs_top_builddir=$ac_pwd
20977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20978 # for backward compatibility:
20979 ac_top_builddir=$ac_top_build_prefix
20982 .) # We are building in place.
20984 ac_top_srcdir=$ac_top_builddir_sub
20985 ac_abs_top_srcdir=$ac_pwd ;;
20986 [\\/]* | ?:[\\/]* ) # Absolute name.
20987 ac_srcdir=$srcdir$ac_dir_suffix;
20988 ac_top_srcdir=$srcdir
20989 ac_abs_top_srcdir=$srcdir ;;
20990 *) # Relative name.
20991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20992 ac_top_srcdir=$ac_top_build_prefix$srcdir
20993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21010 cat >>$CONFIG_STATUS <<\_ACEOF
21011 # If the template does not know about datarootdir, expand it.
21012 # FIXME: This hack should be removed a few years after 2.60.
21013 ac_datarootdir_hack=; ac_datarootdir_seen=
21015 case `sed -n '/datarootdir/ {
21024 ' $ac_file_inputs` in
21025 *datarootdir*) ac_datarootdir_seen=yes;;
21026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21027 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21028 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21030 cat >>$CONFIG_STATUS <<_ACEOF
21031 ac_datarootdir_hack='
21032 s&@datadir@&$datadir&g
21033 s&@docdir@&$docdir&g
21034 s&@infodir@&$infodir&g
21035 s&@localedir@&$localedir&g
21036 s&@mandir@&$mandir&g
21037 s&\\\${datarootdir}&$datarootdir&g' ;;
21041 # Neutralize VPATH when `$srcdir' = `.'.
21042 # Shell code in configure.ac might set extrasub.
21043 # FIXME: do we really want to maintain this feature?
21044 cat >>$CONFIG_STATUS <<_ACEOF
21048 cat >>$CONFIG_STATUS <<\_ACEOF
21050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21051 s&@configure_input@&$configure_input&;t t
21052 s&@top_builddir@&$ac_top_builddir_sub&;t t
21053 s&@srcdir@&$ac_srcdir&;t t
21054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21055 s&@top_srcdir@&$ac_top_srcdir&;t t
21056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21057 s&@builddir@&$ac_builddir&;t t
21058 s&@abs_builddir@&$ac_abs_builddir&;t t
21059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21060 s&@INSTALL@&$ac_INSTALL&;t t
21061 $ac_datarootdir_hack
21062 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21067 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21068 which seems to be undefined. Please make sure it is defined." >&5
21069 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21070 which seems to be undefined. Please make sure it is defined." >&2;}
21074 -) cat "$tmp/out"; rm -f "$tmp/out";;
21075 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21084 # Transform confdefs.h into a sed script `conftest.defines', that
21085 # substitutes the proper values into config.h.in to produce config.h.
21086 rm -f conftest.defines conftest.tail
21087 # First, append a space to every undef/define line, to ease matching.
21088 echo 's/$/ /' >conftest.defines
21089 # Then, protect against being on the right side of a sed subst, or in
21090 # an unquoted here document, in config.status. If some macros were
21091 # called several times there might be several #defines for the same
21092 # symbol, which is useless. But do not sort them, since the last
21093 # AC_DEFINE must be honored.
21094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21095 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21096 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21097 # PARAMS is the parameter list in the macro definition--in most cases, it's
21098 # just an empty string.
21099 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21100 ac_dB='\\)[ (].*,\\1define\\2'
21108 s/^[ ]*#[ ]*define[ ][ ]*//
21113 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21114 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21115 ' >>conftest.defines
21117 # Remove the space that was appended to ease matching.
21118 # Then replace #undef with comments. This is necessary, for
21119 # example, in the case of _POSIX_SOURCE, which is predefined and required
21120 # on some systems where configure will not decide to define it.
21121 # (The regexp can be short, since the line contains either #define or #undef.)
21123 s,^[ #]*u.*,/* & */,' >>conftest.defines
21125 # Break up conftest.defines:
21126 ac_max_sed_lines=50
21128 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21129 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21130 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21132 ac_in='$ac_file_inputs'
21133 ac_out='"$tmp/out1"'
21134 ac_nxt='"$tmp/out2"'
21138 # Write a here document:
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 # First, check the format of the line:
21141 cat >"\$tmp/defines.sed" <<\\CEOF
21142 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21143 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21147 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21149 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21150 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21151 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21152 grep . conftest.tail >/dev/null || break
21153 rm -f conftest.defines
21154 mv conftest.tail conftest.defines
21156 rm -f conftest.defines conftest.tail
21158 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21159 cat >>$CONFIG_STATUS <<\_ACEOF
21160 if test x"$ac_file" != x-; then
21161 echo "/* $configure_input */" >"$tmp/config.h"
21162 cat "$ac_result" >>"$tmp/config.h"
21163 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21165 echo "$as_me: $ac_file is unchanged" >&6;}
21168 mv "$tmp/config.h" $ac_file
21171 echo "/* $configure_input */"
21177 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21178 echo "$as_me: executing $ac_file commands" >&6;}
21183 case $ac_file$ac_mode in
21184 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21186 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21188 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21190 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21192 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21194 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21196 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21198 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21200 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21202 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21204 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21206 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21208 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21209 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21215 { (exit 0); exit 0; }
21217 chmod +x $CONFIG_STATUS
21218 ac_clean_files=$ac_clean_files_save
21221 # configure is writing to config.log, and then calls config.status.
21222 # config.status does its own redirection, appending to config.log.
21223 # Unfortunately, on DOS this fails, as config.log is still kept open
21224 # by configure, so config.status won't be able to write to it; its
21225 # output is simply discarded. So we exec the FD to /dev/null,
21226 # effectively closing config.log, so it can be properly (re)opened and
21227 # appended to by config.status. When coming back to configure, we
21228 # need to make the FD available again.
21229 if test "$no_create" != yes; then
21231 ac_config_status_args=
21232 test "$silent" = yes &&
21233 ac_config_status_args="$ac_config_status_args --quiet"
21235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21238 # would make configure fail if this is the last instruction.
21239 $ac_cs_success || { (exit 1); exit 1; }
21243 # CONFIG_SUBDIRS section.
21245 if test "$no_recursion" != yes; then
21247 # Remove --cache-file and --srcdir arguments so they do not pile up.
21248 ac_sub_configure_args=
21250 eval "set x $ac_configure_args"
21254 if test -n "$ac_prev"; then
21259 -cache-file | --cache-file | --cache-fil | --cache-fi \
21260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21261 ac_prev=cache_file ;;
21262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21266 --config-cache | -C)
21268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21278 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21280 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21284 # Always prepend --prefix to ensure using the same prefix
21285 # in subdir configurations.
21286 ac_arg="--prefix=$prefix"
21288 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21290 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21293 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21295 # Do not complain, so a configure script can configure whichever
21296 # parts of a large source tree are present.
21297 test -d "$srcdir/$ac_dir" || continue
21299 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21300 echo "$as_me:$LINENO: $ac_msg" >&5
21304 -*) as_dir=./$as_dir;;
21306 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21310 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21311 *) as_qdir=$as_dir;;
21313 as_dirs="'$as_qdir' $as_dirs"
21314 as_dir=`$as_dirname -- "$as_dir" ||
21315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21316 X"$as_dir" : 'X\(//\)[^/]' \| \
21317 X"$as_dir" : 'X\(//\)$' \| \
21318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21324 /^X\(\/\/\)[^/].*/{
21337 test -d "$as_dir" && break
21339 test -z "$as_dirs" || eval "mkdir $as_dirs"
21340 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21341 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21342 { (exit 1); exit 1; }; }; }
21346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21349 # A ".." for each directory in $ac_dir_suffix.
21350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21351 case $ac_top_builddir_sub in
21352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21356 ac_abs_top_builddir=$ac_pwd
21357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21358 # for backward compatibility:
21359 ac_top_builddir=$ac_top_build_prefix
21362 .) # We are building in place.
21364 ac_top_srcdir=$ac_top_builddir_sub
21365 ac_abs_top_srcdir=$ac_pwd ;;
21366 [\\/]* | ?:[\\/]* ) # Absolute name.
21367 ac_srcdir=$srcdir$ac_dir_suffix;
21368 ac_top_srcdir=$srcdir
21369 ac_abs_top_srcdir=$srcdir ;;
21370 *) # Relative name.
21371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21372 ac_top_srcdir=$ac_top_build_prefix$srcdir
21373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21380 # Check for guested configure; otherwise get Cygnus style configure.
21381 if test -f "$ac_srcdir/configure.gnu"; then
21382 ac_sub_configure=$ac_srcdir/configure.gnu
21383 elif test -f "$ac_srcdir/configure"; then
21384 ac_sub_configure=$ac_srcdir/configure
21385 elif test -f "$ac_srcdir/configure.in"; then
21386 # This should be Cygnus configure.
21387 ac_sub_configure=$ac_aux_dir/configure
21389 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21394 # The recursion is here.
21395 if test -n "$ac_sub_configure"; then
21396 # Make the cache file name correct relative to the subdirectory.
21397 case $cache_file in
21398 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21399 *) # Relative name.
21400 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21403 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21404 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21405 # The eval makes quoting arguments work.
21406 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21407 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21408 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21409 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21410 { (exit 1); exit 1; }; }