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
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/sample
807 projects/llvm-stacker
814 projects/llvm-poolalloc
817 projects/llvm-kernel'
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
1408 --enable-shared Build a shared library and link tools against it
1410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
1415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
1419 --enable-libffi Check for the presence of libffi (default is NO)
1420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 2.7svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.7svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1954 for i in `ls ${srcdir}/projects`
1956 if test -d ${srcdir}/projects/${i} ; then
1959 sample) subdirs="$subdirs projects/sample"
1961 privbracket) subdirs="$subdirs projects/privbracket"
1963 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1965 # llvm-test is the old name of the test-suite, kept here for backwards
1967 llvm-test) subdirs="$subdirs projects/llvm-test"
1969 test-suite) subdirs="$subdirs projects/test-suite"
1971 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1973 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1975 llvm-java) subdirs="$subdirs projects/llvm-java"
1977 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1979 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1981 poolalloc) subdirs="$subdirs projects/poolalloc"
1983 safecode) subdirs="$subdirs projects/safecode"
1985 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1988 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1989 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1996 # Make sure we can run config.sub.
1997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1998 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1999 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2000 { (exit 1); exit 1; }; }
2002 { echo "$as_me:$LINENO: checking build system type" >&5
2003 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2004 if test "${ac_cv_build+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 ac_build_alias=$build_alias
2008 test "x$ac_build_alias" = x &&
2009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2010 test "x$ac_build_alias" = x &&
2011 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2012 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2013 { (exit 1); exit 1; }; }
2014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2016 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2017 { (exit 1); exit 1; }; }
2020 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2021 echo "${ECHO_T}$ac_cv_build" >&6; }
2022 case $ac_cv_build in
2024 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2025 echo "$as_me: error: invalid value of canonical build" >&2;}
2026 { (exit 1); exit 1; }; };;
2029 ac_save_IFS=$IFS; IFS='-'
2035 # Remember, the first character of IFS is used to create $*,
2036 # except with old shells:
2039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2042 { echo "$as_me:$LINENO: checking host system type" >&5
2043 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_host+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test "x$host_alias" = x; then
2048 ac_cv_host=$ac_cv_build
2050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2052 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2053 { (exit 1); exit 1; }; }
2057 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2058 echo "${ECHO_T}$ac_cv_host" >&6; }
2061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2062 echo "$as_me: error: invalid value of canonical host" >&2;}
2063 { (exit 1); exit 1; }; };;
2066 ac_save_IFS=$IFS; IFS='-'
2072 # Remember, the first character of IFS is used to create $*,
2073 # except with old shells:
2076 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2079 { echo "$as_me:$LINENO: checking target system type" >&5
2080 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2081 if test "${ac_cv_target+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test "x$target_alias" = x; then
2085 ac_cv_target=$ac_cv_host
2087 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2090 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2095 echo "${ECHO_T}$ac_cv_target" >&6; }
2096 case $ac_cv_target in
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2099 echo "$as_me: error: invalid value of canonical target" >&2;}
2100 { (exit 1); exit 1; }; };;
2102 target=$ac_cv_target
2103 ac_save_IFS=$IFS; IFS='-'
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2113 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2116 # The aliases save the names the user supplied, while $host etc.
2117 # will get canonicalized.
2118 test -n "$target_alias" &&
2119 test "$program_prefix$program_suffix$program_transform_name" = \
2121 program_prefix=${target_alias}-
2123 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2124 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2125 if test "${llvm_cv_os_type+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 llvm_cv_link_all_option="-Wl,--whole-archive"
2131 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2132 llvm_cv_os_type="AIX"
2133 llvm_cv_platform_type="Unix" ;;
2135 llvm_cv_link_all_option="-Wl,--whole-archive"
2136 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137 llvm_cv_os_type="IRIX"
2138 llvm_cv_platform_type="Unix" ;;
2140 llvm_cv_link_all_option="-Wl,--whole-archive"
2141 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2142 llvm_cv_os_type="Cygwin"
2143 llvm_cv_platform_type="Unix" ;;
2145 llvm_cv_link_all_option="-Wl,-all_load"
2146 llvm_cv_no_link_all_option="-Wl,-noall_load"
2147 llvm_cv_os_type="Darwin"
2148 llvm_cv_platform_type="Unix" ;;
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="FreeBSD"
2153 llvm_cv_platform_type="Unix" ;;
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="OpenBSD"
2158 llvm_cv_platform_type="Unix" ;;
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="NetBSD"
2163 llvm_cv_platform_type="Unix" ;;
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="DragonFly"
2168 llvm_cv_platform_type="Unix" ;;
2170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172 llvm_cv_os_type="HP-UX"
2173 llvm_cv_platform_type="Unix" ;;
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="Interix"
2178 llvm_cv_platform_type="Unix" ;;
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="Linux"
2183 llvm_cv_platform_type="Unix" ;;
2185 llvm_cv_link_all_option="-Wl,-z,allextract"
2186 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2187 llvm_cv_os_type="SunOS"
2188 llvm_cv_platform_type="Unix" ;;
2190 llvm_cv_link_all_option="-Wl,-z,allextract"
2191 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2192 llvm_cv_os_type="AuroraUX"
2193 llvm_cv_platform_type="Unix" ;;
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="Win32"
2198 llvm_cv_platform_type="Win32" ;;
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="MingW"
2203 llvm_cv_platform_type="Win32" ;;
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Haiku"
2208 llvm_cv_platform_type="Unix" ;;
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Freestanding"
2213 llvm_cv_platform_type="Unix" ;;
2215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217 llvm_cv_os_type="Freestanding"
2218 llvm_cv_platform_type="Unix" ;;
2220 llvm_cv_link_all_option=""
2221 llvm_cv_no_link_all_option=""
2222 llvm_cv_os_type="Unknown"
2223 llvm_cv_platform_type="Unknown" ;;
2226 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2227 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2229 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2230 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2231 if test "${llvm_cv_target_os_type+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 llvm_cv_target_os_type="AIX" ;;
2238 llvm_cv_target_os_type="IRIX" ;;
2240 llvm_cv_target_os_type="Cygwin" ;;
2242 llvm_cv_target_os_type="Darwin" ;;
2244 llvm_cv_target_os_type="FreeBSD" ;;
2246 llvm_cv_target_os_type="OpenBSD" ;;
2248 llvm_cv_target_os_type="NetBSD" ;;
2250 llvm_cv_target_os_type="DragonFly" ;;
2252 llvm_cv_target_os_type="HP-UX" ;;
2254 llvm_cv_target_os_type="Interix" ;;
2256 llvm_cv_target_os_type="Linux" ;;
2258 llvm_cv_target_os_type="SunOS" ;;
2260 llvm_cv_target_os_type="AuroraUX" ;;
2262 llvm_cv_target_os_type="Win32" ;;
2264 llvm_cv_target_os_type="MingW" ;;
2266 llvm_cv_target_os_type="Haiku" ;;
2268 llvm_cv_target_os_type="Freestanding" ;;
2270 llvm_cv_target_os_type="Unknown" ;;
2273 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2274 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2276 if test "$llvm_cv_os_type" = "Unknown" ; then
2277 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2278 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2279 { (exit 1); exit 1; }; }
2284 HOST_OS=$llvm_cv_os_type
2286 TARGET_OS=$llvm_cv_target_os_type
2289 LINKALL=$llvm_cv_link_all_option
2291 NOLINKALL=$llvm_cv_no_link_all_option
2294 case $llvm_cv_platform_type in
2297 cat >>confdefs.h <<\_ACEOF
2298 #define LLVM_ON_UNIX 1
2308 cat >>confdefs.h <<\_ACEOF
2309 #define LLVM_ON_WIN32 1
2319 { echo "$as_me:$LINENO: checking target architecture" >&5
2320 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2321 if test "${llvm_cv_target_arch+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 i?86-*) llvm_cv_target_arch="x86" ;;
2326 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2327 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2328 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2329 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2330 arm*-*) llvm_cv_target_arch="ARM" ;;
2331 mips-*) llvm_cv_target_arch="Mips" ;;
2332 pic16-*) llvm_cv_target_arch="PIC16" ;;
2333 xcore-*) llvm_cv_target_arch="XCore" ;;
2334 msp430-*) llvm_cv_target_arch="MSP430" ;;
2335 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2336 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2337 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2338 *) llvm_cv_target_arch="Unknown" ;;
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2344 if test "$llvm_cv_target_arch" = "Unknown" ; then
2345 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2349 # Determine the LLVM native architecture for the target
2350 case "$llvm_cv_target_arch" in
2351 x86) LLVM_NATIVE_ARCH="X86" ;;
2352 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2353 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2356 ARCH=$llvm_cv_target_arch
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 if test -n "$CC"; then
2394 { echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6; }
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2403 if test -z "$ac_cv_prog_CC"; then
2405 # Extract the first word of "gcc", so it can be a program name with args.
2406 set dummy gcc; ac_word=$2
2407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_ac_ct_CC="gcc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6; }
2437 { echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6; }
2441 if test "x$ac_ct_CC" = x; then
2444 case $cross_compiling:$ac_tool_warned in
2446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&5
2449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2450 whose name does not start with the host triplet. If you think this
2451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2452 ac_tool_warned=yes ;;
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}cc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_CC="${ac_tool_prefix}cc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$CC"; then
2491 { echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2501 if test -z "$CC"; then
2502 # Extract the first word of "cc", so it can be a program name with args.
2503 set dummy cc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521 ac_prog_rejected=yes
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 if test $ac_prog_rejected = yes; then
2533 # We found a bogon in the path, so make sure we never use it.
2534 set dummy $ac_cv_prog_CC
2536 if test $# != 0; then
2537 # We chose a different compiler from the bogus one.
2538 # However, it has the same basename, so the bogon will be chosen
2539 # first if we set CC to just the basename; use the full file name.
2541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2557 if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
2559 for ac_prog in cl.exe
2561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test -n "$CC"; then
2590 { echo "$as_me:$LINENO: result: $CC" >&5
2591 echo "${ECHO_T}$CC" >&6; }
2593 { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2598 test -n "$CC" && break
2601 if test -z "$CC"; then
2603 for ac_prog in cl.exe
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_CC="$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633 if test -n "$ac_ct_CC"; then
2634 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635 echo "${ECHO_T}$ac_ct_CC" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2642 test -n "$ac_ct_CC" && break
2645 if test "x$ac_ct_CC" = x; then
2648 case $cross_compiling:$ac_tool_warned in
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&5
2653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2656 ac_tool_warned=yes ;;
2665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
2671 # Provide some information about the compiler.
2672 echo "$as_me:$LINENO: checking for C compiler version" >&5
2673 ac_compiler=`set X $ac_compile; echo $2`
2674 { (ac_try="$ac_compiler --version >&5"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler --version >&5") 2>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2684 { (ac_try="$ac_compiler -v >&5"
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compiler -v >&5") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (ac_try="$ac_compiler -V >&5"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler -V >&5") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2720 ac_clean_files_save=$ac_clean_files
2721 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2722 # Try to create an executable without -o first, disregard a.out.
2723 # It will help us diagnose broken compilers, and finding out an intuition
2725 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2726 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729 # List of possible output files, starting from the most likely.
2730 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2731 # only as a last resort. b.out is created by i960 compilers.
2732 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2734 # The IRIX 6 linker writes into existing files which may not be
2735 # executable, retaining their permissions. Remove them first so a
2736 # subsequent execution test works.
2738 for ac_file in $ac_files
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2747 if { (ac_try="$ac_link_default"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_link_default") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
2757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2760 # so that the user can short-circuit this test for compilers unknown to
2762 for ac_file in $ac_files
2764 test -f "$ac_file" || continue
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2769 # We found the default executable, but exeext='' is most
2773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 # We set ac_cv_exeext here because the later test for it is not
2778 # safe: cross compilers may not add the suffix if given an `-o'
2779 # argument, so we may need to know it at that point already.
2780 # Even if this section looks crufty: it has the advantage of
2787 test "$ac_cv_exeext" = no && ac_cv_exeext=
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797 { (exit 77); exit 77; }; }
2800 ac_exeext=$ac_cv_exeext
2801 { echo "$as_me:$LINENO: result: $ac_file" >&5
2802 echo "${ECHO_T}$ac_file" >&6; }
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809 # If not cross compiling, check that we can run a simple program.
2810 if test "$cross_compiling" != yes; then
2811 if { ac_try='./$ac_file'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2823 if test "$cross_compiling" = maybe; then
2826 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: cannot run C compiled programs.
2830 If you meant to cross compile, use \`--host'.
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2836 { echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6; }
2839 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840 ac_clean_files=$ac_clean_files_save
2841 # Check that the compiler produces executables we can run. If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846 echo "${ECHO_T}$cross_compiling" >&6; }
2848 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850 if { (ac_try="$ac_link"
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_link") 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
2860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2862 # work properly (i.e., refer to `conftest.exe'), while it won't with
2864 for ac_file in conftest.exe conftest conftest.*; do
2865 test -f "$ac_file" || continue
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2881 rm -f conftest$ac_cv_exeext
2882 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2888 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890 if test "${ac_cv_objext+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 cat >conftest.$ac_ext <<_ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2908 rm -f conftest.o conftest.obj
2909 if { (ac_try="$ac_compile"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compile") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
2919 for ac_file in conftest.o conftest.obj conftest.*; do
2920 test -f "$ac_file" || continue;
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941 echo "${ECHO_T}$ac_cv_objext" >&6; }
2942 OBJEXT=$ac_cv_objext
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3013 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3015 GCC=`test $ac_compiler_gnu = yes && echo yes`
3016 ac_test_CFLAGS=${CFLAGS+set}
3017 ac_save_CFLAGS=$CFLAGS
3018 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_cc_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 ac_save_c_werror_flag=$ac_c_werror_flag
3024 ac_c_werror_flag=yes
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3215 if test "$GCC" = yes; then
3221 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_cv_prog_cc_c89=no
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3252 s = g (p, va_arg (v,int));
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_try") 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_try") 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_prog_cc_c89=$ac_arg
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3331 rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 rm -f conftest.$ac_ext
3339 case "x$ac_cv_prog_cc_c89" in
3341 { echo "$as_me:$LINENO: result: none needed" >&5
3342 echo "${ECHO_T}none needed" >&6; } ;;
3344 { echo "$as_me:$LINENO: result: unsupported" >&5
3345 echo "${ECHO_T}unsupported" >&6; } ;;
3347 CC="$CC $ac_cv_prog_cc_c89"
3348 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3371 if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3495 { echo "$as_me:$LINENO: result: $CPP" >&5
3496 echo "${ECHO_T}$CPP" >&6; }
3498 for ac_c_preproc_warn_flag in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3513 # include <limits.h>
3515 # include <assert.h>
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 # Broken: fails on valid input.
3551 rm -f conftest.err conftest.$ac_ext
3553 # OK, works on sane cases. Now check whether nonexistent headers
3554 # can be detected and how.
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include <ac_nonexistent.h>
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585 if test -z "$ac_cpp_err"; then
3586 # Broken: success on invalid input.
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Passes both tests.
3597 rm -f conftest.err conftest.$ac_ext
3600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601 rm -f conftest.err conftest.$ac_ext
3602 if $ac_preproc_ok; then
3605 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&5
3607 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&2;}
3609 { (exit 1); exit 1; }; }
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621 if test "${ac_cv_path_GREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 # Extract the first word of "grep ggrep" to use in msg output
3625 if test -z "$GREP"; then
3626 set dummy grep ggrep; ac_prog_name=$2
3627 if test "${ac_cv_path_GREP+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 ac_path_GREP_found=false
3631 # Loop through the user's path and test for each of PROGNAME-LIST
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 test -z "$as_dir" && as_dir=.
3637 for ac_prog in grep ggrep; do
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3641 # Check for GNU ac_path_GREP and select it if it is found.
3642 # Check for GNU $ac_path_GREP
3643 case `"$ac_path_GREP" --version 2>&1` in
3645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651 cat "conftest.in" "conftest.in" >"conftest.tmp"
3652 mv "conftest.tmp" "conftest.in"
3653 cp "conftest.in" "conftest.nl"
3654 echo 'GREP' >> "conftest.nl"
3655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657 ac_count=`expr $ac_count + 1`
3658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659 # Best one so far, save it but keep looking for a better one
3660 ac_cv_path_GREP="$ac_path_GREP"
3661 ac_path_GREP_max=$ac_count
3663 # 10*(2^10) chars as input seems more than enough
3664 test $ac_count -gt 10 && break
3666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670 $ac_path_GREP_found && break 3
3680 GREP="$ac_cv_path_GREP"
3681 if test -z "$GREP"; then
3682 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3683 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3684 { (exit 1); exit 1; }; }
3688 ac_cv_path_GREP=$GREP
3693 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3694 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3695 GREP="$ac_cv_path_GREP"
3698 { echo "$as_me:$LINENO: checking for egrep" >&5
3699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3700 if test "${ac_cv_path_EGREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704 then ac_cv_path_EGREP="$GREP -E"
3706 # Extract the first word of "egrep" to use in msg output
3707 if test -z "$EGREP"; then
3708 set dummy egrep; ac_prog_name=$2
3709 if test "${ac_cv_path_EGREP+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_path_EGREP_found=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739 ac_count=`expr $ac_count + 1`
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3752 $ac_path_EGREP_found && break 3
3762 EGREP="$ac_cv_path_EGREP"
3763 if test -z "$EGREP"; then
3764 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3765 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3766 { (exit 1); exit 1; }; }
3770 ac_cv_path_EGREP=$EGREP
3776 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3777 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3778 EGREP="$ac_cv_path_EGREP"
3781 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3783 if test "${ac_cv_header_stdc+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3820 { (case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_try") 2>&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_cv_header_stdc=yes
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 ac_cv_header_stdc=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 if test $ac_cv_header_stdc = yes; then
3850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 $EGREP "memchr" >/dev/null 2>&1; then
3864 ac_cv_header_stdc=no
3870 if test $ac_cv_header_stdc = yes; then
3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "free" >/dev/null 2>&1; then
3885 ac_cv_header_stdc=no
3891 if test $ac_cv_header_stdc = yes; then
3892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893 if test "$cross_compiling" = yes; then
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 # define ISLOWER(c) \
3909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
3912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
3922 || toupper (i) != TOUPPER (i))
3927 rm -f conftest$ac_exeext
3928 if { (ac_try="$ac_link"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_link") 2>&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938 { (case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_try") 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3949 echo "$as_me: program exited with status $ac_status" >&5
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_cv_header_stdc=no
3956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3962 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3964 if test $ac_cv_header_stdc = yes; then
3966 cat >>confdefs.h <<\_ACEOF
3967 #define STDC_HEADERS 1
3972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983 inttypes.h stdint.h unistd.h
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 $ac_includes_default
3999 #include <$ac_header>
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_try") 2>&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest.$ac_objext'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 eval "$as_ac_Header=yes"
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 eval "$as_ac_Header=no"
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_res=`eval echo '${'$as_ac_Header'}'`
4046 { echo "$as_me:$LINENO: result: $ac_res" >&5
4047 echo "${ECHO_T}$ac_res" >&6; }
4048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049 cat >>confdefs.h <<_ACEOF
4050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4058 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4059 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4060 if test "${ac_cv_c_bigendian+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 # See if sys/param.h defines the BYTE_ORDER macro.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <sys/types.h>
4071 #include <sys/param.h>
4076 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try='test -s conftest.$ac_objext'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4118 # It does; now see whether it defined to BIG_ENDIAN or not.
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/param.h>
4131 #if BYTE_ORDER != BIG_ENDIAN
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4148 grep -v '^ *+' conftest.er1 >conftest.err
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4154 { (case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_c_bigendian=yes
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 ac_cv_c_bigendian=no
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 # It does not; compile a test program.
4187 if test "$cross_compiling" = yes; then
4188 # try to guess the endianness by grepping values into an object file
4189 ac_cv_c_bigendian=unknown
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4197 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4198 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4199 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4201 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4205 _ascii (); _ebcdic ();
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4245 ac_cv_c_bigendian=yes
4247 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4248 if test "$ac_cv_c_bigendian" = unknown; then
4249 ac_cv_c_bigendian=no
4251 # finding both strings is unlikely to happen, but who knows?
4252 ac_cv_c_bigendian=unknown
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 $ac_includes_default
4275 /* Are we little or big endian? From Harbison&Steele. */
4279 char c[sizeof (long int)];
4282 return u.c[sizeof (long int) - 1] == 1;
4288 rm -f conftest$ac_exeext
4289 if { (ac_try="$ac_link"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_link") 2>&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4299 { (case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_try") 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 ac_cv_c_bigendian=no
4310 echo "$as_me: program exited with status $ac_status" >&5
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_c_bigendian=yes
4317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4327 case $ac_cv_c_bigendian in
4335 { { echo "$as_me:$LINENO: error: unknown endianness
4336 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4337 echo "$as_me: error: unknown endianness
4338 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4339 { (exit 1); exit 1; }; } ;;
4343 if test "$cross_compiling" = yes; then
4344 LLVM_CROSS_COMPILING=1
4347 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4348 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4349 if test "${ac_cv_build_exeext+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4353 ac_cv_build_exeext=.exe
4355 ac_build_prefix=${build_alias}-
4357 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4358 set dummy ${ac_build_prefix}gcc; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 if test -n "$BUILD_CC"; then
4365 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 BUILD_CC=$ac_cv_prog_BUILD_CC
4385 if test -n "$BUILD_CC"; then
4386 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4387 echo "${ECHO_T}$BUILD_CC" >&6; }
4389 { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4394 if test -z "$BUILD_CC"; then
4395 # Extract the first word of "gcc", so it can be a program name with args.
4396 set dummy gcc; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$BUILD_CC"; then
4403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_BUILD_CC="gcc"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 BUILD_CC=$ac_cv_prog_BUILD_CC
4423 if test -n "$BUILD_CC"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425 echo "${ECHO_T}$BUILD_CC" >&6; }
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4432 if test -z "$BUILD_CC"; then
4433 # Extract the first word of "cc", so it can be a program name with args.
4434 set dummy cc; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$BUILD_CC"; then
4441 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452 ac_prog_rejected=yes
4455 ac_cv_prog_BUILD_CC="cc"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 if test $ac_prog_rejected = yes; then
4464 # We found a bogon in the path, so make sure we never use it.
4465 set dummy $ac_cv_prog_BUILD_CC
4467 if test $# != 0; then
4468 # We chose a different compiler from the bogus one.
4469 # However, it has the same basename, so the bogon will be chosen
4470 # first if we set BUILD_CC to just the basename; use the full file name.
4472 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4477 BUILD_CC=$ac_cv_prog_BUILD_CC
4478 if test -n "$BUILD_CC"; then
4479 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4480 echo "${ECHO_T}$BUILD_CC" >&6; }
4482 { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4489 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4490 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4491 { (exit 1); exit 1; }; }
4492 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4494 echo 'int main () { return 0; }' > conftest.$ac_ext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4497 (eval $ac_build_link) 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; then
4501 for file in conftest.*; do
4503 *.c | *.o | *.obj | *.dSYM) ;;
4504 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4508 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4509 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4510 { (exit 1); exit 1; }; }
4513 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4518 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4519 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4520 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4521 ac_build_exeext=$BUILD_EXEEXT
4523 ac_build_prefix=${build_alias}-
4524 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4525 set dummy ${ac_build_prefix}g++; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$BUILD_CXX"; then
4532 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4552 if test -n "$BUILD_CXX"; then
4553 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4554 echo "${ECHO_T}$BUILD_CXX" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4561 if test -z "$BUILD_CXX"; then
4562 # Extract the first word of "g++", so it can be a program name with args.
4563 set dummy g++; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$BUILD_CXX"; then
4570 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_BUILD_CXX="g++"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590 if test -n "$BUILD_CXX"; then
4591 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592 echo "${ECHO_T}$BUILD_CXX" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4599 if test -z "$BUILD_CXX"; then
4600 # Extract the first word of "c++", so it can be a program name with args.
4601 set dummy c++; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test -n "$BUILD_CXX"; then
4608 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4619 ac_prog_rejected=yes
4622 ac_cv_prog_BUILD_CXX="c++"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 if test $ac_prog_rejected = yes; then
4631 # We found a bogon in the path, so make sure we never use it.
4632 set dummy $ac_cv_prog_BUILD_CXX
4634 if test $# != 0; then
4635 # We chose a different compiler from the bogus one.
4636 # However, it has the same basename, so the bogon will be chosen
4637 # first if we set BUILD_CXX to just the basename; use the full file name.
4639 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4644 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4645 if test -n "$BUILD_CXX"; then
4646 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4647 echo "${ECHO_T}$BUILD_CXX" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4657 LLVM_CROSS_COMPILING=0
4661 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4672 # Check whether --enable-optimized was given.
4673 if test "${enable_optimized+set}" = set; then
4674 enableval=$enable_optimized;
4679 if test ${enableval} = "no" ; then
4683 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4687 # Check whether --enable-profiling was given.
4688 if test "${enable_profiling+set}" = set; then
4689 enableval=$enable_profiling;
4694 if test ${enableval} = "no" ; then
4698 ENABLE_PROFILING=ENABLE_PROFILING=1
4702 # Check whether --enable-assertions was given.
4703 if test "${enable_assertions+set}" = set; then
4704 enableval=$enable_assertions;
4709 if test ${enableval} = "yes" ; then
4713 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4717 # Check whether --enable-expensive-checks was given.
4718 if test "${enable_expensive_checks+set}" = set; then
4719 enableval=$enable_expensive_checks;
4724 if test ${enableval} = "yes" ; then
4725 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4727 EXPENSIVE_CHECKS=yes
4730 ENABLE_EXPENSIVE_CHECKS=
4736 # Check whether --enable-debug-runtime was given.
4737 if test "${enable_debug_runtime+set}" = set; then
4738 enableval=$enable_debug_runtime;
4743 if test ${enableval} = "no" ; then
4747 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4751 # Check whether --enable-debug-symbols was given.
4752 if test "${enable_debug_symbols+set}" = set; then
4753 enableval=$enable_debug_symbols;
4758 if test ${enableval} = "no" ; then
4762 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4766 # Check whether --enable-jit was given.
4767 if test "${enable_jit+set}" = set; then
4768 enableval=$enable_jit;
4773 if test ${enableval} = "no"
4778 case "$llvm_cv_target_arch" in
4779 x86) TARGET_HAS_JIT=1
4781 Sparc) TARGET_HAS_JIT=0
4783 PowerPC) TARGET_HAS_JIT=1
4785 x86_64) TARGET_HAS_JIT=1
4787 Alpha) TARGET_HAS_JIT=1
4789 ARM) TARGET_HAS_JIT=1
4791 Mips) TARGET_HAS_JIT=0
4793 PIC16) TARGET_HAS_JIT=0
4795 XCore) TARGET_HAS_JIT=0
4797 MSP430) TARGET_HAS_JIT=0
4799 SystemZ) TARGET_HAS_JIT=0
4801 Blackfin) TARGET_HAS_JIT=0
4803 MBlaze) TARGET_HAS_JIT=0
4810 # Check whether --enable-doxygen was given.
4811 if test "${enable_doxygen+set}" = set; then
4812 enableval=$enable_doxygen;
4817 case "$enableval" in
4818 yes) ENABLE_DOXYGEN=1
4820 no) ENABLE_DOXYGEN=0
4822 default) ENABLE_DOXYGEN=0
4824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4825 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4826 { (exit 1); exit 1; }; } ;;
4829 # Check whether --enable-threads was given.
4830 if test "${enable_threads+set}" = set; then
4831 enableval=$enable_threads;
4836 case "$enableval" in
4837 yes) ENABLE_THREADS=1
4839 no) ENABLE_THREADS=0
4841 default) ENABLE_THREADS=1
4843 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4844 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4845 { (exit 1); exit 1; }; } ;;
4848 cat >>confdefs.h <<_ACEOF
4849 #define ENABLE_THREADS $ENABLE_THREADS
4853 # Check whether --enable-pic was given.
4854 if test "${enable_pic+set}" = set; then
4855 enableval=$enable_pic;
4860 case "$enableval" in
4865 default) ENABLE_PIC=1
4867 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4868 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4872 cat >>confdefs.h <<_ACEOF
4873 #define ENABLE_PIC $ENABLE_PIC
4877 # Check whether --enable-shared was given.
4878 if test "${enable_shared+set}" = set; then
4879 enableval=$enable_shared;
4884 case "$enableval" in
4885 yes) ENABLE_SHARED=1
4889 default) ENABLE_SHARED=0
4891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4897 # Check whether --enable-targets was given.
4898 if test "${enable_targets+set}" = set; then
4899 enableval=$enable_targets;
4904 if test "$enableval" = host-only ; then
4907 case "$enableval" in
4908 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4909 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4911 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4922 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4923 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4924 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4928 host) case "$llvm_cv_target_arch" in
4929 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4931 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4932 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4933 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4934 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4936 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4937 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4938 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4939 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4940 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4941 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4942 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4943 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4944 echo "$as_me: error: Can not set target to build" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4947 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4948 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4949 { (exit 1); exit 1; }; } ;;
4954 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4957 # Determine whether we are building LLVM support for the native architecture.
4958 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4959 for a_target in $TARGETS_TO_BUILD; do
4960 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4961 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4963 cat >>confdefs.h <<_ACEOF
4964 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4970 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4971 # target feature def files.
4972 LLVM_ENUM_TARGETS=""
4973 LLVM_ENUM_ASM_PRINTERS=""
4974 LLVM_ENUM_ASM_PARSERS=""
4975 LLVM_ENUM_DISASSEMBLERS=""
4976 for target_to_build in $TARGETS_TO_BUILD; do
4977 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4978 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4979 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4981 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4982 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4984 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4985 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4993 # Check whether --enable-cbe-printf-a was given.
4994 if test "${enable_cbe_printf_a+set}" = set; then
4995 enableval=$enable_cbe_printf_a;
5000 case "$enableval" in
5001 yes) ENABLE_CBE_PRINTF_A=1
5003 no) ENABLE_CBE_PRINTF_A=0
5005 default) ENABLE_CBE_PRINTF_A=1
5007 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5008 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5009 { (exit 1); exit 1; }; } ;;
5012 cat >>confdefs.h <<_ACEOF
5013 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5018 # Check whether --with-llvmgccdir was given.
5019 if test "${with_llvmgccdir+set}" = set; then
5020 withval=$with_llvmgccdir;
5026 default) WITH_LLVMGCCDIR=default ;;
5027 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5028 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5029 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5034 # Check whether --with-llvmgcc was given.
5035 if test "${with_llvmgcc+set}" = set; then
5036 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5042 # Check whether --with-llvmgxx was given.
5043 if test "${with_llvmgxx+set}" = set; then
5044 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5049 if test -n "$LLVMGCC"; then
5050 LLVMGCCCOMMAND="$LLVMGCC"
5053 if test -n "$LLVMGXX"; then
5054 LLVMGXXCOMMAND="$LLVMGXX"
5057 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5058 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5059 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5060 { (exit 1); exit 1; }; };
5063 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5064 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5065 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5066 { (exit 1); exit 1; }; };
5070 # Check whether --with-clang was given.
5071 if test "${with_clang+set}" = set; then
5072 withval=$with_clang;
5079 # Check whether --with-built-clang was given.
5080 if test "${with_built_clang+set}" = set; then
5081 withval=$with_built_clang;
5083 with_built_clang=check
5087 { echo "$as_me:$LINENO: checking clang compiler" >&5
5088 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5091 if test "$with_clang" != "default"; then
5092 WITH_CLANGPATH="$with_clang"
5093 if ! test -x "$WITH_CLANGPATH"; then
5094 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5095 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5096 { (exit 1); exit 1; }; }
5098 elif test "$with_built_clang" = "yes"; then
5100 elif test "$with_built_clang" = "no"; then
5103 if test "$with_built_clang" != "check"; then
5104 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5105 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5106 { (exit 1); exit 1; }; }
5109 if test -f ${srcdir}/tools/clang/README.txt; then
5114 if ! test -z "$WITH_CLANGPATH"; then
5115 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5116 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5117 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5118 elif test "$WITH_BUILT_CLANG" = "1"; then
5119 { echo "$as_me:$LINENO: result: built" >&5
5120 echo "${ECHO_T}built" >&6; }
5122 { echo "$as_me:$LINENO: result: none" >&5
5123 echo "${ECHO_T}none" >&6; }
5125 CLANGPATH=$WITH_CLANGPATH
5127 CLANGXXPATH=$WITH_CLANGXXPATH
5129 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5133 # Check whether --with-optimize-option was given.
5134 if test "${with_optimize_option+set}" = set; then
5135 withval=$with_optimize_option;
5140 { echo "$as_me:$LINENO: checking optimization flags" >&5
5141 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5144 case "$llvm_cv_os_type" in
5145 MingW) optimize_option=-O3 ;;
5146 *) optimize_option=-O2 ;;
5148 *) optimize_option="$withval" ;;
5150 OPTIMIZE_OPTION=$optimize_option
5152 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5153 echo "${ECHO_T}$optimize_option" >&6; }
5156 # Check whether --with-extra-options was given.
5157 if test "${with_extra_options+set}" = set; then
5158 withval=$with_extra_options;
5164 default) EXTRA_OPTIONS= ;;
5165 *) EXTRA_OPTIONS=$withval ;;
5167 EXTRA_OPTIONS=$EXTRA_OPTIONS
5170 # Check whether --enable-bindings was given.
5171 if test "${enable_bindings+set}" = set; then
5172 enableval=$enable_bindings;
5177 BINDINGS_TO_BUILD=""
5178 case "$enableval" in
5179 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5180 all ) BINDINGS_TO_BUILD="ocaml" ;;
5181 none | no) BINDINGS_TO_BUILD="" ;;
5182 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5183 case "$a_binding" in
5184 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5185 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5186 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5194 # Check whether --with-ocaml-libdir was given.
5195 if test "${with_ocaml_libdir+set}" = set; then
5196 withval=$with_ocaml_libdir;
5202 auto) with_ocaml_libdir="$withval" ;;
5203 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5204 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5205 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5210 # Check whether --with-c-include-dirs was given.
5211 if test "${with_c_include_dirs+set}" = set; then
5212 withval=$with_c_include_dirs;
5218 cat >>confdefs.h <<_ACEOF
5219 #define C_INCLUDE_DIRS "$withval"
5224 # Check whether --with-cxx-include-root was given.
5225 if test "${with_cxx_include_root+set}" = set; then
5226 withval=$with_cxx_include_root;
5232 cat >>confdefs.h <<_ACEOF
5233 #define CXX_INCLUDE_ROOT "$withval"
5238 # Check whether --with-cxx-include-arch was given.
5239 if test "${with_cxx_include_arch+set}" = set; then
5240 withval=$with_cxx_include_arch;
5246 cat >>confdefs.h <<_ACEOF
5247 #define CXX_INCLUDE_ARCH "$withval"
5252 # Check whether --with-cxx-include-32bit-dir was given.
5253 if test "${with_cxx_include_32bit_dir+set}" = set; then
5254 withval=$with_cxx_include_32bit_dir;
5260 cat >>confdefs.h <<_ACEOF
5261 #define CXX_INCLUDE_32BIT_DIR "$withval"
5266 # Check whether --with-cxx-include-64bit-dir was given.
5267 if test "${with_cxx_include_64bit_dir+set}" = set; then
5268 withval=$with_cxx_include_64bit_dir;
5274 cat >>confdefs.h <<_ACEOF
5275 #define CXX_INCLUDE_64BIT_DIR "$withval"
5280 # Check whether --with-binutils-include was given.
5281 if test "${with_binutils_include+set}" = set; then
5282 withval=$with_binutils_include;
5288 default) WITH_BINUTILS_INCDIR=default ;;
5289 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5291 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5294 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5295 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5297 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5298 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5299 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5300 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5301 { (exit 1); exit 1; }; };
5305 # Check whether --enable-libffi was given.
5306 if test "${enable_libffi+set}" = set; then
5307 enableval=$enable_libffi; case "$enableval" in
5308 yes) llvm_cv_enable_libffi="yes" ;;
5309 no) llvm_cv_enable_libffi="no" ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5315 llvm_cv_enable_libffi=no
5319 if test "$llvm_cv_os_type" = "Win32" ; then
5325 # Check whether --enable-llvmc-dynamic was given.
5326 if test "${enable_llvmc_dynamic+set}" = set; then
5327 enableval=$enable_llvmc_dynamic;
5329 enableval=$llvmc_dynamic
5332 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5333 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5336 ENABLE_LLVMC_DYNAMIC=
5340 # Check whether --enable-llvmc-dynamic-plugins was given.
5341 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5342 enableval=$enable_llvmc_dynamic_plugins;
5347 if test ${enableval} = "yes" ; then
5348 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5351 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5363 # On Suns, sometimes $CPP names a directory.
5364 if test -n "$CPP" && test -d "$CPP"; then
5367 if test -z "$CPP"; then
5368 if test "${ac_cv_prog_CPP+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 # Double quotes because CPP needs to be expanded
5372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5375 for ac_c_preproc_warn_flag in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5390 # include <limits.h>
5392 # include <assert.h>
5396 if { (ac_try="$ac_cpp conftest.$ac_ext"
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } >/dev/null; then
5409 if test -s conftest.err; then
5410 ac_cpp_err=$ac_c_preproc_warn_flag
5411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5418 if test -z "$ac_cpp_err"; then
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 # Broken: fails on valid input.
5428 rm -f conftest.err conftest.$ac_ext
5430 # OK, works on sane cases. Now check whether nonexistent headers
5431 # can be detected and how.
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null; then
5453 if test -s conftest.err; then
5454 ac_cpp_err=$ac_c_preproc_warn_flag
5455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5462 if test -z "$ac_cpp_err"; then
5463 # Broken: success on invalid input.
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 # Passes both tests.
5474 rm -f conftest.err conftest.$ac_ext
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then
5491 { echo "$as_me:$LINENO: result: $CPP" >&5
5492 echo "${ECHO_T}$CPP" >&6; }
5494 for ac_c_preproc_warn_flag in '' yes
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5509 # include <limits.h>
5511 # include <assert.h>
5515 if { (ac_try="$ac_cpp conftest.$ac_ext"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null; then
5528 if test -s conftest.err; then
5529 ac_cpp_err=$ac_c_preproc_warn_flag
5530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5537 if test -z "$ac_cpp_err"; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 # Broken: fails on valid input.
5547 rm -f conftest.err conftest.$ac_ext
5549 # OK, works on sane cases. Now check whether nonexistent headers
5550 # can be detected and how.
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <ac_nonexistent.h>
5559 if { (ac_try="$ac_cpp conftest.$ac_ext"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } >/dev/null; then
5572 if test -s conftest.err; then
5573 ac_cpp_err=$ac_c_preproc_warn_flag
5574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5581 if test -z "$ac_cpp_err"; then
5582 # Broken: success on invalid input.
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 # Passes both tests.
5593 rm -f conftest.err conftest.$ac_ext
5596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597 rm -f conftest.err conftest.$ac_ext
5598 if $ac_preproc_ok; then
5601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5602 See \`config.log' for more details." >&5
5603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5604 See \`config.log' for more details." >&2;}
5605 { (exit 1); exit 1; }; }
5609 ac_cpp='$CPP $CPPFLAGS'
5610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619 if test -n "$ac_tool_prefix"; then
5622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626 if test "${ac_cv_prog_CC+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 if test -n "$CC"; then
5630 ac_cv_prog_CC="$CC" # Let the user override the test.
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 if test -n "$CC"; then
5651 { echo "$as_me:$LINENO: result: $CC" >&5
5652 echo "${ECHO_T}$CC" >&6; }
5654 { echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6; }
5659 test -n "$CC" && break
5662 if test -z "$CC"; then
5666 # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 if test -n "$ac_ct_CC"; then
5674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_ac_ct_CC="$ac_prog"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5694 if test -n "$ac_ct_CC"; then
5695 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5696 echo "${ECHO_T}$ac_ct_CC" >&6; }
5698 { echo "$as_me:$LINENO: result: no" >&5
5699 echo "${ECHO_T}no" >&6; }
5703 test -n "$ac_ct_CC" && break
5706 if test "x$ac_ct_CC" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet. If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&5
5714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715 whose name does not start with the host triplet. If you think this
5716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5717 ac_tool_warned=yes ;;
5724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: no acceptable C compiler found in \$PATH
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5730 # Provide some information about the compiler.
5731 echo "$as_me:$LINENO: checking for C compiler version" >&5
5732 ac_compiler=`set X $ac_compile; echo $2`
5733 { (ac_try="$ac_compiler --version >&5"
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compiler --version >&5") 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5743 { (ac_try="$ac_compiler -v >&5"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_compiler -v >&5") 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }
5753 { (ac_try="$ac_compiler -V >&5"
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler -V >&5") 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5764 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5802 { (case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_try") 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5833 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5835 GCC=`test $ac_compiler_gnu = yes && echo yes`
5836 ac_test_CFLAGS=${CFLAGS+set}
5837 ac_save_CFLAGS=$CFLAGS
5838 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5840 if test "${ac_cv_prog_cc_g+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_save_c_werror_flag=$ac_c_werror_flag
5844 ac_c_werror_flag=yes
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877 { (case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_try") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_try") 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_c_werror_flag=$ac_save_c_werror_flag
5958 cat >conftest.$ac_ext <<_ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_try") 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 ac_c_werror_flag=$ac_save_c_werror_flag
6024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6026 if test "$ac_test_CFLAGS" = set; then
6027 CFLAGS=$ac_save_CFLAGS
6028 elif test $ac_cv_prog_cc_g = yes; then
6029 if test "$GCC" = yes; then
6035 if test "$GCC" = yes; then
6041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_cc_c89+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 ac_cv_prog_cc_c89=no
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6056 #include <sys/types.h>
6057 #include <sys/stat.h>
6058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6059 struct buf { int x; };
6060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061 static char *e (p, i)
6067 static char *f (char * (*g) (char **, int), char **p, ...)
6072 s = g (p, va_arg (v,int));
6077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6078 function prototypes and stuff, but not '\xHH' hex character constants.
6079 These don't provoke an error unfortunately, instead are silently treated
6080 as 'x'. The following induces an error, until -std is added to get
6081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6082 array size at least. It's necessary to write '\x00'==0 to get something
6083 that's true only with -std. */
6084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087 inside strings and character constants. */
6089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6091 int test (int i, double x);
6092 struct s1 {int (*f) (int a);};
6093 struct s2 {int (*f) (double a);};
6094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6108 CC="$ac_save_CC $ac_arg"
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_cv_prog_cc_c89=$ac_arg
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6151 rm -f core conftest.err conftest.$ac_objext
6152 test "x$ac_cv_prog_cc_c89" != "xno" && break
6154 rm -f conftest.$ac_ext
6159 case "x$ac_cv_prog_cc_c89" in
6161 { echo "$as_me:$LINENO: result: none needed" >&5
6162 echo "${ECHO_T}none needed" >&6; } ;;
6164 { echo "$as_me:$LINENO: result: unsupported" >&5
6165 echo "${ECHO_T}unsupported" >&6; } ;;
6167 CC="$CC $ac_cv_prog_cc_c89"
6168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6174 ac_cpp='$CPP $CPPFLAGS'
6175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180 ac_cpp='$CXXCPP $CPPFLAGS'
6181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184 if test -z "$CXX"; then
6185 if test -n "$CCC"; then
6188 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_CXX+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$CXX"; then
6199 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 if test -n "$CXX"; then
6220 { echo "$as_me:$LINENO: result: $CXX" >&5
6221 echo "${ECHO_T}$CXX" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 test -n "$CXX" && break
6231 if test -z "$CXX"; then
6235 # Extract the first word of "$ac_prog", so it can be a program name with args.
6236 set dummy $ac_prog; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 if test -n "$ac_ct_CXX"; then
6243 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_CXX="$ac_prog"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6263 if test -n "$ac_ct_CXX"; then
6264 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6265 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6272 test -n "$ac_ct_CXX" && break
6275 if test "x$ac_ct_CXX" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6281 whose name does not start with the host triplet. If you think this
6282 configuration is useful to you, please write to autoconf@gnu.org." >&5
6283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6284 whose name does not start with the host triplet. If you think this
6285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6286 ac_tool_warned=yes ;;
6294 # Provide some information about the compiler.
6295 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6296 ac_compiler=`set X $ac_compile; echo $2`
6297 { (ac_try="$ac_compiler --version >&5"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compiler --version >&5") 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }
6307 { (ac_try="$ac_compiler -v >&5"
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compiler -v >&5") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }
6317 { (ac_try="$ac_compiler -V >&5"
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler -V >&5") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6328 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6329 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6330 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6366 { (case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_try") 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_try") 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6397 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6398 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6399 GXX=`test $ac_compiler_gnu = yes && echo yes`
6400 ac_test_CXXFLAGS=${CXXFLAGS+set}
6401 ac_save_CXXFLAGS=$CXXFLAGS
6402 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6403 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6404 if test "${ac_cv_prog_cxx_g+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6408 ac_cxx_werror_flag=yes
6411 cat >conftest.$ac_ext <<_ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441 { (case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_try") 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_prog_cxx_g=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6481 rm -f conftest.$ac_objext
6482 if { (ac_try="$ac_compile"
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6496 { (case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_try") 2>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6552 { (case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_try") 2>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_try") 2>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 ac_cv_prog_cxx_g=yes
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6590 if test "$ac_test_CXXFLAGS" = set; then
6591 CXXFLAGS=$ac_save_CXXFLAGS
6592 elif test $ac_cv_prog_cxx_g = yes; then
6593 if test "$GXX" = yes; then
6599 if test "$GXX" = yes; then
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6613 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6614 if test "${lt_cv_path_NM+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$NM"; then
6618 # Let the user override the test.
6621 lt_nm_to_check="${ac_tool_prefix}nm"
6622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623 lt_nm_to_check="$lt_nm_to_check nm"
6625 for lt_tmp_nm in $lt_nm_to_check; do
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6629 test -z "$ac_dir" && ac_dir=.
6630 tmp_nm="$ac_dir/$lt_tmp_nm"
6631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632 # Check to see if the nm accepts a BSD-compat flag.
6633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634 # nm: unknown option "B" ignored
6635 # Tru64's nm complains that /dev/null is an invalid object file
6636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637 */dev/null* | *'Invalid file or object type'*)
6638 lt_cv_path_NM="$tmp_nm -B"
6642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6644 lt_cv_path_NM="$tmp_nm -p"
6648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649 continue # so that we can try to find one that supports BSD flags
6658 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6661 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6662 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6667 { echo "$as_me:$LINENO: checking for GNU make" >&5
6668 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6669 if test "${llvm_cv_gnu_make_command+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 llvm_cv_gnu_make_command=''
6673 for a in "$MAKE" make gmake gnumake ; do
6674 if test -z "$a" ; then continue ; fi ;
6675 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6677 llvm_cv_gnu_make_command=$a ;
6682 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6683 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6684 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6688 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6689 echo "${ECHO_T}\"Not found\"" >&6; };
6693 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6694 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6696 if test "$LN_S" = "ln -s"; then
6697 { echo "$as_me:$LINENO: result: yes" >&5
6698 echo "${ECHO_T}yes" >&6; }
6700 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6701 echo "${ECHO_T}no, using $LN_S" >&6; }
6704 # Extract the first word of "cmp", so it can be a program name with args.
6705 set dummy cmp; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_CMP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6736 if test -n "$CMP"; then
6737 { echo "$as_me:$LINENO: result: $CMP" >&5
6738 echo "${ECHO_T}$CMP" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 # Extract the first word of "cp", so it can be a program name with args.
6746 set dummy cp; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_CP+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6777 if test -n "$CP"; then
6778 { echo "$as_me:$LINENO: result: $CP" >&5
6779 echo "${ECHO_T}$CP" >&6; }
6781 { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6786 # Extract the first word of "date", so it can be a program name with args.
6787 set dummy date; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DATE+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6817 DATE=$ac_cv_path_DATE
6818 if test -n "$DATE"; then
6819 { echo "$as_me:$LINENO: result: $DATE" >&5
6820 echo "${ECHO_T}$DATE" >&6; }
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 # Extract the first word of "find", so it can be a program name with args.
6828 set dummy find; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_FIND+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6858 FIND=$ac_cv_path_FIND
6859 if test -n "$FIND"; then
6860 { echo "$as_me:$LINENO: result: $FIND" >&5
6861 echo "${ECHO_T}$FIND" >&6; }
6863 { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6868 # Extract the first word of "grep", so it can be a program name with args.
6869 set dummy grep; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_GREP+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6899 GREP=$ac_cv_path_GREP
6900 if test -n "$GREP"; then
6901 { echo "$as_me:$LINENO: result: $GREP" >&5
6902 echo "${ECHO_T}$GREP" >&6; }
6904 { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6909 # Extract the first word of "mkdir", so it can be a program name with args.
6910 set dummy mkdir; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_MKDIR+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6940 MKDIR=$ac_cv_path_MKDIR
6941 if test -n "$MKDIR"; then
6942 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6943 echo "${ECHO_T}$MKDIR" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6950 # Extract the first word of "mv", so it can be a program name with args.
6951 set dummy mv; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_MV+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6982 if test -n "$MV"; then
6983 { echo "$as_me:$LINENO: result: $MV" >&5
6984 echo "${ECHO_T}$MV" >&6; }
6986 { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_RANLIB+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 RANLIB=$ac_cv_prog_RANLIB
7020 if test -n "$RANLIB"; then
7021 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7022 echo "${ECHO_T}$RANLIB" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7030 if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033 set dummy ranlib; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_ac_ct_RANLIB="ranlib"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060 if test -n "$ac_ct_RANLIB"; then
7061 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7062 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7068 if test "x$ac_ct_RANLIB" = x; then
7071 case $cross_compiling:$ac_tool_warned in
7073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet. If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&5
7076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077 whose name does not start with the host triplet. If you think this
7078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7079 ac_tool_warned=yes ;;
7081 RANLIB=$ac_ct_RANLIB
7084 RANLIB="$ac_cv_prog_RANLIB"
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}ar; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_prog_AR+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 if test -n "$AR"; then
7096 ac_cv_prog_AR="$AR" # Let the user override the test.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_prog_AR="${ac_tool_prefix}ar"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 if test -n "$AR"; then
7117 { echo "$as_me:$LINENO: result: $AR" >&5
7118 echo "${ECHO_T}$AR" >&6; }
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7126 if test -z "$ac_cv_prog_AR"; then
7128 # Extract the first word of "ar", so it can be a program name with args.
7129 set dummy ar; ac_word=$2
7130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 if test -n "$ac_ct_AR"; then
7136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_ac_ct_AR="ar"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156 if test -n "$ac_ct_AR"; then
7157 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158 echo "${ECHO_T}$ac_ct_AR" >&6; }
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7164 if test "x$ac_ct_AR" = x; then
7167 case $cross_compiling:$ac_tool_warned in
7169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet. If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&5
7172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7173 whose name does not start with the host triplet. If you think this
7174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7175 ac_tool_warned=yes ;;
7183 # Extract the first word of "rm", so it can be a program name with args.
7184 set dummy rm; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_RM+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7215 if test -n "$RM"; then
7216 { echo "$as_me:$LINENO: result: $RM" >&5
7217 echo "${ECHO_T}$RM" >&6; }
7219 { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7224 # Extract the first word of "sed", so it can be a program name with args.
7225 set dummy sed; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_SED+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7256 if test -n "$SED"; then
7257 { echo "$as_me:$LINENO: result: $SED" >&5
7258 echo "${ECHO_T}$SED" >&6; }
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7265 # Extract the first word of "tar", so it can be a program name with args.
7266 set dummy tar; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_TAR+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7297 if test -n "$TAR"; then
7298 { echo "$as_me:$LINENO: result: $TAR" >&5
7299 echo "${ECHO_T}$TAR" >&6; }
7301 { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7306 # Extract the first word of "pwd", so it can be a program name with args.
7307 set dummy pwd; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_BINPWD+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7337 BINPWD=$ac_cv_path_BINPWD
7338 if test -n "$BINPWD"; then
7339 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7340 echo "${ECHO_T}$BINPWD" >&6; }
7342 { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7348 # Extract the first word of "Graphviz", so it can be a program name with args.
7349 set dummy Graphviz; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7379 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7380 if test -n "$GRAPHVIZ"; then
7381 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7382 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7389 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7391 cat >>confdefs.h <<\_ACEOF
7392 #define HAVE_GRAPHVIZ 1
7395 if test "$llvm_cv_os_type" = "MingW" ; then
7396 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7399 cat >>confdefs.h <<_ACEOF
7400 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7404 # Extract the first word of "dot", so it can be a program name with args.
7405 set dummy dot; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_DOT+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7436 if test -n "$DOT"; then
7437 { echo "$as_me:$LINENO: result: $DOT" >&5
7438 echo "${ECHO_T}$DOT" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7445 if test "$DOT" != "echo dot" ; then
7447 cat >>confdefs.h <<\_ACEOF
7451 if test "$llvm_cv_os_type" = "MingW" ; then
7452 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7455 cat >>confdefs.h <<_ACEOF
7456 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7460 # Extract the first word of "fdp", so it can be a program name with args.
7461 set dummy fdp; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_FDP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7492 if test -n "$FDP"; then
7493 { echo "$as_me:$LINENO: result: $FDP" >&5
7494 echo "${ECHO_T}$FDP" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 if test "$FDP" != "echo fdp" ; then
7503 cat >>confdefs.h <<\_ACEOF
7507 if test "$llvm_cv_os_type" = "MingW" ; then
7508 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7511 cat >>confdefs.h <<_ACEOF
7512 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7516 # Extract the first word of "neato", so it can be a program name with args.
7517 set dummy neato; ac_word=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_NEATO+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7547 NEATO=$ac_cv_path_NEATO
7548 if test -n "$NEATO"; then
7549 { echo "$as_me:$LINENO: result: $NEATO" >&5
7550 echo "${ECHO_T}$NEATO" >&6; }
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7557 if test "$NEATO" != "echo neato" ; then
7559 cat >>confdefs.h <<\_ACEOF
7560 #define HAVE_NEATO 1
7563 if test "$llvm_cv_os_type" = "MingW" ; then
7564 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7567 cat >>confdefs.h <<_ACEOF
7568 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7572 # Extract the first word of "twopi", so it can be a program name with args.
7573 set dummy twopi; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_TWOPI+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7603 TWOPI=$ac_cv_path_TWOPI
7604 if test -n "$TWOPI"; then
7605 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7606 echo "${ECHO_T}$TWOPI" >&6; }
7608 { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7613 if test "$TWOPI" != "echo twopi" ; then
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_TWOPI 1
7619 if test "$llvm_cv_os_type" = "MingW" ; then
7620 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7623 cat >>confdefs.h <<_ACEOF
7624 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7628 # Extract the first word of "circo", so it can be a program name with args.
7629 set dummy circo; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_CIRCO+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7659 CIRCO=$ac_cv_path_CIRCO
7660 if test -n "$CIRCO"; then
7661 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7662 echo "${ECHO_T}$CIRCO" >&6; }
7664 { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7669 if test "$CIRCO" != "echo circo" ; then
7671 cat >>confdefs.h <<\_ACEOF
7672 #define HAVE_CIRCO 1
7675 if test "$llvm_cv_os_type" = "MingW" ; then
7676 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7679 cat >>confdefs.h <<_ACEOF
7680 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7684 for ac_prog in gv gsview32
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_GV+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 if test -n "$GV"; then
7718 { echo "$as_me:$LINENO: result: $GV" >&5
7719 echo "${ECHO_T}$GV" >&6; }
7721 { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7726 test -n "$GV" && break
7728 test -n "$GV" || GV="echo gv"
7730 if test "$GV" != "echo gv" ; then
7732 cat >>confdefs.h <<\_ACEOF
7736 if test "$llvm_cv_os_type" = "MingW" ; then
7737 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7740 cat >>confdefs.h <<_ACEOF
7741 #define LLVM_PATH_GV "$GV${EXEEXT}"
7745 # Extract the first word of "dotty", so it can be a program name with args.
7746 set dummy dotty; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_DOTTY+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7776 DOTTY=$ac_cv_path_DOTTY
7777 if test -n "$DOTTY"; then
7778 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7779 echo "${ECHO_T}$DOTTY" >&6; }
7781 { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7786 if test "$DOTTY" != "echo dotty" ; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_DOTTY 1
7792 if test "$llvm_cv_os_type" = "MingW" ; then
7793 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7796 cat >>confdefs.h <<_ACEOF
7797 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7803 # Extract the first word of "perl", so it can be a program name with args.
7804 set dummy perl; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_PERL+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7834 PERL=$ac_cv_path_PERL
7835 if test -n "$PERL"; then
7836 { echo "$as_me:$LINENO: result: $PERL" >&5
7837 echo "${ECHO_T}$PERL" >&6; }
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 if test "$PERL" != "none"; then
7845 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7846 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7847 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7848 { echo "$as_me:$LINENO: result: yes" >&5
7849 echo "${ECHO_T}yes" >&6; }
7852 { echo "$as_me:$LINENO: result: not found" >&5
7853 echo "${ECHO_T}not found" >&6; }
7858 if test x"$PERL" = xnone; then
7861 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7862 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7863 { (exit 1); exit 1; }; }
7869 # Find a good install program. We prefer a C program (faster),
7870 # so one script is as good as another. But avoid the broken or
7871 # incompatible versions:
7872 # SysV /etc/install, /usr/sbin/install
7873 # SunOS /usr/etc/install
7874 # IRIX /sbin/install
7876 # AmigaOS /C/install, which installs bootblocks on floppy discs
7877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7880 # OS/2's system install, which has a completely different semantic
7881 # ./install, which can be erroneously created by make from ./install.sh.
7882 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7884 if test -z "$INSTALL"; then
7885 if test "${ac_cv_path_install+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 # Account for people who put trailing slashes in PATH elements.
7895 ./ | .// | /cC/* | \
7896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7897 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7900 # OSF1 and SCO ODT 3.0 have their own names for install.
7901 # Don't use installbsd from OSF since it installs stuff as root
7903 for ac_prog in ginstall scoinst install; do
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7906 if test $ac_prog = install &&
7907 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # AIX install. It has an incompatible calling convention.
7910 elif test $ac_prog = install &&
7911 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7912 # program-specific install script used by HP pwplus--don't use.
7915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7928 if test "${ac_cv_path_install+set}" = set; then
7929 INSTALL=$ac_cv_path_install
7931 # As a last resort, use the slow shell script. Don't cache a
7932 # value for INSTALL within a source directory, because that will
7933 # break other packages using the cache if that directory is
7934 # removed, or if the value is a relative name.
7935 INSTALL=$ac_install_sh
7938 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7939 echo "${ECHO_T}$INSTALL" >&6; }
7941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7942 # It thinks the first close brace ends the variable substitution.
7943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7950 # Extract the first word of "bzip2", so it can be a program name with args.
7951 set dummy bzip2; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_BZIP2+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 BZIP2=$ac_cv_path_BZIP2
7981 if test -n "$BZIP2"; then
7982 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7983 echo "${ECHO_T}$BZIP2" >&6; }
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 # Extract the first word of "doxygen", so it can be a program name with args.
7991 set dummy doxygen; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 DOXYGEN=$ac_cv_path_DOXYGEN
8021 if test -n "$DOXYGEN"; then
8022 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8023 echo "${ECHO_T}$DOXYGEN" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 # Extract the first word of "groff", so it can be a program name with args.
8031 set dummy groff; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_GROFF+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 GROFF=$ac_cv_path_GROFF
8061 if test -n "$GROFF"; then
8062 { echo "$as_me:$LINENO: result: $GROFF" >&5
8063 echo "${ECHO_T}$GROFF" >&6; }
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8070 # Extract the first word of "gzip", so it can be a program name with args.
8071 set dummy gzip; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_GZIP+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 GZIP=$ac_cv_path_GZIP
8101 if test -n "$GZIP"; then
8102 { echo "$as_me:$LINENO: result: $GZIP" >&5
8103 echo "${ECHO_T}$GZIP" >&6; }
8105 { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8110 # Extract the first word of "pod2html", so it can be a program name with args.
8111 set dummy pod2html; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_POD2HTML+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 POD2HTML=$ac_cv_path_POD2HTML
8141 if test -n "$POD2HTML"; then
8142 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8143 echo "${ECHO_T}$POD2HTML" >&6; }
8145 { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8150 # Extract the first word of "pod2man", so it can be a program name with args.
8151 set dummy pod2man; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_POD2MAN+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 POD2MAN=$ac_cv_path_POD2MAN
8181 if test -n "$POD2MAN"; then
8182 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8183 echo "${ECHO_T}$POD2MAN" >&6; }
8185 { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8190 # Extract the first word of "runtest", so it can be a program name with args.
8191 set dummy runtest; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_RUNTEST+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 RUNTEST=$ac_cv_path_RUNTEST
8221 if test -n "$RUNTEST"; then
8222 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8223 echo "${ECHO_T}$RUNTEST" >&6; }
8225 { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8232 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8233 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8235 # Check whether --with-tclinclude was given.
8236 if test "${with_tclinclude+set}" = set; then
8237 withval=$with_tclinclude; with_tclinclude=${withval}
8242 if test "${ac_cv_path_tclsh+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 if test x"${with_tclinclude}" != x ; then
8247 if test -f ${with_tclinclude}/tclsh ; then
8248 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8249 elif test -f ${with_tclinclude}/src/tclsh ; then
8250 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8252 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8253 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8254 { (exit 1); exit 1; }; }
8260 if test x"${ac_cv_path_tclsh}" = x ; then
8261 { echo "$as_me:$LINENO: result: none" >&5
8262 echo "${ECHO_T}none" >&6; }
8263 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
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266 set dummy $ac_prog; ac_word=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_TCLSH+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 TCLSH=$ac_cv_path_TCLSH
8296 if test -n "$TCLSH"; then
8297 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8298 echo "${ECHO_T}$TCLSH" >&6; }
8300 { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8305 test -n "$TCLSH" && break
8308 if test x"${TCLSH}" = x ; then
8309 ac_cv_path_tclsh='';
8311 ac_cv_path_tclsh="${TCLSH}";
8314 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8315 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8316 TCLSH="${ac_cv_path_tclsh}"
8320 # Extract the first word of "zip", so it can be a program name with args.
8321 set dummy zip; ac_word=$2
8322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8324 if test "${ac_cv_path_ZIP+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 if test -n "$ZIP"; then
8352 { echo "$as_me:$LINENO: result: $ZIP" >&5
8353 echo "${ECHO_T}$ZIP" >&6; }
8355 { echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6; }
8360 for ac_prog in ocamlc
8362 # Extract the first word of "$ac_prog", so it can be a program name with args.
8363 set dummy $ac_prog; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_path_OCAMLC+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 OCAMLC=$ac_cv_path_OCAMLC
8393 if test -n "$OCAMLC"; then
8394 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8395 echo "${ECHO_T}$OCAMLC" >&6; }
8397 { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8402 test -n "$OCAMLC" && break
8405 for ac_prog in ocamlopt
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 OCAMLOPT=$ac_cv_path_OCAMLOPT
8438 if test -n "$OCAMLOPT"; then
8439 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8440 echo "${ECHO_T}$OCAMLOPT" >&6; }
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 test -n "$OCAMLOPT" && break
8450 for ac_prog in ocamldep
8452 # Extract the first word of "$ac_prog", so it can be a program name with args.
8453 set dummy $ac_prog; ac_word=$2
8454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8456 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8482 OCAMLDEP=$ac_cv_path_OCAMLDEP
8483 if test -n "$OCAMLDEP"; then
8484 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8485 echo "${ECHO_T}$OCAMLDEP" >&6; }
8487 { echo "$as_me:$LINENO: result: no" >&5
8488 echo "${ECHO_T}no" >&6; }
8492 test -n "$OCAMLDEP" && break
8495 for ac_prog in ocamldoc
8497 # Extract the first word of "$ac_prog", so it can be a program name with args.
8498 set dummy $ac_prog; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 OCAMLDOC=$ac_cv_path_OCAMLDOC
8528 if test -n "$OCAMLDOC"; then
8529 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8530 echo "${ECHO_T}$OCAMLDOC" >&6; }
8532 { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8537 test -n "$OCAMLDOC" && break
8540 for ac_prog in gas as
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8546 if test "${ac_cv_path_GAS+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8561 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 if test -n "$GAS"; then
8574 { echo "$as_me:$LINENO: result: $GAS" >&5
8575 echo "${ECHO_T}$GAS" >&6; }
8577 { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8582 test -n "$GAS" && break
8586 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8587 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8588 if test "${llvm_cv_link_use_r+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8598 CFLAGS="$CFLAGS -Wl,-R."
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8609 int main() { return 0; }
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 llvm_cv_link_use_r=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 llvm_cv_link_use_r=no
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8667 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8668 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8669 if test "$llvm_cv_link_use_r" = yes ; then
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_LINK_R 1
8678 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8679 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8680 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8701 int main() { return 0; }
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (ac_try="$ac_link"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_link") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 llvm_cv_link_use_export_dynamic=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 llvm_cv_link_use_export_dynamic=no
8748 rm -f core conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8760 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8761 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8763 cat >>confdefs.h <<\_ACEOF
8764 #define HAVE_LINK_EXPORT_DYNAMIC 1
8772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_const+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8787 /* FIXME: Include the comments suggested by Paul. */
8789 /* Ultrix mips cc rejects this. */
8790 typedef int charset[2];
8792 /* SunOS 4.1.1 cc rejects this. */
8793 char const *const *ccp;
8795 /* NEC SVR4.0.2 mips cc rejects this. */
8796 struct point {int x, y;};
8797 static struct point const zero = {0,0};
8798 /* AIX XL C 1.02.0.0 rejects this.
8799 It does not let you subtract one const X* pointer from another in
8800 an arm of an if-expression whose if-part is not a constant
8802 const char *g = "string";
8803 ccp = &g + (g ? g-g : 0);
8804 /* HPUX 7.0 cc rejects these. */
8807 ccp = (char const *const *) p;
8808 { /* SCO 3.2v4 cc rejects this. */
8810 char const *s = 0 ? (char *) 0 : (char const *) 0;
8815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8817 const int *foo = &x[0];
8820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821 typedef const int *iptr;
8825 { /* AIX XL C 1.02.0.0 rejects this saying
8826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827 struct s { int j; const int *ap[3]; };
8828 struct s *b; b->j = 5;
8830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8834 return !x[0] && !zero.x;
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_try") 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8887 if test $ac_cv_c_const = no; then
8889 cat >>confdefs.h <<\_ACEOF
8901 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8902 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8903 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8904 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 eval "$as_ac_Header=yes"
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 eval "$as_ac_Header=no"
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 ac_res=`eval echo '${'$as_ac_Header'}'`
8971 { echo "$as_me:$LINENO: result: $ac_res" >&5
8972 echo "${ECHO_T}$ac_res" >&6; }
8973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8974 cat >>confdefs.h <<_ACEOF
8975 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8978 ac_header_dirent=$ac_hdr; break
8982 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8983 if test $ac_header_dirent = dirent.h; then
8984 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986 if test "${ac_cv_search_opendir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ac_func_search_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9012 for ac_lib in '' dir; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1 >conftest.err
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_search_opendir=$ac_res
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9061 rm -f core conftest.err conftest.$ac_objext \
9063 if test "${ac_cv_search_opendir+set}" = set; then
9067 if test "${ac_cv_search_opendir+set}" = set; then
9070 ac_cv_search_opendir=no
9073 LIBS=$ac_func_search_save_LIBS
9075 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077 ac_res=$ac_cv_search_opendir
9078 if test "$ac_res" != no; then
9079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9084 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9086 if test "${ac_cv_search_opendir+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 ac_func_search_save_LIBS=$LIBS
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9097 /* Override any GCC internal prototype to avoid an error.
9098 Use char because int might match the return type of a GCC
9099 builtin and then its argument prototype would still apply. */
9112 for ac_lib in '' x; do
9113 if test -z "$ac_lib"; then
9114 ac_res="none required"
9117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (ac_try="$ac_link"
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_link") 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134 { (case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_try") 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_search_opendir=$ac_res
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9161 rm -f core conftest.err conftest.$ac_objext \
9163 if test "${ac_cv_search_opendir+set}" = set; then
9167 if test "${ac_cv_search_opendir+set}" = set; then
9170 ac_cv_search_opendir=no
9173 LIBS=$ac_func_search_save_LIBS
9175 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9176 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9177 ac_res=$ac_cv_search_opendir
9178 if test "$ac_res" != no; then
9179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9186 for ac_header in dlfcn.h
9188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 ac_res=`eval echo '${'$as_ac_Header'}'`
9196 { echo "$as_me:$LINENO: result: $ac_res" >&5
9197 echo "${ECHO_T}$ac_res" >&6; }
9199 # Is the header compilable?
9200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 $ac_includes_default
9209 #include <$ac_header>
9211 rm -f conftest.$ac_objext
9212 if { (ac_try="$ac_compile"
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226 { (case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_try") 2>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_try") 2>&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_header_compiler=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_header_compiler=no
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6; }
9257 # Is the header present?
9258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9260 cat >conftest.$ac_ext <<_ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <$ac_header>
9268 if { (ac_try="$ac_cpp conftest.$ac_ext"
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null; then
9281 if test -s conftest.err; then
9282 ac_cpp_err=$ac_c_preproc_warn_flag
9283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9290 if test -z "$ac_cpp_err"; then
9291 ac_header_preproc=yes
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_header_preproc=no
9299 rm -f conftest.err conftest.$ac_ext
9300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9301 echo "${ECHO_T}$ac_header_preproc" >&6; }
9303 # So? What about this header?
9304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9310 ac_header_preproc=yes
9313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9326 ## ----------------------------------- ##
9327 ## Report this to llvmbugs@cs.uiuc.edu ##
9328 ## ----------------------------------- ##
9330 ) | sed "s/^/$as_me: WARNING: /" >&2
9333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 eval "$as_ac_Header=\$ac_header_preproc"
9340 ac_res=`eval echo '${'$as_ac_Header'}'`
9341 { echo "$as_me:$LINENO: result: $ac_res" >&5
9342 echo "${ECHO_T}$ac_res" >&6; }
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9354 # Check whether --enable-ltdl-install was given.
9355 if test "${enable_ltdl_install+set}" = set; then
9356 enableval=$enable_ltdl_install;
9362 if test x"${enable_ltdl_install-no}" != xno; then
9364 INSTALL_LTDL_FALSE='#'
9366 INSTALL_LTDL_TRUE='#'
9372 if test x"${enable_ltdl_convenience-no}" != xno; then
9373 CONVENIENCE_LTDL_TRUE=
9374 CONVENIENCE_LTDL_FALSE='#'
9376 CONVENIENCE_LTDL_TRUE='#'
9377 CONVENIENCE_LTDL_FALSE=
9381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9384 libname_spec='lib$name'
9392 shlibpath_overrides_runpath=unknown
9394 dynamic_linker="$host_os ld.so"
9395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9396 if test "$GCC" = yes; then
9397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9399 # if the path contains ";" then we assume it to be the separator
9400 # otherwise default to the standard path separator (i.e. ":") - it is
9401 # assumed that no part of a normal pathname contains ";" but that should
9402 # okay in the real world where ";" in dirpaths is itself problematic.
9403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9410 need_lib_prefix=unknown
9411 hardcode_into_libs=no
9413 # when you set need_version to no, make sure it does not cause -set_version
9414 # flags to be left without arguments
9415 need_version=unknown
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9421 shlibpath_var=LIBPATH
9423 # AIX 3 has no versioning support, so we append a major version to the name.
9424 soname_spec='${libname}${release}${shared_ext}$major'
9431 hardcode_into_libs=yes
9432 if test "$host_cpu" = ia64; then
9433 # AIX 5 supports IA64
9434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9435 shlibpath_var=LD_LIBRARY_PATH
9437 # With GCC up to 2.95.x, collect2 would create an import file
9438 # for dependence libraries. The import file would start with
9439 # the line `#! .'. This would cause the generated library to
9440 # depend on `.', always an invalid library. This was fixed in
9441 # development snapshots of GCC prior to 3.0.
9443 aix4 | aix4.[01] | aix4.[01].*)
9444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9454 # soname into executable. Probably we can add versioning support to
9455 # collect2, so additional links can be useful in future.
9456 if test "$aix_use_runtimelinking" = yes; then
9457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9458 # instead of lib<name>.a to let people know that these are not
9459 # typical AIX shared libraries.
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 # We preserve .a as extension for shared libraries through AIX4.2
9463 # and later when we are not doing run time linking.
9464 library_names_spec='${libname}${release}.a $libname.a'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LIBPATH
9472 library_names_spec='$libname.ixlibrary $libname.a'
9473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474 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'
9478 library_names_spec='${libname}${shared_ext}'
9479 dynamic_linker="$host_os ld.so"
9480 shlibpath_var=LIBRARY_PATH
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492 # the default ld.so.conf also contains /usr/contrib/lib and
9493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494 # libtool to hard-code these into programs
9497 cygwin* | mingw* | pw32*)
9498 version_type=windows
9503 case $GCC,$host_os in
9504 yes,cygwin* | yes,mingw* | yes,pw32*)
9505 library_names_spec='$libname.dll.a'
9506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507 postinstall_cmds='base_file=`basename \${file}`~
9508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9509 dldir=$destdir/`dirname \$dlpath`~
9510 test -d \$dldir || mkdir -p \$dldir~
9511 $install_prog $dir/$dlname \$dldir/$dlname~
9512 chmod a+x \$dldir/$dlname'
9513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9514 dlpath=$dir/\$dldll~
9516 shlibpath_overrides_runpath=yes
9520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9525 # MinGW DLLs use traditional 'lib' prefix
9526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9529 # It is most probably a Windows format PATH printed by
9530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9531 # path with ; separators, and with drive letters. We can handle the
9532 # drive letters (cygwin fileutils understands them), so leave them,
9533 # especially as we might pass files found there to a mingw objdump,
9534 # which wouldn't understand a cygwinified path. Ahh.
9535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9541 # pw32 DLLs use 'pw' prefix rather than 'lib'
9542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9551 dynamic_linker='Win32 ld.exe'
9552 # FIXME: first we should search . and the directory the executable is in
9556 darwin* | rhapsody*)
9557 dynamic_linker="$host_os dyld"
9561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9562 soname_spec='${libname}${release}${major}$shared_ext'
9563 shlibpath_overrides_runpath=yes
9564 shlibpath_var=DYLD_LIBRARY_PATH
9565 shrext_cmds='.dylib'
9566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9567 if test "$GCC" = yes; then
9568 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"`
9570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 shlibpath_var=LD_LIBRARY_PATH
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=no
9596 hardcode_into_libs=yes
9597 dynamic_linker='GNU ld.so'
9600 freebsd* | dragonfly*)
9601 # DragonFly does not have aout. When/if they implement a new
9602 # versioning mechanism, adjust this.
9603 if test -x /usr/bin/objformat; then
9604 objformat=`/usr/bin/objformat`
9607 freebsd[123]*) objformat=aout ;;
9611 version_type=freebsd-$objformat
9612 case $version_type in
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9623 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9628 freebsd3.[01]* | freebsdelf3.[01]*)
9629 shlibpath_overrides_runpath=yes
9630 hardcode_into_libs=yes
9632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9637 freebsd*) # from 4.6 on
9638 shlibpath_overrides_runpath=yes
9639 hardcode_into_libs=yes
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 hardcode_into_libs=yes
9654 hpux9* | hpux10* | hpux11*)
9655 # Give a soname corresponding to the major version so that dld.sl refuses to
9656 # link against other versions.
9663 hardcode_into_libs=yes
9664 dynamic_linker="$host_os dld.so"
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 if test "X$HPUX_IA64_MODE" = X32; then
9670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=SHLIB_PATH
9691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697 postinstall_cmds='chmod 555 $lib'
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=no
9709 hardcode_into_libs=yes
9712 irix5* | irix6* | nonstopux*)
9714 nonstopux*) version_type=nonstopux ;;
9716 if test "$lt_cv_prog_gnu_ld" = yes; then
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9727 irix5* | nonstopux*)
9731 case $LD in # libtool.m4 will add one of these switches to LD
9732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9733 libsuff= shlibsuff= libmagic=32-bit;;
9734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9735 libsuff=32 shlibsuff=N32 libmagic=N32;;
9736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9738 *) libsuff= shlibsuff= libmagic=never-match;;
9742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9743 shlibpath_overrides_runpath=no
9744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9746 hardcode_into_libs=yes
9749 # No shared lib support for Linux oldld, aout, or coff.
9750 linux*oldld* | linux*aout* | linux*coff*)
9754 # This must be Linux ELF.
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=no
9764 # This implies no fast_install, which is unacceptable.
9765 # Some rework will be needed to allow for fast_install
9766 # before this can be enabled.
9767 hardcode_into_libs=yes
9769 # Append ld.so.conf contents to the search path
9770 if test -f /etc/ld.so.conf; then
9771 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' ' '`
9772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9775 # We used to test for /lib/ld.so.1 and disable shared libraries on
9776 # powerpc, because MkLinux only supported shared libraries with the
9777 # GNU dynamic linker. Since this was broken with cross compilers,
9778 # most powerpc-linux boxes support dynamic linking these days and
9779 # people can always --disable-shared, the test was removed, and we
9780 # assume the GNU/Linux dynamic linker is in use.
9781 dynamic_linker='GNU/Linux ld.so'
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=no
9792 hardcode_into_libs=yes
9793 dynamic_linker='GNU ld.so'
9800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803 dynamic_linker='NetBSD (a.out) ld.so'
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 dynamic_linker='NetBSD ld.elf_so'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9811 hardcode_into_libs=yes
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=yes
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 shlibpath_overrides_runpath=yes
9833 sys_lib_dlsearch_path_spec="/usr/lib"
9835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9838 *) need_version=no ;;
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9845 openbsd2.[89] | openbsd2.[89].*)
9846 shlibpath_overrides_runpath=no
9849 shlibpath_overrides_runpath=yes
9853 shlibpath_overrides_runpath=yes
9858 libname_spec='$name'
9861 library_names_spec='$libname${shared_ext} $libname.a'
9862 dynamic_linker='OS/2 ld.exe'
9863 shlibpath_var=LIBPATH
9866 osf3* | osf4* | osf5*)
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 # ldd complains unless libraries are executable
9887 postinstall_cmds='chmod +x $lib'
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894 shlibpath_var=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath=yes
9896 if test "$with_gnu_ld" = yes; then
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 case $host_vendor in
9909 shlibpath_overrides_runpath=no
9911 export_dynamic_flag_spec='${wl}-Blargedynsym'
9912 runpath_var=LD_RUN_PATH
9920 shlibpath_overrides_runpath=no
9921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9927 if test -d /usr/nec ;then
9929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9930 soname_spec='$libname${shared_ext}.$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9936 version_type=freebsd-elf
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 hardcode_into_libs=yes
9943 if test "$with_gnu_ld" = yes; then
9944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945 shlibpath_overrides_runpath=no
9947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9948 shlibpath_overrides_runpath=yes
9951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9955 sys_lib_dlsearch_path_spec='/usr/lib'
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9970 echo "${ECHO_T}$dynamic_linker" >&6; }
9971 test "$dynamic_linker" = no && can_build_shared=no
9973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9974 if test "$GCC" = yes; then
9975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9979 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9980 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9981 if test "${libltdl_cv_shlibext+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 eval libltdl_cv_shlibext=$shrext_cmds
9989 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9990 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9991 if test -n "$libltdl_cv_shlibext"; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10000 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10001 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10002 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 libltdl_cv_shlibpath_var="$shlibpath_var"
10007 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10008 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10009 if test -n "$libltdl_cv_shlibpath_var"; then
10011 cat >>confdefs.h <<_ACEOF
10012 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10018 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10019 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10020 if test "${libltdl_cv_sys_search_path+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10025 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10026 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10027 if test -n "$libltdl_cv_sys_search_path"; then
10029 for dir in $libltdl_cv_sys_search_path; do
10030 if test -z "$sys_search_path"; then
10031 sys_search_path="$dir"
10033 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10037 cat >>confdefs.h <<_ACEOF
10038 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10043 { echo "$as_me:$LINENO: checking for objdir" >&5
10044 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10045 if test "${libltdl_cv_objdir+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 libltdl_cv_objdir="$objdir"
10049 if test -n "$objdir"; then
10052 rm -f .libs 2>/dev/null
10053 mkdir .libs 2>/dev/null
10054 if test -d .libs; then
10055 libltdl_cv_objdir=.libs
10057 # MS-DOS does not allow filenames that begin with a dot.
10058 libltdl_cv_objdir=_libs
10060 rmdir .libs 2>/dev/null
10064 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10065 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10067 cat >>confdefs.h <<_ACEOF
10068 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10076 # Check for command to grab the raw symbol name followed by C symbol from nm.
10077 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10078 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10079 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 # These are sane defaults that work on at least a few old systems.
10084 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10086 # Character class describing NM global symbol codes.
10087 symcode='[BCDEGRST]'
10089 # Regexp to match symbols that can be accessed directly from C.
10090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10092 # Transform an extracted symbol line into a proper C declaration
10093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10095 # Transform an extracted symbol line into symbol name and symbol address
10096 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'"
10098 # Define system-specific variables.
10103 cygwin* | mingw* | pw32*)
10104 symcode='[ABCDGISTW]'
10106 hpux*) # Its linker distinguishes data from code symbols
10107 if test "$host_cpu" = ia64; then
10108 symcode='[ABCDEGRST]'
10110 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10111 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'"
10114 if test "$host_cpu" = ia64; then
10115 symcode='[ABCDGIRSTW]'
10116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10117 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'"
10120 irix* | nonstopux*)
10121 symcode='[BCDEGRST]'
10124 symcode='[BCDEGQRST]'
10135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10143 # Handle CRLF in mingw tool chain
10147 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10151 # If we're using GNU nm, then use its standard symbol codes.
10152 case `$NM -V 2>&1` in
10153 *GNU* | *'with BFD'*)
10154 symcode='[ABCDGIRSTW]' ;;
10157 # Try without a prefix undercore, then with it.
10158 for ac_symprfx in "" "_"; do
10160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10161 symxfrm="\\1 $ac_symprfx\\2 \\2"
10163 # Write the raw and C identifiers.
10164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10166 # Check to see that the pipe works correctly.
10170 cat > conftest.$ac_ext <<EOF
10175 void nm_test_func(){}
10179 int main(){nm_test_var='a';nm_test_func();return(0);}
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; then
10187 # Now try to grab the symbols.
10189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && test -s "$nlist"; then
10194 # Try sorting and uniquifying the output.
10195 if sort "$nlist" | uniq > "$nlist"T; then
10196 mv -f "$nlist"T "$nlist"
10201 # Make sure that we snagged all the symbols we need.
10202 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10203 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10204 cat <<EOF > conftest.$ac_ext
10210 # Now generate the symbol file.
10211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10213 cat <<EOF >> conftest.$ac_ext
10214 #if defined (__STDC__) && __STDC__
10215 # define lt_ptr_t void *
10217 # define lt_ptr_t char *
10221 /* The mapping between symbol names and symbols. */
10226 lt_preloaded_symbols[] =
10229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10230 cat <<\EOF >> conftest.$ac_ext
10238 # Now try linking the two files.
10239 mv conftest.$ac_objext conftstm.$ac_objext
10240 lt_save_LIBS="$LIBS"
10241 lt_save_CFLAGS="$CFLAGS"
10242 LIBS="conftstm.$ac_objext"
10243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10251 LIBS="$lt_save_LIBS"
10252 CFLAGS="$lt_save_CFLAGS"
10254 echo "cannot find nm_test_func in $nlist" >&5
10257 echo "cannot find nm_test_var in $nlist" >&5
10260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10263 echo "$progname: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 rm -f conftest* conftst*
10268 # Do not use the global_symbol_pipe unless it works.
10269 if test "$pipe_works" = yes; then
10272 lt_cv_sys_global_symbol_pipe=
10278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10279 lt_cv_sys_global_symbol_to_cdecl=
10281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10282 { echo "$as_me:$LINENO: result: failed" >&5
10283 echo "${ECHO_T}failed" >&6; }
10285 { echo "$as_me:$LINENO: result: ok" >&5
10286 echo "${ECHO_T}ok" >&6; }
10290 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10291 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10292 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10296 libltdl_cv_preloaded_symbols=yes
10298 libltdl_cv_preloaded_symbols=no
10302 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10303 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10304 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10306 cat >>confdefs.h <<\_ACEOF
10307 #define HAVE_PRELOADED_SYMBOLS 1
10315 ac_cpp='$CPP $CPPFLAGS'
10316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321 { echo "$as_me:$LINENO: checking for shl_load" >&5
10322 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10323 if test "${ac_cv_func_shl_load+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define shl_load innocuous_shl_load
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char shl_load (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10342 # include <limits.h>
10344 # include <assert.h>
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub_shl_load || defined __stub___shl_load
10366 return shl_load ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_func_shl_load=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_cv_func_shl_load=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10417 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10418 if test $ac_cv_func_shl_load = yes; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SHL_LOAD 1
10425 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10426 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10427 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 ac_check_lib_save_LIBS=$LIBS
10432 cat >conftest.$ac_ext <<_ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10439 /* Override any GCC internal prototype to avoid an error.
10440 Use char because int might match the return type of a GCC
10441 builtin and then its argument prototype would still apply. */
10449 return shl_load ();
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_try") 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_lib_dld_shl_load=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_cv_lib_dld_shl_load=no
10496 rm -f core conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10498 LIBS=$ac_check_lib_save_LIBS
10500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10502 if test $ac_cv_lib_dld_shl_load = yes; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_SHL_LOAD 1
10508 LIBADD_DL="$LIBADD_DL -ldld"
10510 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 ac_check_lib_save_LIBS=$LIBS
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_link") 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_try") 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_lib_dl_dlopen=yes
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_dl_dlopen=no
10581 rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10589 cat >>confdefs.h <<\_ACEOF
10590 #define HAVE_LIBDL 1
10593 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10602 # include <dlfcn.h>
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_try") 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10648 cat >>confdefs.h <<\_ACEOF
10649 #define HAVE_LIBDL 1
10651 libltdl_cv_func_dlopen="yes"
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10657 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lsvld $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_lib_svld_dlopen=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_lib_svld_dlopen=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10731 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10732 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10733 if test $ac_cv_lib_svld_dlopen = yes; then
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_LIBDL 1
10739 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10741 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10742 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10743 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 ac_check_lib_save_LIBS=$LIBS
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10765 return dld_link ();
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_cv_lib_dld_dld_link=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_cv_lib_dld_dld_link=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10817 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10818 if test $ac_cv_lib_dld_dld_link = yes; then
10820 cat >>confdefs.h <<\_ACEOF
10824 LIBADD_DL="$LIBADD_DL -ldld"
10826 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10827 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10828 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839 #define _dyld_func_lookup innocuous__dyld_func_lookup
10841 /* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char _dyld_func_lookup (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10847 # include <limits.h>
10849 # include <assert.h>
10852 #undef _dyld_func_lookup
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10860 char _dyld_func_lookup ();
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10871 return _dyld_func_lookup ();
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_func__dyld_func_lookup=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_cv_func__dyld_func_lookup=no
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10922 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10923 if test $ac_cv_func__dyld_func_lookup = yes; then
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_DYLD 1
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10952 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10954 lt_save_LIBS="$LIBS"
10955 LIBS="$LIBS $LIBADD_DL"
10957 for ac_func in dlerror
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define $ac_func innocuous_$ac_func
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10981 # include <limits.h>
10983 # include <assert.h>
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10995 /* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
11005 return $ac_func ();
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 eval "$as_ac_var=no"
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 LIBS="$lt_save_LIBS"
11069 ac_cpp='$CPP $CPPFLAGS'
11070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11076 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11077 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11078 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 ac_cv_sys_symbol_underscore=no
11082 cat > conftest.$ac_ext <<EOF
11083 void nm_test_func(){}
11084 int main(){nm_test_func;return 0;}
11086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
11091 # Now try to grab the symbols.
11092 ac_nlist=conftest.nm
11093 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11094 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && test -s "$ac_nlist"; then
11098 # See whether the symbols have a leading underscore.
11099 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11100 ac_cv_sys_symbol_underscore=yes
11102 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11105 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11109 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11112 echo "configure: failed program was:" >&5
11118 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11119 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11122 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11123 if test x"$libltdl_cv_func_dlopen" = xyes ||
11124 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11125 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11126 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11127 if test "${libltdl_cv_need_uscore+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 libltdl_cv_need_uscore=unknown
11132 LIBS="$LIBS $LIBADD_DL"
11133 if test "$cross_compiling" = yes; then :
11134 libltdl_cv_need_uscore=cross
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11149 # define LT_DLGLOBAL RTLD_GLOBAL
11152 # define LT_DLGLOBAL DL_GLOBAL
11154 # define LT_DLGLOBAL 0
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11165 # define LT_DLLAZY_OR_NOW DL_LAZY
11168 # define LT_DLLAZY_OR_NOW RTLD_NOW
11171 # define LT_DLLAZY_OR_NOW DL_NOW
11173 # define LT_DLLAZY_OR_NOW 0
11181 extern "C" void exit (int);
11184 void fnord() { int i=42;}
11187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188 int status = $lt_dlunknown;
11192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194 /* dlclose (self); */
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207 (./conftest; exit; ) >&5 2>/dev/null
11209 case x$lt_status in
11210 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11211 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11212 x$lt_dlunknown|x*) ;;
11215 # compilation failed
11224 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11225 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11229 if test x"$libltdl_cv_need_uscore" = xyes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define NEED_USCORE 1
11238 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11239 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11240 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 # PORTME does your system automatically load deplibs for dlopen?
11244 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11245 # For now, we just catch OSes we know something about -- in the
11246 # future, we'll try test this programmatically.
11247 libltdl_cv_sys_dlopen_deplibs=unknown
11249 aix3*|aix4.1.*|aix4.2.*)
11250 # Unknown whether this is true for these versions of AIX, but
11251 # we want this `case' here to explicitly catch those versions.
11252 libltdl_cv_sys_dlopen_deplibs=unknown
11255 libltdl_cv_sys_dlopen_deplibs=yes
11258 # Assuming the user has installed a libdl from somewhere, this is true
11259 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11260 libltdl_cv_sys_dlopen_deplibs=yes
11262 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11263 # GNU and its variants, using gnu ld.so (Glibc)
11264 libltdl_cv_sys_dlopen_deplibs=yes
11267 libltdl_cv_sys_dlopen_deplibs=yes
11270 libltdl_cv_sys_dlopen_deplibs=yes
11272 irix[12345]*|irix6.[01]*)
11273 # Catch all versions of IRIX before 6.2, and indicate that we don't
11274 # know how it worked for any of those versions.
11275 libltdl_cv_sys_dlopen_deplibs=unknown
11278 # The case above catches anything before 6.2, and it's known that
11279 # at 6.2 and later dlopen does load deplibs.
11280 libltdl_cv_sys_dlopen_deplibs=yes
11283 libltdl_cv_sys_dlopen_deplibs=yes
11286 libltdl_cv_sys_dlopen_deplibs=yes
11289 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11290 # it did *not* use an RPATH in a shared library to find objects the
11291 # library depends on, so we explictly say `no'.
11292 libltdl_cv_sys_dlopen_deplibs=no
11294 osf5.0|osf5.0a|osf5.1)
11295 # dlopen *does* load deplibs and with the right loader patch applied
11296 # it even uses RPATH in a shared library to search for shared objects
11297 # that the library depends on, but there's no easy way to know if that
11298 # patch is installed. Since this is the case, all we can really
11299 # say is unknown -- it depends on the patch being installed. If
11300 # it is, this changes to `yes'. Without it, it would be `no'.
11301 libltdl_cv_sys_dlopen_deplibs=unknown
11304 # the two cases above should catch all versions of osf <= 5.1. Read
11305 # the comments above for what we know about them.
11306 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11307 # is used to find them so we can finally say `yes'.
11308 libltdl_cv_sys_dlopen_deplibs=yes
11311 libltdl_cv_sys_dlopen_deplibs=yes
11313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11314 libltdl_cv_sys_dlopen_deplibs=yes
11319 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11320 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11321 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define LTDL_DLOPEN_DEPLIBS 1
11330 for ac_header in argz.h
11332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 ac_res=`eval echo '${'$as_ac_Header'}'`
11340 { echo "$as_me:$LINENO: result: $ac_res" >&5
11341 echo "${ECHO_T}$ac_res" >&6; }
11343 # Is the header compilable?
11344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 $ac_includes_default
11353 #include <$ac_header>
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_compile") 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_try") 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_try") 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_header_compiler=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_header_compiler=no
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399 echo "${ECHO_T}$ac_header_compiler" >&6; }
11401 # Is the header present?
11402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #include <$ac_header>
11412 if { (ac_try="$ac_cpp conftest.$ac_ext"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev/null; then
11425 if test -s conftest.err; then
11426 ac_cpp_err=$ac_c_preproc_warn_flag
11427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434 if test -z "$ac_cpp_err"; then
11435 ac_header_preproc=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_header_preproc=no
11443 rm -f conftest.err conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6; }
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470 ## ----------------------------------- ##
11471 ## Report this to llvmbugs@cs.uiuc.edu ##
11472 ## ----------------------------------- ##
11474 ) | sed "s/^/$as_me: WARNING: /" >&2
11477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 eval "$as_ac_Header=\$ac_header_preproc"
11484 ac_res=`eval echo '${'$as_ac_Header'}'`
11485 { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11499 { echo "$as_me:$LINENO: checking for error_t" >&5
11500 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11501 if test "${ac_cv_type_error_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11514 typedef error_t ac__type_new_;
11518 if ((ac__type_new_ *) 0)
11520 if (sizeof (ac__type_new_))
11526 rm -f conftest.$ac_objext
11527 if { (ac_try="$ac_compile"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_compile") 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_type_error_t=yes
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_cv_type_error_t=no
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11571 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11572 if test $ac_cv_type_error_t = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_ERROR_T 1
11581 cat >>confdefs.h <<\_ACEOF
11582 #define error_t int
11593 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11609 #define $ac_func innocuous_$ac_func
11611 /* System header to define __stub macros and hopefully few prototypes,
11612 which can conflict with char $ac_func (); below.
11613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11614 <limits.h> exists even on freestanding compilers. */
11617 # include <limits.h>
11619 # include <assert.h>
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11631 /* The GNU C library defines this for functions which it implements
11632 to always fail with ENOSYS. Some functions are actually named
11633 something starting with __ and the normal name is an alias. */
11634 #if defined __stub_$ac_func || defined __stub___$ac_func
11641 return $ac_func ();
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_link") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest$ac_exeext'
11671 { (case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_try") 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 eval "$as_ac_var=no"
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11691 ac_res=`eval echo '${'$as_ac_var'}'`
11692 { echo "$as_me:$LINENO: result: $ac_res" >&5
11693 echo "${ECHO_T}$ac_res" >&6; }
11694 if test `eval echo '${'$as_ac_var'}'` = yes; then
11695 cat >>confdefs.h <<_ACEOF
11696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11729 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 ac_res=`eval echo '${'$as_ac_Header'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11743 # Is the header compilable?
11744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 $ac_includes_default
11753 #include <$ac_header>
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_header_compiler=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <$ac_header>
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1 >conftest.err
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null; then
11825 if test -s conftest.err; then
11826 ac_cpp_err=$ac_c_preproc_warn_flag
11827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11834 if test -z "$ac_cpp_err"; then
11835 ac_header_preproc=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_preproc=no
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11870 ## ----------------------------------- ##
11871 ## Report this to llvmbugs@cs.uiuc.edu ##
11872 ## ----------------------------------- ##
11874 ) | sed "s/^/$as_me: WARNING: /" >&2
11877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 eval "$as_ac_Header=\$ac_header_preproc"
11884 ac_res=`eval echo '${'$as_ac_Header'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11902 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11915 # Is the header compilable?
11916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11925 #include <$ac_header>
11927 rm -f conftest.$ac_objext
11928 if { (ac_try="$ac_compile"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_header_compiler=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_header_compiler=no
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11971 echo "${ECHO_T}$ac_header_compiler" >&6; }
11973 # Is the header present?
11974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include <$ac_header>
11984 if { (ac_try="$ac_cpp conftest.$ac_ext"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11992 grep -v '^ *+' conftest.er1 >conftest.err
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } >/dev/null; then
11997 if test -s conftest.err; then
11998 ac_cpp_err=$ac_c_preproc_warn_flag
11999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006 if test -z "$ac_cpp_err"; then
12007 ac_header_preproc=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 ac_header_preproc=no
12015 rm -f conftest.err conftest.$ac_ext
12016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017 echo "${ECHO_T}$ac_header_preproc" >&6; }
12019 # So? What about this header?
12020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026 ac_header_preproc=yes
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12042 ## ----------------------------------- ##
12043 ## Report this to llvmbugs@cs.uiuc.edu ##
12044 ## ----------------------------------- ##
12046 ) | sed "s/^/$as_me: WARNING: /" >&2
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 eval "$as_ac_Header=\$ac_header_preproc"
12056 ac_res=`eval echo '${'$as_ac_Header'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12072 for ac_header in string.h strings.h
12074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 ac_res=`eval echo '${'$as_ac_Header'}'`
12082 { echo "$as_me:$LINENO: result: $ac_res" >&5
12083 echo "${ECHO_T}$ac_res" >&6; }
12085 # Is the header compilable?
12086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 $ac_includes_default
12095 #include <$ac_header>
12097 rm -f conftest.$ac_objext
12098 if { (ac_try="$ac_compile"
12099 case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_compile") 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_try") 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_header_compiler=yes
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_compiler=no
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 echo "${ECHO_T}$ac_header_compiler" >&6; }
12143 # Is the header present?
12144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <$ac_header>
12154 if { (ac_try="$ac_cpp conftest.$ac_ext"
12155 case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } >/dev/null; then
12167 if test -s conftest.err; then
12168 ac_cpp_err=$ac_c_preproc_warn_flag
12169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12176 if test -z "$ac_cpp_err"; then
12177 ac_header_preproc=yes
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_header_preproc=no
12185 rm -f conftest.err conftest.$ac_ext
12186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187 echo "${ECHO_T}$ac_header_preproc" >&6; }
12189 # So? What about this header?
12190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12196 ac_header_preproc=yes
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12212 ## ----------------------------------- ##
12213 ## Report this to llvmbugs@cs.uiuc.edu ##
12214 ## ----------------------------------- ##
12216 ) | sed "s/^/$as_me: WARNING: /" >&2
12219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 eval "$as_ac_Header=\$ac_header_preproc"
12226 ac_res=`eval echo '${'$as_ac_Header'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243 for ac_func in strchr index
12245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12259 #define $ac_func innocuous_$ac_func
12261 /* System header to define __stub macros and hopefully few prototypes,
12262 which can conflict with char $ac_func (); below.
12263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12264 <limits.h> exists even on freestanding compilers. */
12267 # include <limits.h>
12269 # include <assert.h>
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12281 /* The GNU C library defines this for functions which it implements
12282 to always fail with ENOSYS. Some functions are actually named
12283 something starting with __ and the normal name is an alias. */
12284 #if defined __stub_$ac_func || defined __stub___$ac_func
12291 return $ac_func ();
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 eval "$as_ac_var=yes"
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 eval "$as_ac_var=no"
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12341 ac_res=`eval echo '${'$as_ac_var'}'`
12342 { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12344 if test `eval echo '${'$as_ac_var'}'` = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12354 for ac_func in strrchr rindex
12356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12370 #define $ac_func innocuous_$ac_func
12372 /* System header to define __stub macros and hopefully few prototypes,
12373 which can conflict with char $ac_func (); below.
12374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375 <limits.h> exists even on freestanding compilers. */
12378 # include <limits.h>
12380 # include <assert.h>
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12392 /* The GNU C library defines this for functions which it implements
12393 to always fail with ENOSYS. Some functions are actually named
12394 something starting with __ and the normal name is an alias. */
12395 #if defined __stub_$ac_func || defined __stub___$ac_func
12402 return $ac_func ();
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_link") 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 eval "$as_ac_var=yes"
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 eval "$as_ac_var=no"
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12452 ac_res=`eval echo '${'$as_ac_var'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_var'}'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12465 for ac_func in memcpy bcopy
12467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481 #define $ac_func innocuous_$ac_func
12483 /* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12489 # include <limits.h>
12491 # include <assert.h>
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined __stub_$ac_func || defined __stub___$ac_func
12513 return $ac_func ();
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (ac_try="$ac_link"
12520 case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_link") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 eval "$as_ac_var=yes"
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12563 ac_res=`eval echo '${'$as_ac_var'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12566 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12576 for ac_func in memmove strcmp
12578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12592 #define $ac_func innocuous_$ac_func
12594 /* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char $ac_func (); below.
12596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597 <limits.h> exists even on freestanding compilers. */
12600 # include <limits.h>
12602 # include <assert.h>
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12614 /* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617 #if defined __stub_$ac_func || defined __stub___$ac_func
12624 return $ac_func ();
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_link") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644 { (case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_try") 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest$ac_exeext'
12654 { (case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_try") 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 eval "$as_ac_var=yes"
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 eval "$as_ac_var=no"
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12674 ac_res=`eval echo '${'$as_ac_var'}'`
12675 { echo "$as_me:$LINENO: result: $ac_res" >&5
12676 echo "${ECHO_T}$ac_res" >&6; }
12677 if test `eval echo '${'$as_ac_var'}'` = yes; then
12678 cat >>confdefs.h <<_ACEOF
12679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12688 for ac_func in closedir opendir readdir
12690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12704 #define $ac_func innocuous_$ac_func
12706 /* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char $ac_func (); below.
12708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709 <limits.h> exists even on freestanding compilers. */
12712 # include <limits.h>
12714 # include <assert.h>
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined __stub_$ac_func || defined __stub___$ac_func
12736 return $ac_func ();
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>conftest.er1
12750 grep -v '^ *+' conftest.er1 >conftest.err
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12786 ac_res=`eval echo '${'$as_ac_var'}'`
12787 { echo "$as_me:$LINENO: result: $ac_res" >&5
12788 echo "${ECHO_T}$ac_res" >&6; }
12789 if test `eval echo '${'$as_ac_var'}'` = yes; then
12790 cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12799 if test "$WITH_LLVMGCCDIR" = "default" ; then
12800 LLVMGCC="llvm-gcc${EXEEXT}"
12801 LLVMGXX="llvm-g++${EXEEXT}"
12802 LLVMGCCCOMMAND="$LLVMGCC"
12803 LLVMGXXCOMMAND="$LLVMGXX"
12804 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12806 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12808 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12809 set dummy $LLVMGCC; ac_word=$2
12810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12827 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 LLVMGCC=$ac_cv_path_LLVMGCC
12839 if test -n "$LLVMGCC"; then
12840 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12841 echo "${ECHO_T}$LLVMGCC" >&6; }
12843 { echo "$as_me:$LINENO: result: no" >&5
12844 echo "${ECHO_T}no" >&6; }
12848 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12849 set dummy $LLVMGXX; ac_word=$2
12850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 LLVMGXX=$ac_cv_path_LLVMGXX
12879 if test -n "$LLVMGXX"; then
12880 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12881 echo "${ECHO_T}$LLVMGXX" >&6; }
12883 { echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6; }
12889 if test -z "$LLVMGCC"; then
12890 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12891 LLVMGCCCOMMAND="$LLVMGCC"
12893 if test -z "$LLVMGXX"; then
12894 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12895 LLVMGXXCOMMAND="$LLVMGXX"
12902 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12904 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12909 # Check whether --with-llvmcc was given.
12910 if test "${with_llvmcc+set}" = set; then
12911 withval=$with_llvmcc;
12916 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12917 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12918 if test "$with_llvmcc" != "check"; then
12919 if (test "$with_llvmcc" != "llvm-gcc" &&
12920 test "$with_llvmcc" != "clang" &&
12921 test "$with_llvmcc" != "none"); then
12922 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12923 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12924 { (exit 1); exit 1; }; }
12926 WITH_LLVMCC="$with_llvmcc"
12927 elif test -n "$LLVMGCC"; then
12928 WITH_LLVMCC=llvm-gcc
12929 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12934 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12935 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12936 LLVMCC_OPTION=$WITH_LLVMCC
12939 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12940 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12953 if test "$GCC" != "yes" && test "$ICC" != "yes"
12955 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12956 echo "$as_me: error: gcc|icc required but not found" >&2;}
12957 { (exit 1); exit 1; }; }
12960 if test "$GXX" != "yes" && test "$IXX" != "yes"
12962 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12963 echo "$as_me: error: g++|icc required but not found" >&2;}
12964 { (exit 1); exit 1; }; }
12967 if test "$GCC" = "yes"
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #if !defined(__GNUC__) || __GNUC__ < 3
12971 #error Unsupported GCC version
12975 rm -f conftest.$ac_objext
12976 if { (ac_try="$ac_compile"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_compile") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13015 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13016 { (exit 1); exit 1; }; }
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 if test -z "$llvm_cv_gnu_make_command"
13024 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13025 echo "$as_me: error: GNU Make required but not found" >&2;}
13026 { (exit 1); exit 1; }; }
13029 { echo "$as_me:$LINENO: result: ok" >&5
13030 echo "${ECHO_T}ok" >&6; }
13032 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13033 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13034 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13036 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13038 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13039 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13043 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13044 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13045 if test "${ac_cv_lib_m_sin+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 ac_check_lib_save_LIBS=$LIBS
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_lib_m_sin=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13118 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13119 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13120 if test $ac_cv_lib_m_sin = yes; then
13121 cat >>confdefs.h <<_ACEOF
13122 #define HAVE_LIBM 1
13129 if test "$llvm_cv_os_type" = "MingW" ; then
13131 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13132 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13133 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-limagehlp $LIBS"
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13154 rm -f conftest.$ac_objext conftest$ac_exeext
13155 if { (ac_try="$ac_link"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_lib_imagehlp_main=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_imagehlp_main=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13201 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13202 if test $ac_cv_lib_imagehlp_main = yes; then
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_LIBIMAGEHLP 1
13207 LIBS="-limagehlp $LIBS"
13212 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13213 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13214 if test "${ac_cv_lib_psapi_main+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-lpsapi $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_link") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest$ac_exeext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_lib_psapi_main=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_cv_lib_psapi_main=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13281 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13282 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13283 if test $ac_cv_lib_psapi_main = yes; then
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_LIBPSAPI 1
13288 LIBS="-lpsapi $LIBS"
13294 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13295 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13296 if test "${ac_cv_search_dlopen+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 ac_func_search_save_LIBS=$LIBS
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13322 for ac_lib in '' dl; do
13323 if test -z "$ac_lib"; then
13324 ac_res="none required"
13327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13329 rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (ac_try="$ac_link"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_link") 2>conftest.er1
13338 grep -v '^ *+' conftest.er1 >conftest.err
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13344 { (case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_try") 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_try") 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_cv_search_dlopen=$ac_res
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13371 rm -f core conftest.err conftest.$ac_objext \
13373 if test "${ac_cv_search_dlopen+set}" = set; then
13377 if test "${ac_cv_search_dlopen+set}" = set; then
13380 ac_cv_search_dlopen=no
13382 rm conftest.$ac_ext
13383 LIBS=$ac_func_search_save_LIBS
13385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13387 ac_res=$ac_cv_search_dlopen
13388 if test "$ac_res" != no; then
13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_DLOPEN 1
13396 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13397 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13401 if test "$llvm_cv_enable_libffi" = "yes" ; then
13402 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13403 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13404 if test "${ac_cv_search_ffi_call+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 ac_func_search_save_LIBS=$LIBS
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13425 return ffi_call ();
13430 for ac_lib in '' ffi; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_search_ffi_call=$ac_res
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13479 rm -f core conftest.err conftest.$ac_objext \
13481 if test "${ac_cv_search_ffi_call+set}" = set; then
13485 if test "${ac_cv_search_ffi_call+set}" = set; then
13488 ac_cv_search_ffi_call=no
13490 rm conftest.$ac_ext
13491 LIBS=$ac_func_search_save_LIBS
13493 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13494 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13495 ac_res=$ac_cv_search_ffi_call
13496 if test "$ac_res" != no; then
13497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_FFI_CALL 1
13504 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13505 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13506 { (exit 1); exit 1; }; }
13511 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13512 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13513 if test "${ac_cv_search_mallinfo+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 ac_func_search_save_LIBS=$LIBS
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13524 /* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13534 return mallinfo ();
13539 for ac_lib in '' malloc; do
13540 if test -z "$ac_lib"; then
13541 ac_res="none required"
13544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (ac_try="$ac_link"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_link") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13561 { (case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_try") 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_search_mallinfo=$ac_res
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13588 rm -f core conftest.err conftest.$ac_objext \
13590 if test "${ac_cv_search_mallinfo+set}" = set; then
13594 if test "${ac_cv_search_mallinfo+set}" = set; then
13597 ac_cv_search_mallinfo=no
13599 rm conftest.$ac_ext
13600 LIBS=$ac_func_search_save_LIBS
13602 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13603 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13604 ac_res=$ac_cv_search_mallinfo
13605 if test "$ac_res" != no; then
13606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13608 cat >>confdefs.h <<\_ACEOF
13609 #define HAVE_MALLINFO 1
13615 if test "$ENABLE_THREADS" -eq 1 ; then
13617 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13618 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13619 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 ac_check_lib_save_LIBS=$LIBS
13623 LIBS="-lpthread $LIBS"
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13637 char pthread_mutex_init ();
13641 return pthread_mutex_init ();
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_lib_pthread_pthread_mutex_init=yes
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ac_cv_lib_pthread_pthread_mutex_init=no
13688 rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13692 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13694 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_LIBPTHREAD 1
13699 LIBS="-lpthread $LIBS"
13703 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13704 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13722 char pthread_mutex_lock ();
13726 return pthread_mutex_lock ();
13731 for ac_lib in '' pthread; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_link") 2>conftest.er1
13747 grep -v '^ *+' conftest.er1 >conftest.err
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_search_pthread_mutex_lock=$ac_res
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13780 rm -f core conftest.err conftest.$ac_objext \
13782 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13786 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13789 ac_cv_search_pthread_mutex_lock=no
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13795 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13796 ac_res=$ac_cv_search_pthread_mutex_lock
13797 if test "$ac_res" != no; then
13798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_PTHREAD_MUTEX_LOCK 1
13806 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13807 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13808 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 ac_func_search_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13825 char pthread_rwlock_init ();
13829 return pthread_rwlock_init ();
13834 for ac_lib in '' pthread; do
13835 if test -z "$ac_lib"; then
13836 ac_res="none required"
13839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_search_pthread_rwlock_init=$ac_res
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13883 rm -f core conftest.err conftest.$ac_objext \
13885 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13889 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13892 ac_cv_search_pthread_rwlock_init=no
13894 rm conftest.$ac_ext
13895 LIBS=$ac_func_search_save_LIBS
13897 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13898 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13899 ac_res=$ac_cv_search_pthread_rwlock_init
13900 if test "$ac_res" != no; then
13901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_PTHREAD_RWLOCK_INIT 1
13909 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13910 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13911 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 ac_func_search_save_LIBS=$LIBS
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13922 /* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13928 char pthread_getspecific ();
13932 return pthread_getspecific ();
13937 for ac_lib in '' pthread; do
13938 if test -z "$ac_lib"; then
13939 ac_res="none required"
13942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_link") 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_cv_search_pthread_getspecific=$ac_res
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13986 rm -f core conftest.err conftest.$ac_objext \
13988 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13992 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13995 ac_cv_search_pthread_getspecific=no
13997 rm conftest.$ac_ext
13998 LIBS=$ac_func_search_save_LIBS
14000 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14001 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14002 ac_res=$ac_cv_search_pthread_getspecific
14003 if test "$ac_res" != no; then
14004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14006 cat >>confdefs.h <<\_ACEOF
14007 #define HAVE_PTHREAD_GETSPECIFIC 1
14015 # Check whether --with-udis86 was given.
14016 if test "${with_udis86+set}" = set; then
14017 withval=$with_udis86;
14022 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14025 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14026 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14027 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-ludis86 $LIBS"
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_link") 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest$ac_exeext'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 ac_cv_lib_udis86_ud_init=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_cv_lib_udis86_ud_init=no
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14100 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14101 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14102 if test $ac_cv_lib_udis86_ud_init = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_LIBUDIS86 1
14107 LIBS="-ludis86 $LIBS"
14111 echo "Error! You need to have libudis86 around."
14123 cat >>confdefs.h <<_ACEOF
14124 #define USE_UDIS86 $USE_UDIS86
14129 # Check whether --with-oprofile was given.
14130 if test "${with_oprofile+set}" = set; then
14131 withval=$with_oprofile;
14135 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14136 no) llvm_cv_oppath=
14139 *) llvm_cv_oppath="${withval}/lib/oprofile"
14140 CPPFLAGS="-I${withval}/include";;
14142 if test -n "$llvm_cv_oppath" ; then
14143 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14144 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14145 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14146 if test "${ac_cv_search_bfd_init+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_func_search_save_LIBS=$LIBS
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14157 /* Override any GCC internal prototype to avoid an error.
14158 Use char because int might match the return type of a GCC
14159 builtin and then its argument prototype would still apply. */
14167 return bfd_init ();
14172 for ac_lib in '' bfd; do
14173 if test -z "$ac_lib"; then
14174 ac_res="none required"
14177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14179 rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_link") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest$ac_exeext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_search_bfd_init=$ac_res
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14221 rm -f core conftest.err conftest.$ac_objext \
14223 if test "${ac_cv_search_bfd_init+set}" = set; then
14227 if test "${ac_cv_search_bfd_init+set}" = set; then
14230 ac_cv_search_bfd_init=no
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14236 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14237 ac_res=$ac_cv_search_bfd_init
14238 if test "$ac_res" != no; then
14239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14243 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14244 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14245 if test "${ac_cv_search_op_open_agent+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 ac_func_search_save_LIBS=$LIBS
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14262 char op_open_agent ();
14266 return op_open_agent ();
14271 for ac_lib in '' opagent; do
14272 if test -z "$ac_lib"; then
14273 ac_res="none required"
14276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_link") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest$ac_exeext'
14303 { (case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_try") 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_search_op_open_agent=$ac_res
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14320 rm -f core conftest.err conftest.$ac_objext \
14322 if test "${ac_cv_search_op_open_agent+set}" = set; then
14326 if test "${ac_cv_search_op_open_agent+set}" = set; then
14329 ac_cv_search_op_open_agent=no
14331 rm conftest.$ac_ext
14332 LIBS=$ac_func_search_save_LIBS
14334 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14335 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14336 ac_res=$ac_cv_search_op_open_agent
14337 if test "$ac_res" != no; then
14338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14342 echo "Error! You need to have libopagent around."
14347 if test "${ac_cv_header_opagent_h+set}" = set; then
14348 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14349 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14350 if test "${ac_cv_header_opagent_h+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14354 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14356 # Is the header compilable?
14357 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14358 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14366 #include <opagent.h>
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_compile") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_header_compiler=yes
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_compiler=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6; }
14414 # Is the header present?
14415 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14416 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <opagent.h>
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_c_preproc_warn_flag
14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14447 if test -z "$ac_cpp_err"; then
14448 ac_header_preproc=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_header_preproc=no
14456 rm -f conftest.err conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6; }
14460 # So? What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14463 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14470 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14483 ## ----------------------------------- ##
14484 ## Report this to llvmbugs@cs.uiuc.edu ##
14485 ## ----------------------------------- ##
14487 ) | sed "s/^/$as_me: WARNING: /" >&2
14490 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14491 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14492 if test "${ac_cv_header_opagent_h+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 ac_cv_header_opagent_h=$ac_header_preproc
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14498 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14501 if test $ac_cv_header_opagent_h = yes; then
14505 echo "Error! You need to have opagent.h around."
14521 cat >>confdefs.h <<_ACEOF
14522 #define USE_OPROFILE $USE_OPROFILE
14532 ac_header_dirent=no
14533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14534 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14535 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14536 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <sys/types.h>
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14567 grep -v '^ *+' conftest.er1 >conftest.err
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 eval "$as_ac_Header=yes"
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_Header=no"
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 ac_res=`eval echo '${'$as_ac_Header'}'`
14603 { echo "$as_me:$LINENO: result: $ac_res" >&5
14604 echo "${ECHO_T}$ac_res" >&6; }
14605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606 cat >>confdefs.h <<_ACEOF
14607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14610 ac_header_dirent=$ac_hdr; break
14614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14615 if test $ac_header_dirent = dirent.h; then
14616 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14618 if test "${ac_cv_search_opendir+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_func_search_save_LIBS=$LIBS
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14644 for ac_lib in '' dir; do
14645 if test -z "$ac_lib"; then
14646 ac_res="none required"
14649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
14665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest$ac_exeext'
14676 { (case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_try") 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_search_opendir=$ac_res
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14693 rm -f core conftest.err conftest.$ac_objext \
14695 if test "${ac_cv_search_opendir+set}" = set; then
14699 if test "${ac_cv_search_opendir+set}" = set; then
14702 ac_cv_search_opendir=no
14704 rm conftest.$ac_ext
14705 LIBS=$ac_func_search_save_LIBS
14707 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14708 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14709 ac_res=$ac_cv_search_opendir
14710 if test "$ac_res" != no; then
14711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14716 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14717 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14718 if test "${ac_cv_search_opendir+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 ac_func_search_save_LIBS=$LIBS
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14729 /* Override any GCC internal prototype to avoid an error.
14730 Use char because int might match the return type of a GCC
14731 builtin and then its argument prototype would still apply. */
14744 for ac_lib in '' x; do
14745 if test -z "$ac_lib"; then
14746 ac_res="none required"
14749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14751 rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (ac_try="$ac_link"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_link") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766 { (case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_try") 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_try") 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_search_opendir=$ac_res
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14793 rm -f core conftest.err conftest.$ac_objext \
14795 if test "${ac_cv_search_opendir+set}" = set; then
14799 if test "${ac_cv_search_opendir+set}" = set; then
14802 ac_cv_search_opendir=no
14804 rm conftest.$ac_ext
14805 LIBS=$ac_func_search_save_LIBS
14807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14809 ac_res=$ac_cv_search_opendir
14810 if test "$ac_res" != no; then
14811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14817 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14818 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14819 if test "${ac_cv_header_mmap_anon+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 ac_cpp='$CPP $CPPFLAGS'
14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 #include <sys/mman.h>
14835 #include <unistd.h>
14840 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14845 rm -f conftest.$ac_objext
14846 if { (ac_try="$ac_compile"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_compile") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest.$ac_objext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_header_mmap_anon=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_cv_header_mmap_anon=no
14887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14896 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14897 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14898 if test "$ac_cv_header_mmap_anon" = yes; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_MMAP_ANONYMOUS 1
14906 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14907 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14908 if test "${ac_cv_header_stat_broken+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <sys/types.h>
14918 #include <sys/stat.h>
14920 #if defined S_ISBLK && defined S_IFDIR
14921 # if S_ISBLK (S_IFDIR)
14926 #if defined S_ISBLK && defined S_IFCHR
14927 # if S_ISBLK (S_IFCHR)
14932 #if defined S_ISLNK && defined S_IFREG
14933 # if S_ISLNK (S_IFREG)
14938 #if defined S_ISSOCK && defined S_IFREG
14939 # if S_ISSOCK (S_IFREG)
14945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14946 $EGREP "You lose" >/dev/null 2>&1; then
14947 ac_cv_header_stat_broken=yes
14949 ac_cv_header_stat_broken=no
14954 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14955 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14956 if test $ac_cv_header_stat_broken = yes; then
14958 cat >>confdefs.h <<\_ACEOF
14959 #define STAT_MACROS_BROKEN 1
14964 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_stdc+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 cat >conftest.$ac_ext <<_ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 #include <stdlib.h>
14976 #include <stdarg.h>
14977 #include <string.h>
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_try") 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_cv_header_stdc=yes
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_header_stdc=no
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 if test $ac_cv_header_stdc = yes; then
15033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <string.h>
15043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15044 $EGREP "memchr" >/dev/null 2>&1; then
15047 ac_cv_header_stdc=no
15053 if test $ac_cv_header_stdc = yes; then
15054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 #include <stdlib.h>
15064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15065 $EGREP "free" >/dev/null 2>&1; then
15068 ac_cv_header_stdc=no
15074 if test $ac_cv_header_stdc = yes; then
15075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15076 if test "$cross_compiling" = yes; then
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 #include <stdlib.h>
15087 #if ((' ' & 0x0FF) == 0x020)
15088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15091 # define ISLOWER(c) \
15092 (('a' <= (c) && (c) <= 'i') \
15093 || ('j' <= (c) && (c) <= 'r') \
15094 || ('s' <= (c) && (c) <= 'z'))
15095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15103 for (i = 0; i < 256; i++)
15104 if (XOR (islower (i), ISLOWER (i))
15105 || toupper (i) != TOUPPER (i))
15110 rm -f conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121 { (case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_try") 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15132 echo "$as_me: program exited with status $ac_status" >&5
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 ( exit $ac_status )
15137 ac_cv_header_stdc=no
15139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15147 if test $ac_cv_header_stdc = yes; then
15149 cat >>confdefs.h <<\_ACEOF
15150 #define STDC_HEADERS 1
15155 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #include <sys/types.h>
15167 #include <sys/wait.h>
15168 #ifndef WEXITSTATUS
15169 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15180 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15185 rm -f conftest.$ac_objext
15186 if { (ac_try="$ac_compile"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_compile") 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_try") 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_cv_header_sys_wait_h=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_header_sys_wait_h=no
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15231 if test $ac_cv_header_sys_wait_h = yes; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_SYS_WAIT_H 1
15239 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15241 if test "${ac_cv_header_time+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include <sys/types.h>
15251 #include <sys/time.h>
15257 if ((struct tm *) 0)
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_compile") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1 >conftest.err
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } &&
15277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest.$ac_objext'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_header_time=yes
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_cv_header_time=no
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15308 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15309 if test $ac_cv_header_time = yes; then
15311 cat >>confdefs.h <<\_ACEOF
15312 #define TIME_WITH_SYS_TIME 1
15324 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15337 # Is the header compilable?
15338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15340 cat >conftest.$ac_ext <<_ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 $ac_includes_default
15347 #include <$ac_header>
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_header_compiler=yes
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_header_compiler=no
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15393 echo "${ECHO_T}$ac_header_compiler" >&6; }
15395 # Is the header present?
15396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 #include <$ac_header>
15406 if { (ac_try="$ac_cpp conftest.$ac_ext"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } >/dev/null; then
15419 if test -s conftest.err; then
15420 ac_cpp_err=$ac_c_preproc_warn_flag
15421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15428 if test -z "$ac_cpp_err"; then
15429 ac_header_preproc=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_header_preproc=no
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15448 ac_header_preproc=yes
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15464 ## ----------------------------------- ##
15465 ## Report this to llvmbugs@cs.uiuc.edu ##
15466 ## ----------------------------------- ##
15468 ) | sed "s/^/$as_me: WARNING: /" >&2
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 eval "$as_ac_Header=\$ac_header_preproc"
15478 ac_res=`eval echo '${'$as_ac_Header'}'`
15479 { echo "$as_me:$LINENO: result: $ac_res" >&5
15480 echo "${ECHO_T}$ac_res" >&6; }
15483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15498 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15511 # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 $ac_includes_default
15521 #include <$ac_header>
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538 { (case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_try") 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try='test -s conftest.$ac_objext'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_header_compiler=yes
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_header_compiler=no
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567 echo "${ECHO_T}$ac_header_compiler" >&6; }
15569 # Is the header present?
15570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 #include <$ac_header>
15580 if { (ac_try="$ac_cpp conftest.$ac_ext"
15581 case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15588 grep -v '^ *+' conftest.er1 >conftest.err
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } >/dev/null; then
15593 if test -s conftest.err; then
15594 ac_cpp_err=$ac_c_preproc_warn_flag
15595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15602 if test -z "$ac_cpp_err"; then
15603 ac_header_preproc=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_preproc=no
15611 rm -f conftest.err conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6; }
15615 # So? What about this header?
15616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15622 ac_header_preproc=yes
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15638 ## ----------------------------------- ##
15639 ## Report this to llvmbugs@cs.uiuc.edu ##
15640 ## ----------------------------------- ##
15642 ) | sed "s/^/$as_me: WARNING: /" >&2
15645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 eval "$as_ac_Header=\$ac_header_preproc"
15652 ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654 echo "${ECHO_T}$ac_res" >&6; }
15657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15658 cat >>confdefs.h <<_ACEOF
15659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15668 for ac_header in utime.h windows.h
15670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 ac_res=`eval echo '${'$as_ac_Header'}'`
15678 { echo "$as_me:$LINENO: result: $ac_res" >&5
15679 echo "${ECHO_T}$ac_res" >&6; }
15681 # Is the header compilable?
15682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 $ac_includes_default
15691 #include <$ac_header>
15693 rm -f conftest.$ac_objext
15694 if { (ac_try="$ac_compile"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_compile") 2>conftest.er1
15702 grep -v '^ *+' conftest.er1 >conftest.err
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15708 { (case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_try") 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_try") 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_header_compiler=yes
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_header_compiler=no
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737 echo "${ECHO_T}$ac_header_compiler" >&6; }
15739 # Is the header present?
15740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <$ac_header>
15750 if { (ac_try="$ac_cpp conftest.$ac_ext"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } >/dev/null; then
15763 if test -s conftest.err; then
15764 ac_cpp_err=$ac_c_preproc_warn_flag
15765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15772 if test -z "$ac_cpp_err"; then
15773 ac_header_preproc=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_header_preproc=no
15781 rm -f conftest.err conftest.$ac_ext
15782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15783 echo "${ECHO_T}$ac_header_preproc" >&6; }
15785 # So? What about this header?
15786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15792 ac_header_preproc=yes
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15808 ## ----------------------------------- ##
15809 ## Report this to llvmbugs@cs.uiuc.edu ##
15810 ## ----------------------------------- ##
15812 ) | sed "s/^/$as_me: WARNING: /" >&2
15815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 eval "$as_ac_Header=\$ac_header_preproc"
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828 cat >>confdefs.h <<_ACEOF
15829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15853 # Is the header compilable?
15854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 $ac_includes_default
15863 #include <$ac_header>
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880 { (case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_try") 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_header_compiler=no
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909 echo "${ECHO_T}$ac_header_compiler" >&6; }
15911 # Is the header present?
15912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 #include <$ac_header>
15922 if { (ac_try="$ac_cpp conftest.$ac_ext"
15923 case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15930 grep -v '^ *+' conftest.er1 >conftest.err
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_c_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15944 if test -z "$ac_cpp_err"; then
15945 ac_header_preproc=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_header_preproc=no
15953 rm -f conftest.err conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6; }
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15980 ## ----------------------------------- ##
15981 ## Report this to llvmbugs@cs.uiuc.edu ##
15982 ## ----------------------------------- ##
15984 ) | sed "s/^/$as_me: WARNING: /" >&2
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 eval "$as_ac_Header=\$ac_header_preproc"
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16000 cat >>confdefs.h <<_ACEOF
16001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16025 # Is the header compilable?
16026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 $ac_includes_default
16035 #include <$ac_header>
16037 rm -f conftest.$ac_objext
16038 if { (ac_try="$ac_compile"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_compile") 2>conftest.er1
16046 grep -v '^ *+' conftest.er1 >conftest.err
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_try") 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_header_compiler=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_header_compiler=no
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081 echo "${ECHO_T}$ac_header_compiler" >&6; }
16083 # Is the header present?
16084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 #include <$ac_header>
16094 if { (ac_try="$ac_cpp conftest.$ac_ext"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev/null; then
16107 if test -s conftest.err; then
16108 ac_cpp_err=$ac_c_preproc_warn_flag
16109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16116 if test -z "$ac_cpp_err"; then
16117 ac_header_preproc=yes
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_header_preproc=no
16125 rm -f conftest.err conftest.$ac_ext
16126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127 echo "${ECHO_T}$ac_header_preproc" >&6; }
16129 # So? What about this header?
16130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136 ac_header_preproc=yes
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16152 ## ----------------------------------- ##
16153 ## Report this to llvmbugs@cs.uiuc.edu ##
16154 ## ----------------------------------- ##
16156 ) | sed "s/^/$as_me: WARNING: /" >&2
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 eval "$as_ac_Header=\$ac_header_preproc"
16166 ac_res=`eval echo '${'$as_ac_Header'}'`
16167 { echo "$as_me:$LINENO: result: $ac_res" >&5
16168 echo "${ECHO_T}$ac_res" >&6; }
16171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16180 if test "$ENABLE_THREADS" -eq 1 ; then
16182 for ac_header in pthread.h
16184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16195 # Is the header compilable?
16196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16205 #include <$ac_header>
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_header_compiler=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_header_compiler=no
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 #include <$ac_header>
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null; then
16277 if test -s conftest.err; then
16278 ac_cpp_err=$ac_c_preproc_warn_flag
16279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16286 if test -z "$ac_cpp_err"; then
16287 ac_header_preproc=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_header_preproc=no
16295 rm -f conftest.err conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297 echo "${ECHO_T}$ac_header_preproc" >&6; }
16299 # So? What about this header?
16300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306 ac_header_preproc=yes
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16322 ## ----------------------------------- ##
16323 ## Report this to llvmbugs@cs.uiuc.edu ##
16324 ## ----------------------------------- ##
16326 ) | sed "s/^/$as_me: WARNING: /" >&2
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 eval "$as_ac_Header=\$ac_header_preproc"
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16359 if test "$llvm_cv_enable_libffi" = "yes" ; then
16362 for ac_header in ffi.h ffi/ffi.h
16364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 ac_res=`eval echo '${'$as_ac_Header'}'`
16372 { echo "$as_me:$LINENO: result: $ac_res" >&5
16373 echo "${ECHO_T}$ac_res" >&6; }
16375 # Is the header compilable?
16376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 $ac_includes_default
16385 #include <$ac_header>
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_header_compiler=yes
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_header_compiler=no
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431 echo "${ECHO_T}$ac_header_compiler" >&6; }
16433 # Is the header present?
16434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <$ac_header>
16444 if { (ac_try="$ac_cpp conftest.$ac_ext"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16452 grep -v '^ *+' conftest.er1 >conftest.err
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } >/dev/null; then
16457 if test -s conftest.err; then
16458 ac_cpp_err=$ac_c_preproc_warn_flag
16459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16466 if test -z "$ac_cpp_err"; then
16467 ac_header_preproc=yes
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 ac_header_preproc=no
16475 rm -f conftest.err conftest.$ac_ext
16476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16477 echo "${ECHO_T}$ac_header_preproc" >&6; }
16479 # So? What about this header?
16480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16486 ac_header_preproc=yes
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16502 ## ----------------------------------- ##
16503 ## Report this to llvmbugs@cs.uiuc.edu ##
16504 ## ----------------------------------- ##
16506 ) | sed "s/^/$as_me: WARNING: /" >&2
16509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 eval "$as_ac_Header=\$ac_header_preproc"
16516 ac_res=`eval echo '${'$as_ac_Header'}'`
16517 { echo "$as_me:$LINENO: result: $ac_res" >&5
16518 echo "${ECHO_T}$ac_res" >&6; }
16521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16522 cat >>confdefs.h <<_ACEOF
16523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16535 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16536 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16537 if test "${ac_cv_huge_val_sanity+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 ac_cpp='$CXXCPP $CPPFLAGS'
16543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16547 ac_save_CXXFLAGS=$CXXFLAGS
16549 if test "$cross_compiling" = yes; then
16550 ac_cv_huge_val_sanity=yes
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16562 double x = HUGE_VAL; return x != x;
16567 rm -f conftest$ac_exeext
16568 if { (ac_try="$ac_link"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_link") 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_huge_val_sanity=yes
16589 echo "$as_me: program exited with status $ac_status" >&5
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ( exit $ac_status )
16594 ac_cv_huge_val_sanity=no
16596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16600 CXXFLAGS=$ac_save_CXXFLAGS
16602 ac_cpp='$CPP $CPPFLAGS'
16603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16609 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16610 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16611 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16614 { echo "$as_me:$LINENO: checking for pid_t" >&5
16615 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16616 if test "${ac_cv_type_pid_t+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16626 typedef pid_t ac__type_new_;
16630 if ((ac__type_new_ *) 0)
16632 if (sizeof (ac__type_new_))
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_type_pid_t=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_type_pid_t=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16683 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16684 if test $ac_cv_type_pid_t = yes; then
16688 cat >>confdefs.h <<_ACEOF
16694 { echo "$as_me:$LINENO: checking for size_t" >&5
16695 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16696 if test "${ac_cv_type_size_t+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 $ac_includes_default
16706 typedef size_t ac__type_new_;
16710 if ((ac__type_new_ *) 0)
16712 if (sizeof (ac__type_new_))
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_type_size_t=yes
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 ac_cv_type_size_t=no
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16763 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16764 if test $ac_cv_type_size_t = yes; then
16768 cat >>confdefs.h <<_ACEOF
16769 #define size_t unsigned int
16775 cat >>confdefs.h <<_ACEOF
16776 #define RETSIGTYPE void
16779 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16780 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16781 if test "${ac_cv_struct_tm+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 cat >conftest.$ac_ext <<_ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <sys/types.h>
16796 struct tm *tp; tp->tm_sec;
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_struct_tm=time.h
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_cv_struct_tm=sys/time.h
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16846 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16847 if test $ac_cv_struct_tm = sys/time.h; then
16849 cat >>confdefs.h <<\_ACEOF
16850 #define TM_IN_SYS_TIME 1
16855 { echo "$as_me:$LINENO: checking for int64_t" >&5
16856 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16857 if test "${ac_cv_type_int64_t+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 $ac_includes_default
16867 typedef int64_t ac__type_new_;
16871 if ((ac__type_new_ *) 0)
16873 if (sizeof (ac__type_new_))
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_cv_type_int64_t=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_cv_type_int64_t=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16924 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16925 if test $ac_cv_type_int64_t = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_INT64_T 1
16933 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16934 echo "$as_me: error: Type int64_t required but not found" >&2;}
16935 { (exit 1); exit 1; }; }
16938 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16939 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16940 if test "${ac_cv_type_uint64_t+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 $ac_includes_default
16950 typedef uint64_t ac__type_new_;
16954 if ((ac__type_new_ *) 0)
16956 if (sizeof (ac__type_new_))
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977 { (case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest.$ac_objext'
16987 { (case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_try") 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_type_uint64_t=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_type_uint64_t=no
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17007 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17008 if test $ac_cv_type_uint64_t = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_UINT64_T 1
17016 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17017 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17018 if test "${ac_cv_type_u_int64_t+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 $ac_includes_default
17028 typedef u_int64_t ac__type_new_;
17032 if ((ac__type_new_ *) 0)
17034 if (sizeof (ac__type_new_))
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_compile") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_type_u_int64_t=yes
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_cv_type_u_int64_t=no
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17085 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17086 if test $ac_cv_type_u_int64_t = yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define HAVE_U_INT64_T 1
17094 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17095 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17096 { (exit 1); exit 1; }; }
17110 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126 #define $ac_func innocuous_$ac_func
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char $ac_func (); below.
17130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131 <limits.h> exists even on freestanding compilers. */
17134 # include <limits.h>
17136 # include <assert.h>
17141 /* Override any GCC internal prototype to avoid an error.
17142 Use char because int might match the return type of a GCC
17143 builtin and then its argument prototype would still apply. */
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined __stub_$ac_func || defined __stub___$ac_func
17158 return $ac_func ();
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17172 grep -v '^ *+' conftest.er1 >conftest.err
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; } &&
17187 { ac_try='test -s conftest$ac_exeext'
17188 { (case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_try") 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 eval "$as_ac_var=no"
17205 rm -f core conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17208 ac_res=`eval echo '${'$as_ac_var'}'`
17209 { echo "$as_me:$LINENO: result: $ac_res" >&5
17210 echo "${ECHO_T}$ac_res" >&6; }
17211 if test `eval echo '${'$as_ac_var'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17223 for ac_func in powf fmodf strtof round
17225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17239 #define $ac_func innocuous_$ac_func
17241 /* System header to define __stub macros and hopefully few prototypes,
17242 which can conflict with char $ac_func (); below.
17243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244 <limits.h> exists even on freestanding compilers. */
17247 # include <limits.h>
17249 # include <assert.h>
17254 /* Override any GCC internal prototype to avoid an error.
17255 Use char because int might match the return type of a GCC
17256 builtin and then its argument prototype would still apply. */
17261 /* The GNU C library defines this for functions which it implements
17262 to always fail with ENOSYS. Some functions are actually named
17263 something starting with __ and the normal name is an alias. */
17264 #if defined __stub_$ac_func || defined __stub___$ac_func
17271 return $ac_func ();
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17291 { (case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_try") 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; } &&
17300 { ac_try='test -s conftest$ac_exeext'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 eval "$as_ac_var=yes"
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 eval "$as_ac_var=no"
17318 rm -f core conftest.err conftest.$ac_objext \
17319 conftest$ac_exeext conftest.$ac_ext
17321 ac_res=`eval echo '${'$as_ac_var'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17324 if test `eval echo '${'$as_ac_var'}'` = yes; then
17325 cat >>confdefs.h <<_ACEOF
17326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17337 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define $ac_func innocuous_$ac_func
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char $ac_func (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17361 # include <limits.h>
17363 # include <assert.h>
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17375 /* The GNU C library defines this for functions which it implements
17376 to always fail with ENOSYS. Some functions are actually named
17377 something starting with __ and the normal name is an alias. */
17378 #if defined __stub_$ac_func || defined __stub___$ac_func
17385 return $ac_func ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17405 { (case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_try") 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest$ac_exeext'
17415 { (case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_try") 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 eval "$as_ac_var=yes"
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 eval "$as_ac_var=no"
17432 rm -f core conftest.err conftest.$ac_objext \
17433 conftest$ac_exeext conftest.$ac_ext
17435 ac_res=`eval echo '${'$as_ac_var'}'`
17436 { echo "$as_me:$LINENO: result: $ac_res" >&5
17437 echo "${ECHO_T}$ac_res" >&6; }
17438 if test `eval echo '${'$as_ac_var'}'` = yes; then
17439 cat >>confdefs.h <<_ACEOF
17440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17449 for ac_func in isatty mkdtemp mkstemp
17451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17465 #define $ac_func innocuous_$ac_func
17467 /* System header to define __stub macros and hopefully few prototypes,
17468 which can conflict with char $ac_func (); below.
17469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470 <limits.h> exists even on freestanding compilers. */
17473 # include <limits.h>
17475 # include <assert.h>
17480 /* Override any GCC internal prototype to avoid an error.
17481 Use char because int might match the return type of a GCC
17482 builtin and then its argument prototype would still apply. */
17487 /* The GNU C library defines this for functions which it implements
17488 to always fail with ENOSYS. Some functions are actually named
17489 something starting with __ and the normal name is an alias. */
17490 #if defined __stub_$ac_func || defined __stub___$ac_func
17497 return $ac_func ();
17502 rm -f conftest.$ac_objext conftest$ac_exeext
17503 if { (ac_try="$ac_link"
17504 case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_link") 2>conftest.er1
17511 grep -v '^ *+' conftest.er1 >conftest.err
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17517 { (case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_try") 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest$ac_exeext'
17527 { (case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_try") 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 eval "$as_ac_var=yes"
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 eval "$as_ac_var=no"
17544 rm -f core conftest.err conftest.$ac_objext \
17545 conftest$ac_exeext conftest.$ac_ext
17547 ac_res=`eval echo '${'$as_ac_var'}'`
17548 { echo "$as_me:$LINENO: result: $ac_res" >&5
17549 echo "${ECHO_T}$ac_res" >&6; }
17550 if test `eval echo '${'$as_ac_var'}'` = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17563 for ac_func in mktemp realpath sbrk setrlimit strdup
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17579 #define $ac_func innocuous_$ac_func
17581 /* System header to define __stub macros and hopefully few prototypes,
17582 which can conflict with char $ac_func (); below.
17583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584 <limits.h> exists even on freestanding compilers. */
17587 # include <limits.h>
17589 # include <assert.h>
17594 /* Override any GCC internal prototype to avoid an error.
17595 Use char because int might match the return type of a GCC
17596 builtin and then its argument prototype would still apply. */
17601 /* The GNU C library defines this for functions which it implements
17602 to always fail with ENOSYS. Some functions are actually named
17603 something starting with __ and the normal name is an alias. */
17604 #if defined __stub_$ac_func || defined __stub___$ac_func
17611 return $ac_func ();
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17625 grep -v '^ *+' conftest.er1 >conftest.err
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } &&
17630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17631 { (case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_try") 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 eval "$as_ac_var=yes"
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 eval "$as_ac_var=no"
17658 rm -f core conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17661 ac_res=`eval echo '${'$as_ac_var'}'`
17662 { echo "$as_me:$LINENO: result: $ac_res" >&5
17663 echo "${ECHO_T}$ac_res" >&6; }
17664 if test `eval echo '${'$as_ac_var'}'` = yes; then
17665 cat >>confdefs.h <<_ACEOF
17666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17676 for ac_func in strerror strerror_r strerror_s setenv
17678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 cat >conftest.$ac_ext <<_ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define $ac_func innocuous_$ac_func
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char $ac_func (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17700 # include <limits.h>
17702 # include <assert.h>
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined __stub_$ac_func || defined __stub___$ac_func
17724 return $ac_func ();
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17744 { (case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_try") 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 eval "$as_ac_var=yes"
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 eval "$as_ac_var=no"
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17774 ac_res=`eval echo '${'$as_ac_var'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_var'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17789 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17805 #define $ac_func innocuous_$ac_func
17807 /* System header to define __stub macros and hopefully few prototypes,
17808 which can conflict with char $ac_func (); below.
17809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17810 <limits.h> exists even on freestanding compilers. */
17813 # include <limits.h>
17815 # include <assert.h>
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17827 /* The GNU C library defines this for functions which it implements
17828 to always fail with ENOSYS. Some functions are actually named
17829 something starting with __ and the normal name is an alias. */
17830 #if defined __stub_$ac_func || defined __stub___$ac_func
17837 return $ac_func ();
17842 rm -f conftest.$ac_objext conftest$ac_exeext
17843 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 eval "$as_ac_var=yes"
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 eval "$as_ac_var=no"
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17887 ac_res=`eval echo '${'$as_ac_var'}'`
17888 { echo "$as_me:$LINENO: result: $ac_res" >&5
17889 echo "${ECHO_T}$ac_res" >&6; }
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17902 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918 #define $ac_func innocuous_$ac_func
17920 /* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char $ac_func (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17926 # include <limits.h>
17928 # include <assert.h>
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined __stub_$ac_func || defined __stub___$ac_func
17950 return $ac_func ();
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17964 grep -v '^ *+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_try") 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 eval "$as_ac_var=yes"
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 eval "$as_ac_var=no"
17997 rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
18000 ac_res=`eval echo '${'$as_ac_var'}'`
18001 { echo "$as_me:$LINENO: result: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18003 if test `eval echo '${'$as_ac_var'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18011 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18012 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18013 if test "${llvm_cv_c_printf_a+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 ac_cpp='$CPP $CPPFLAGS'
18018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022 if test "$cross_compiling" = yes; then
18023 llvmac_cv_c_printf_a=no
18025 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18034 #include <stdlib.h>
18040 volatile double A, B;
18044 sprintf(Buffer, "%a", A);
18048 if (A != 0x1.999999999999ap-4)
18055 rm -f conftest$ac_exeext
18056 if { (ac_try="$ac_link"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_link") 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 llvm_cv_c_printf_a=yes
18077 echo "$as_me: program exited with status $ac_status" >&5
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 ( exit $ac_status )
18082 llvmac_cv_c_printf_a=no
18084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18089 ac_cpp='$CPP $CPPFLAGS'
18090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18095 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18096 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18097 if test "$llvm_cv_c_printf_a" = "yes"; then
18099 cat >>confdefs.h <<\_ACEOF
18100 #define HAVE_PRINTF_A 1
18106 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18107 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18108 if test "${ac_cv_func_rand48+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 ac_cpp='$CXXCPP $CPPFLAGS'
18113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include <stdlib.h>
18127 srand48(0);lrand48();drand48();
18132 rm -f conftest.$ac_objext
18133 if { (ac_try="$ac_compile"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_compile") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest.$ac_objext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_func_rand48=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_func_rand48=no
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18176 ac_cpp='$CPP $CPPFLAGS'
18177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18182 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18183 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18185 if test "$ac_cv_func_rand48" = "yes" ; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE_RAND48 1
18195 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18196 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18197 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_cpp='$CXXCPP $CPPFLAGS'
18202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18221 rm -f conftest.$ac_objext
18222 if { (ac_try="$ac_compile"
18223 case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_compile") 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18236 { (case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_try") 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest.$ac_objext'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_cv_func_isnan_in_math_h=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_cv_func_isnan_in_math_h=no
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265 ac_cpp='$CPP $CPPFLAGS'
18266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18272 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18275 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18277 cat >>confdefs.h <<\_ACEOF
18278 #define HAVE_ISNAN_IN_MATH_H 1
18283 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18284 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18285 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 ac_cpp='$CXXCPP $CPPFLAGS'
18290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_compile") 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_func_isnan_in_cmath=yes
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_func_isnan_in_cmath=no
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353 ac_cpp='$CPP $CPPFLAGS'
18354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18359 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18360 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18362 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_ISNAN_IN_CMATH 1
18370 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18371 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18372 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 ac_cpp='$CXXCPP $CPPFLAGS'
18377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18391 float f; std::isnan(f);
18396 rm -f conftest.$ac_objext
18397 if { (ac_try="$ac_compile"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_compile") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_func_std_isnan_in_cmath=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_func_std_isnan_in_cmath=no
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 ac_cpp='$CPP $CPPFLAGS'
18441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18446 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18447 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18449 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE_STD_ISNAN_IN_CMATH 1
18458 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18459 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18460 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 ac_cpp='$CXXCPP $CPPFLAGS'
18465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_compile") 2>conftest.er1
18493 grep -v '^ *+' conftest.er1 >conftest.err
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18499 { (case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_try") 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest.$ac_objext'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_func_isinf_in_math_h=yes
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_func_isinf_in_math_h=no
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528 ac_cpp='$CPP $CPPFLAGS'
18529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18535 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18537 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_ISINF_IN_MATH_H 1
18545 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18546 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18547 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 ac_cpp='$CXXCPP $CPPFLAGS'
18552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18571 rm -f conftest.$ac_objext
18572 if { (ac_try="$ac_compile"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_func_isinf_in_cmath=yes
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_func_isinf_in_cmath=no
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615 ac_cpp='$CPP $CPPFLAGS'
18616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18621 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18622 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18624 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE_ISINF_IN_CMATH 1
18632 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18633 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18634 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 ac_cpp='$CXXCPP $CPPFLAGS'
18639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18653 float f; std::isinf(f)}
18658 rm -f conftest.$ac_objext
18659 if { (ac_try="$ac_compile"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_compile") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest.$ac_objext'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 ac_cv_func_std_isinf_in_cmath=yes
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_cv_func_std_isinf_in_cmath=no
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18708 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18709 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18711 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18713 cat >>confdefs.h <<\_ACEOF
18714 #define HAVE_STD_ISINF_IN_CMATH 1
18719 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18720 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18721 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 ac_cpp='$CXXCPP $CPPFLAGS'
18726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 #include <ieeefp.h>
18740 float f; finite(f);
18745 rm -f conftest.$ac_objext
18746 if { (ac_try="$ac_compile"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest.$ac_objext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_func_finite_in_ieeefp_h=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_func_finite_in_ieeefp_h=no
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 ac_cpp='$CPP $CPPFLAGS'
18790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18795 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18796 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18798 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18800 cat >>confdefs.h <<\_ACEOF
18801 #define HAVE_FINITE_IN_IEEEFP_H 1
18808 if test "$llvm_cv_platform_type" = "Unix" ; then
18811 for ac_header in stdlib.h unistd.h
18813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 ac_res=`eval echo '${'$as_ac_Header'}'`
18821 { echo "$as_me:$LINENO: result: $ac_res" >&5
18822 echo "${ECHO_T}$ac_res" >&6; }
18824 # Is the header compilable?
18825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 $ac_includes_default
18834 #include <$ac_header>
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_compile") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 ac_header_compiler=yes
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18875 ac_header_compiler=no
18878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18880 echo "${ECHO_T}$ac_header_compiler" >&6; }
18882 # Is the header present?
18883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 #include <$ac_header>
18893 if { (ac_try="$ac_cpp conftest.$ac_ext"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } >/dev/null; then
18906 if test -s conftest.err; then
18907 ac_cpp_err=$ac_c_preproc_warn_flag
18908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18915 if test -z "$ac_cpp_err"; then
18916 ac_header_preproc=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_header_preproc=no
18924 rm -f conftest.err conftest.$ac_ext
18925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18926 echo "${ECHO_T}$ac_header_preproc" >&6; }
18928 # So? What about this header?
18929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18935 ac_header_preproc=yes
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18951 ## ----------------------------------- ##
18952 ## Report this to llvmbugs@cs.uiuc.edu ##
18953 ## ----------------------------------- ##
18955 ) | sed "s/^/$as_me: WARNING: /" >&2
18958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 eval "$as_ac_Header=\$ac_header_preproc"
18965 ac_res=`eval echo '${'$as_ac_Header'}'`
18966 { echo "$as_me:$LINENO: result: $ac_res" >&5
18967 echo "${ECHO_T}$ac_res" >&6; }
18970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18971 cat >>confdefs.h <<_ACEOF
18972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18980 for ac_func in getpagesize
18982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18996 #define $ac_func innocuous_$ac_func
18998 /* System header to define __stub macros and hopefully few prototypes,
18999 which can conflict with char $ac_func (); below.
19000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001 <limits.h> exists even on freestanding compilers. */
19004 # include <limits.h>
19006 # include <assert.h>
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19018 /* The GNU C library defines this for functions which it implements
19019 to always fail with ENOSYS. Some functions are actually named
19020 something starting with __ and the normal name is an alias. */
19021 #if defined __stub_$ac_func || defined __stub___$ac_func
19028 return $ac_func ();
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 eval "$as_ac_var=yes"
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 eval "$as_ac_var=no"
19075 rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19078 ac_res=`eval echo '${'$as_ac_var'}'`
19079 { echo "$as_me:$LINENO: result: $ac_res" >&5
19080 echo "${ECHO_T}$ac_res" >&6; }
19081 if test `eval echo '${'$as_ac_var'}'` = yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089 { echo "$as_me:$LINENO: checking for working mmap" >&5
19090 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19091 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 if test "$cross_compiling" = yes; then
19095 ac_cv_func_mmap_fixed_mapped=no
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103 $ac_includes_default
19104 /* malloc might have been renamed as rpl_malloc. */
19107 /* Thanks to Mike Haertel and Jim Avera for this test.
19108 Here is a matrix of mmap possibilities:
19109 mmap private not fixed
19110 mmap private fixed at somewhere currently unmapped
19111 mmap private fixed at somewhere already mapped
19112 mmap shared not fixed
19113 mmap shared fixed at somewhere currently unmapped
19114 mmap shared fixed at somewhere already mapped
19115 For private mappings, we should verify that changes cannot be read()
19116 back from the file, nor mmap's back from the file at a different
19117 address. (There have been systems where private was not correctly
19118 implemented like the infamous i386 svr4.0, and systems where the
19119 VM page cache was not coherent with the file system buffer cache
19120 like early versions of FreeBSD and possibly contemporary NetBSD.)
19121 For shared mappings, we should conversely verify that changes get
19122 propagated back to all the places they're supposed to be.
19124 Grep wants private fixed already mapped.
19125 The main things grep needs to know about mmap are:
19126 * does it exist and is it safe to write into the mmap'd area
19127 * how to use it (BSD variants) */
19130 #include <sys/mman.h>
19132 #if !STDC_HEADERS && !HAVE_STDLIB_H
19136 /* This mess was copied from the GNU getpagesize.h. */
19137 #if !HAVE_GETPAGESIZE
19138 /* Assume that all systems that can run configure have sys/param.h. */
19139 # if !HAVE_SYS_PARAM_H
19140 # define HAVE_SYS_PARAM_H 1
19143 # ifdef _SC_PAGESIZE
19144 # define getpagesize() sysconf(_SC_PAGESIZE)
19145 # else /* no _SC_PAGESIZE */
19146 # if HAVE_SYS_PARAM_H
19147 # include <sys/param.h>
19148 # ifdef EXEC_PAGESIZE
19149 # define getpagesize() EXEC_PAGESIZE
19150 # else /* no EXEC_PAGESIZE */
19152 # define getpagesize() NBPG * CLSIZE
19155 # endif /* no CLSIZE */
19156 # else /* no NBPG */
19158 # define getpagesize() NBPC
19159 # else /* no NBPC */
19161 # define getpagesize() PAGESIZE
19162 # endif /* PAGESIZE */
19163 # endif /* no NBPC */
19164 # endif /* no NBPG */
19165 # endif /* no EXEC_PAGESIZE */
19166 # else /* no HAVE_SYS_PARAM_H */
19167 # define getpagesize() 8192 /* punt totally */
19168 # endif /* no HAVE_SYS_PARAM_H */
19169 # endif /* no _SC_PAGESIZE */
19171 #endif /* no HAVE_GETPAGESIZE */
19176 char *data, *data2, *data3;
19180 pagesize = getpagesize ();
19182 /* First, make a file with some known garbage in it. */
19183 data = (char *) malloc (pagesize);
19186 for (i = 0; i < pagesize; ++i)
19187 *(data + i) = rand ();
19189 fd = creat ("conftest.mmap", 0600);
19192 if (write (fd, data, pagesize) != pagesize)
19196 /* Next, try to mmap the file at a fixed address which already has
19197 something else allocated at it. If we can, also make sure that
19198 we see the same garbage. */
19199 fd = open ("conftest.mmap", O_RDWR);
19202 data2 = (char *) malloc (2 * pagesize);
19205 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19206 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19207 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19209 for (i = 0; i < pagesize; ++i)
19210 if (*(data + i) != *(data2 + i))
19213 /* Finally, make sure that changes to the mapped area do not
19214 percolate back to the file as seen by read(). (This is a bug on
19215 some variants of i386 svr4.0.) */
19216 for (i = 0; i < pagesize; ++i)
19217 *(data2 + i) = *(data2 + i) + 1;
19218 data3 = (char *) malloc (pagesize);
19221 if (read (fd, data3, pagesize) != pagesize)
19223 for (i = 0; i < pagesize; ++i)
19224 if (*(data + i) != *(data3 + i))
19230 rm -f conftest$ac_exeext
19231 if { (ac_try="$ac_link"
19232 case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_link") 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19241 { (case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_try") 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_cv_func_mmap_fixed_mapped=yes
19252 echo "$as_me: program exited with status $ac_status" >&5
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ( exit $ac_status )
19257 ac_cv_func_mmap_fixed_mapped=no
19259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19264 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19265 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19266 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19268 cat >>confdefs.h <<\_ACEOF
19269 #define HAVE_MMAP 1
19273 rm -f conftest.mmap
19275 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19276 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19277 if test "${ac_cv_func_mmap_file+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_cpp='$CPP $CPPFLAGS'
19282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19286 if test "$cross_compiling" = yes; then
19287 ac_cv_func_mmap_file=no
19289 cat >conftest.$ac_ext <<_ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19297 #include <sys/types.h>
19298 #include <sys/mman.h>
19306 fd = creat ("foo",0777);
19307 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19309 return (fd != (int) MAP_FAILED);
19314 rm -f conftest$ac_exeext
19315 if { (ac_try="$ac_link"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_link") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_func_mmap_file=yes
19336 echo "$as_me: program exited with status $ac_status" >&5
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ( exit $ac_status )
19341 ac_cv_func_mmap_file=no
19343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19348 ac_cpp='$CPP $CPPFLAGS'
19349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19356 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19357 if test "$ac_cv_func_mmap_file" = yes; then
19359 cat >>confdefs.h <<\_ACEOF
19360 #define HAVE_MMAP_FILE
19367 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19368 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19369 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 if test "$llvm_cv_os_type" = "Interix" ; then
19373 ac_cv_need_dev_zero_for_mmap=yes
19375 ac_cv_need_dev_zero_for_mmap=no
19379 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19380 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19381 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19383 cat >>confdefs.h <<\_ACEOF
19384 #define NEED_DEV_ZERO_FOR_MMAP 1
19389 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19391 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19392 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19394 if test "$ac_cv_func_mmap_file" = "no"
19396 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19397 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19401 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19402 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19410 volatile unsigned long val = 1;
19411 __sync_synchronize();
19412 __sync_val_compare_and_swap(&val, 1, 0);
19413 __sync_add_and_fetch(&val, 1);
19414 __sync_sub_and_fetch(&val, 1);
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest$ac_exeext'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 { echo "$as_me:$LINENO: result: yes" >&5
19454 echo "${ECHO_T}yes" >&6; }
19456 cat >>confdefs.h <<\_ACEOF
19457 #define LLVM_MULTITHREADED 1
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 { echo "$as_me:$LINENO: result: no" >&5
19465 echo "${ECHO_T}no" >&6; }
19467 cat >>confdefs.h <<\_ACEOF
19468 #define LLVM_MULTITHREADED 0
19471 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19472 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19480 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19481 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19482 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19483 if test "${llvm_cv_linux_mixed+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 ac_cpp='$CPP $CPPFLAGS'
19488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19499 error: Not x86-64 even if uname says so!
19510 rm -f conftest.$ac_objext
19511 if { (ac_try="$ac_compile"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 llvm_cv_linux_mixed=no
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 llvm_cv_linux_mixed=yes
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 ac_cpp='$CPP $CPPFLAGS'
19555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19561 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19562 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19564 if test "$llvm_cv_linux_mixed" = "yes"; then
19565 llvm_cv_target_arch="x86"
19571 for ac_func in __dso_handle
19573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19587 #define $ac_func innocuous_$ac_func
19589 /* System header to define __stub macros and hopefully few prototypes,
19590 which can conflict with char $ac_func (); below.
19591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19592 <limits.h> exists even on freestanding compilers. */
19595 # include <limits.h>
19597 # include <assert.h>
19602 /* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19609 /* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
19612 #if defined __stub_$ac_func || defined __stub___$ac_func
19619 return $ac_func ();
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 eval "$as_ac_var=yes"
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 eval "$as_ac_var=no"
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19669 ac_res=`eval echo '${'$as_ac_var'}'`
19670 { echo "$as_me:$LINENO: result: $ac_res" >&5
19671 echo "${ECHO_T}$ac_res" >&6; }
19672 if test `eval echo '${'$as_ac_var'}'` = yes; then
19673 cat >>confdefs.h <<_ACEOF
19674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19681 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19682 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19683 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 llvm_cv_llvmgcc_sanity="no"
19687 if test -x "$LLVMGCC" ; then
19688 cp /dev/null conftest.c
19689 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19690 grep 'target datalayout =' > /dev/null 2>&1
19691 if test $? -eq 0 ; then
19692 llvm_cv_llvmgcc_sanity="yes"
19697 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19698 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19700 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19701 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19702 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19703 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19704 LLVMCC1=$llvmcc1path
19706 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19707 LLVMCC1PLUS=$llvmcc1pluspath
19709 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19710 LLVMGCCDIR=$llvmgccdir
19712 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19713 LLVMGCC_LANGS=$llvmgcclangs
19715 { echo "$as_me:$LINENO: result: ok" >&5
19716 echo "${ECHO_T}ok" >&6; }
19719 SHLIBEXT=$libltdl_cv_shlibext
19722 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19725 # Translate the various configuration directories and other basic
19726 # information into substitutions that will end up in Makefile.config.in
19727 # that these configured values can be used by the makefiles
19728 if test "${prefix}" = "NONE" ; then
19729 prefix="/usr/local"
19731 eval LLVM_PREFIX="${prefix}";
19732 eval LLVM_BINDIR="${prefix}/bin";
19733 eval LLVM_LIBDIR="${prefix}/lib";
19734 eval LLVM_DATADIR="${prefix}/share/llvm";
19735 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19736 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19737 eval LLVM_INCLUDEDIR="${prefix}/include";
19738 eval LLVM_INFODIR="${prefix}/info";
19739 eval LLVM_MANDIR="${prefix}/man";
19740 LLVM_CONFIGTIME=`date`
19752 # Place the various directores into the config.h file as #defines so that we
19753 # can know about the installation paths within LLVM.
19755 cat >>confdefs.h <<_ACEOF
19756 #define LLVM_PREFIX "$LLVM_PREFIX"
19760 cat >>confdefs.h <<_ACEOF
19761 #define LLVM_BINDIR "$LLVM_BINDIR"
19765 cat >>confdefs.h <<_ACEOF
19766 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19770 cat >>confdefs.h <<_ACEOF
19771 #define LLVM_DATADIR "$LLVM_DATADIR"
19775 cat >>confdefs.h <<_ACEOF
19776 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19780 cat >>confdefs.h <<_ACEOF
19781 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19785 cat >>confdefs.h <<_ACEOF
19786 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19790 cat >>confdefs.h <<_ACEOF
19791 #define LLVM_INFODIR "$LLVM_INFODIR"
19795 cat >>confdefs.h <<_ACEOF
19796 #define LLVM_MANDIR "$LLVM_MANDIR"
19800 cat >>confdefs.h <<_ACEOF
19801 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19805 cat >>confdefs.h <<_ACEOF
19806 #define LLVM_HOSTTRIPLE "$host"
19810 # Determine which bindings to build.
19811 if test "$BINDINGS_TO_BUILD" = auto ; then
19812 BINDINGS_TO_BUILD=""
19813 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19814 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19817 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19820 # This isn't really configurey, but it avoids having to repeat the list in
19825 # Do any work necessary to ensure that bindings have what they need.
19826 binding_prereqs_failed=0
19827 for a_binding in $BINDINGS_TO_BUILD ; do
19828 case "$a_binding" in
19830 if test "x$OCAMLC" = x ; then
19831 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19832 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19833 binding_prereqs_failed=1
19835 if test "x$OCAMLDEP" = x ; then
19836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19837 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19838 binding_prereqs_failed=1
19840 if test "x$OCAMLOPT" = x ; then
19841 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19842 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19844 if test "x$with_ocaml_libdir" != xauto ; then
19845 OCAML_LIBDIR=$with_ocaml_libdir
19848 ocaml_stdlib="`"$OCAMLC" -where`"
19849 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19851 # ocaml stdlib is beneath our prefix; use stdlib
19852 OCAML_LIBDIR=$ocaml_stdlib
19855 # ocaml stdlib is outside our prefix; use libdir/ocaml
19856 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19863 if test "$binding_prereqs_failed" = 1 ; then
19864 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19865 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19866 { (exit 1); exit 1; }; }
19869 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19870 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19871 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 ac_cpp='$CXXCPP $CPPFLAGS'
19876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19880 oldcxxflags="$CXXFLAGS"
19881 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
19911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19912 { (case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_try") 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest.$ac_objext'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 llvm_cv_cxx_visibility_inlines_hidden=yes
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 llvm_cv_cxx_visibility_inlines_hidden=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 CXXFLAGS="$oldcxxflags"
19942 ac_cpp='$CPP $CPPFLAGS'
19943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19949 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19950 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19951 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19952 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19955 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19960 if test "$llvm_cv_link_use_r" = "yes" ; then
19967 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19968 RDYNAMIC="-Wl,-export-dynamic"
19975 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19977 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19979 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19981 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19983 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19985 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19988 ac_config_files="$ac_config_files Makefile.config"
19991 ac_config_files="$ac_config_files llvm.spec"
19994 ac_config_files="$ac_config_files docs/doxygen.cfg"
19997 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20000 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20003 ac_config_commands="$ac_config_commands setup"
20005 ac_config_commands="$ac_config_commands Makefile"
20008 ac_config_commands="$ac_config_commands Makefile.common"
20011 ac_config_commands="$ac_config_commands examples/Makefile"
20014 ac_config_commands="$ac_config_commands lib/Makefile"
20017 ac_config_commands="$ac_config_commands runtime/Makefile"
20020 ac_config_commands="$ac_config_commands test/Makefile"
20023 ac_config_commands="$ac_config_commands test/Makefile.tests"
20026 ac_config_commands="$ac_config_commands unittests/Makefile"
20029 ac_config_commands="$ac_config_commands tools/Makefile"
20032 ac_config_commands="$ac_config_commands utils/Makefile"
20035 ac_config_commands="$ac_config_commands projects/Makefile"
20038 ac_config_commands="$ac_config_commands bindings/Makefile"
20041 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20045 cat >confcache <<\_ACEOF
20046 # This file is a shell script that caches the results of configure
20047 # tests run on this system so they can be shared between configure
20048 # scripts and configure runs, see configure's option --config-cache.
20049 # It is not useful on other systems. If it contains results you don't
20050 # want to keep, you may remove or edit it.
20052 # config.status only pays attention to the cache file if you give it
20053 # the --recheck option to rerun configure.
20055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20057 # following values.
20061 # The following way of writing the cache mishandles newlines in values,
20062 # but we know of no workaround that is simple, portable, and efficient.
20063 # So, we kill variables containing newlines.
20064 # Ultrix sh set writes to stderr and can't be redirected directly,
20065 # and sets the high bit in the cache file unless we assign to the vars.
20067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20068 eval ac_val=\$$ac_var
20072 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20073 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20076 _ | IFS | as_nl) ;; #(
20077 *) $as_unset $ac_var ;;
20083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20084 *${as_nl}ac_space=\ *)
20085 # `set' does not quote correctly, so add quotes (double-quote
20086 # substitution turns \\\\ into \\, and sed turns \\ into \).
20089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20092 # `set' quotes correctly as required by POSIX, so do not add quotes.
20093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20107 if test -w "$cache_file"; then
20108 test "x$cache_file" != "x/dev/null" &&
20109 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20110 echo "$as_me: updating cache $cache_file" >&6;}
20111 cat confcache >$cache_file
20113 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20114 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20120 # Let make expand exec_prefix.
20121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20123 DEFS=-DHAVE_CONFIG_H
20127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20128 # 1. Remove the extension, and $U if already installed.
20129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20130 ac_i=`echo "$ac_i" | sed "$ac_script"`
20131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20132 # will be set to the directory where LIBOBJS objects are built.
20133 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20134 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20136 LIBOBJS=$ac_libobjs
20138 LTLIBOBJS=$ac_ltlibobjs
20141 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20142 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&5
20144 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&2;}
20146 { (exit 1); exit 1; }; }
20148 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20149 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&5
20151 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20152 Usually this means the macro was only invoked conditionally." >&2;}
20153 { (exit 1); exit 1; }; }
20156 : ${CONFIG_STATUS=./config.status}
20157 ac_clean_files_save=$ac_clean_files
20158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20161 cat >$CONFIG_STATUS <<_ACEOF
20163 # Generated by $as_me.
20164 # Run this file to recreate the current configuration.
20165 # Compiler output produced by configure, useful for debugging
20166 # configure, is in config.log if it exists.
20169 ac_cs_recheck=false
20171 SHELL=\${CONFIG_SHELL-$SHELL}
20174 cat >>$CONFIG_STATUS <<\_ACEOF
20175 ## --------------------- ##
20176 ## M4sh Initialization. ##
20177 ## --------------------- ##
20179 # Be Bourne compatible
20180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20184 # is contrary to our usage. Disable this feature.
20185 alias -g '${1+"$@"}'='"$@"'
20186 setopt NO_GLOB_SUBST
20188 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20190 BIN_SH=xpg4; export BIN_SH # for Tru64
20191 DUALCASE=1; export DUALCASE # for MKS sh
20195 # Avoid depending upon Character Ranges.
20196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20199 as_cr_digits='0123456789'
20200 as_cr_alnum=$as_cr_Letters$as_cr_digits
20202 # The user is always right.
20203 if test "${PATH_SEPARATOR+set}" != set; then
20204 echo "#! /bin/sh" >conf$$.sh
20205 echo "exit 0" >>conf$$.sh
20207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20215 # Support unset when possible.
20216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20224 # We need space, tab and new line, in precisely that order. Quoting is
20225 # there to prevent editors from complaining about space-tab.
20226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20227 # splitting by setting IFS to empty value.)
20232 # Find who we are. Look in the path if we contain no directory separator.
20234 *[\\/]* ) as_myself=$0 ;;
20235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20236 for as_dir in $PATH
20239 test -z "$as_dir" && as_dir=.
20240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20246 # We did not find ourselves, most probably we were run as `sh COMMAND'
20247 # in which case we are not to be found in the path.
20248 if test "x$as_myself" = x; then
20251 if test ! -f "$as_myself"; then
20252 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20253 { (exit 1); exit 1; }
20256 # Work around bugs in pre-3.0 UWIN ksh.
20257 for as_var in ENV MAIL MAILPATH
20258 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20268 LC_TELEPHONE LC_TIME
20270 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20271 eval $as_var=C; export $as_var
20273 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20277 # Required to use basename.
20278 if expr a : '\(a\)' >/dev/null 2>&1 &&
20279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20286 as_basename=basename
20292 # Name of the executable.
20293 as_me=`$as_basename -- "$0" ||
20294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20295 X"$0" : 'X\(//\)$' \| \
20296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20298 sed '/^.*\/\([^/][^/]*\)\/*$/{
20317 as_lineno_1=$LINENO
20318 as_lineno_2=$LINENO
20319 test "x$as_lineno_1" != "x$as_lineno_2" &&
20320 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20323 # uniformly replaced by the line number. The first 'sed' inserts a
20324 # line-number line after each line using $LINENO; the second 'sed'
20325 # does the real work. The second script uses 'N' to pair each
20326 # line-number line with the line containing $LINENO, and appends
20327 # trailing '-' during substitution so that $LINENO is not a special
20328 # case at line end.
20329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20330 # scripts with optimization help from Paolo Bonzini. Blame Lee
20331 # E. McMahon (1931-1989) for sed's syntax. :-)
20343 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20346 ' >$as_me.lineno &&
20347 chmod +x "$as_me.lineno" ||
20348 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20349 { (exit 1); exit 1; }; }
20351 # Don't try to exec as it changes $[0], causing all sort of problems
20352 # (the dirname of $[0] is not the place where we might find the
20353 # original and so on. Autoconf is especially sensitive to this).
20354 . "./$as_me.lineno"
20355 # Exit status is that of the last command.
20360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20366 ECHO_C= ECHO_N= ECHO_T=
20367 case `echo -n x` in
20369 case `echo 'x\c'` in
20370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20377 if expr a : '\(a\)' >/dev/null 2>&1 &&
20378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20384 rm -f conf$$ conf$$.exe conf$$.file
20385 if test -d conf$$.dir; then
20386 rm -f conf$$.dir/conf$$.file
20392 if ln -s conf$$.file conf$$ 2>/dev/null; then
20394 # ... but there are two gotchas:
20395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20397 # In both cases, we have to default to `cp -p'.
20398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20400 elif ln conf$$.file conf$$ 2>/dev/null; then
20405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20406 rmdir conf$$.dir 2>/dev/null
20408 if mkdir -p . 2>/dev/null; then
20411 test -d ./-p && rmdir ./-p
20415 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20416 # systems may use methods other than mode bits to determine executability.
20417 cat >conf$$.file <<_ASEOF
20421 chmod +x conf$$.file
20422 if test -x conf$$.file >/dev/null 2>&1; then
20423 as_executable_p="test -x"
20429 # Sed expression to map a string onto a valid CPP name.
20430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20432 # Sed expression to map a string onto a valid variable name.
20433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20438 # Save the log message, to keep $[0] and so on meaningful, and to
20439 # report actual input values of CONFIG_FILES etc. instead of their
20440 # values after options handling.
20442 This file was extended by llvm $as_me 2.7svn, which was
20443 generated by GNU Autoconf 2.60. Invocation command line was
20445 CONFIG_FILES = $CONFIG_FILES
20446 CONFIG_HEADERS = $CONFIG_HEADERS
20447 CONFIG_LINKS = $CONFIG_LINKS
20448 CONFIG_COMMANDS = $CONFIG_COMMANDS
20451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20456 cat >>$CONFIG_STATUS <<_ACEOF
20457 # Files that config.status was made for.
20458 config_files="$ac_config_files"
20459 config_headers="$ac_config_headers"
20460 config_commands="$ac_config_commands"
20464 cat >>$CONFIG_STATUS <<\_ACEOF
20466 \`$as_me' instantiates files from templates according to the
20467 current configuration.
20469 Usage: $0 [OPTIONS] [FILE]...
20471 -h, --help print this help, then exit
20472 -V, --version print version number, then exit
20473 -q, --quiet do not print progress messages
20474 -d, --debug don't remove temporary files
20475 --recheck update $as_me by reconfiguring in the same conditions
20476 --file=FILE[:TEMPLATE]
20477 instantiate the configuration file FILE
20478 --header=FILE[:TEMPLATE]
20479 instantiate the configuration header FILE
20481 Configuration files:
20484 Configuration headers:
20487 Configuration commands:
20490 Report bugs to <bug-autoconf@gnu.org>."
20493 cat >>$CONFIG_STATUS <<_ACEOF
20495 llvm config.status 2.7svn
20496 configured by $0, generated by GNU Autoconf 2.60,
20497 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20499 Copyright (C) 2006 Free Software Foundation, Inc.
20500 This config.status script is free software; the Free Software Foundation
20501 gives unlimited permission to copy, distribute and modify it."
20508 cat >>$CONFIG_STATUS <<\_ACEOF
20509 # If no file are specified by the user, then we need to provide default
20510 # value. By we need to know if files were specified by the user.
20516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20528 # Handling of the options.
20529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20532 echo "$ac_cs_version"; exit ;;
20533 --debug | --debu | --deb | --de | --d | -d )
20535 --file | --fil | --fi | --f )
20537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20538 ac_need_defaults=false;;
20539 --header | --heade | --head | --hea )
20541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20542 ac_need_defaults=false;;
20544 # Conflict between --help and --header
20545 { echo "$as_me: error: ambiguous option: $1
20546 Try \`$0 --help' for more information." >&2
20547 { (exit 1); exit 1; }; };;
20548 --help | --hel | -h )
20549 echo "$ac_cs_usage"; exit ;;
20550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20551 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20554 # This is an error.
20555 -*) { echo "$as_me: error: unrecognized option: $1
20556 Try \`$0 --help' for more information." >&2
20557 { (exit 1); exit 1; }; } ;;
20559 *) ac_config_targets="$ac_config_targets $1"
20560 ac_need_defaults=false ;;
20566 ac_configure_extra_args=
20568 if $ac_cs_silent; then
20570 ac_configure_extra_args="$ac_configure_extra_args --silent"
20574 cat >>$CONFIG_STATUS <<_ACEOF
20575 if \$ac_cs_recheck; then
20576 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20577 CONFIG_SHELL=$SHELL
20578 export CONFIG_SHELL
20579 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20583 cat >>$CONFIG_STATUS <<\_ACEOF
20587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20588 ## Running $as_me. ##
20594 cat >>$CONFIG_STATUS <<_ACEOF
20598 llvm_src="${srcdir}"
20602 cat >>$CONFIG_STATUS <<\_ACEOF
20604 # Handling of arguments.
20605 for ac_config_target in $ac_config_targets
20607 case $ac_config_target in
20608 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20609 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20610 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20611 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20612 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20613 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20614 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20615 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20616 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20617 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20618 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20619 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20620 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20621 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20622 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20623 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20624 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20625 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20626 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20627 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20628 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20629 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20630 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20631 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20632 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20634 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20635 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20636 { (exit 1); exit 1; }; };;
20641 # If the user did not use the arguments to specify the items to instantiate,
20642 # then the envvar interface is used. Set only those that are not.
20643 # We use the long form for the default assignment because of an extremely
20644 # bizarre bug on SunOS 4.1.3.
20645 if $ac_need_defaults; then
20646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20651 # Have a temporary directory for convenience. Make it in the build tree
20652 # simply because there is no reason against having it here, and in addition,
20653 # creating and moving files from /tmp can sometimes cause problems.
20654 # Hook for its removal unless debugging.
20655 # Note that there is a small window in which the directory will not be cleaned:
20656 # after its creation but before its name has been assigned to `$tmp'.
20660 trap 'exit_status=$?
20661 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20663 trap '{ (exit 1); exit 1; }' 1 2 13 15
20665 # Create a (secure) tmp directory for tmp files.
20668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20669 test -n "$tmp" && test -d "$tmp"
20672 tmp=./conf$$-$RANDOM
20673 (umask 077 && mkdir "$tmp")
20676 echo "$me: cannot create a temporary directory in ." >&2
20677 { (exit 1); exit 1; }
20681 # Set up the sed scripts for CONFIG_FILES section.
20684 # No need to generate the scripts if there are no CONFIG_FILES.
20685 # This happens for instance when ./config.status config.h
20686 if test -n "$CONFIG_FILES"; then
20693 for ac_last_try in false false false false false :; do
20694 cat >conf$$subs.sed <<_ACEOF
20695 SHELL!$SHELL$ac_delim
20696 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20697 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20698 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20699 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20700 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20701 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20702 exec_prefix!$exec_prefix$ac_delim
20703 prefix!$prefix$ac_delim
20704 program_transform_name!$program_transform_name$ac_delim
20705 bindir!$bindir$ac_delim
20706 sbindir!$sbindir$ac_delim
20707 libexecdir!$libexecdir$ac_delim
20708 datarootdir!$datarootdir$ac_delim
20709 datadir!$datadir$ac_delim
20710 sysconfdir!$sysconfdir$ac_delim
20711 sharedstatedir!$sharedstatedir$ac_delim
20712 localstatedir!$localstatedir$ac_delim
20713 includedir!$includedir$ac_delim
20714 oldincludedir!$oldincludedir$ac_delim
20715 docdir!$docdir$ac_delim
20716 infodir!$infodir$ac_delim
20717 htmldir!$htmldir$ac_delim
20718 dvidir!$dvidir$ac_delim
20719 pdfdir!$pdfdir$ac_delim
20720 psdir!$psdir$ac_delim
20721 libdir!$libdir$ac_delim
20722 localedir!$localedir$ac_delim
20723 mandir!$mandir$ac_delim
20724 DEFS!$DEFS$ac_delim
20725 ECHO_C!$ECHO_C$ac_delim
20726 ECHO_N!$ECHO_N$ac_delim
20727 ECHO_T!$ECHO_T$ac_delim
20728 LIBS!$LIBS$ac_delim
20729 build_alias!$build_alias$ac_delim
20730 host_alias!$host_alias$ac_delim
20731 target_alias!$target_alias$ac_delim
20732 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20733 subdirs!$subdirs$ac_delim
20734 build!$build$ac_delim
20735 build_cpu!$build_cpu$ac_delim
20736 build_vendor!$build_vendor$ac_delim
20737 build_os!$build_os$ac_delim
20738 host!$host$ac_delim
20739 host_cpu!$host_cpu$ac_delim
20740 host_vendor!$host_vendor$ac_delim
20741 host_os!$host_os$ac_delim
20742 target!$target$ac_delim
20743 target_cpu!$target_cpu$ac_delim
20744 target_vendor!$target_vendor$ac_delim
20745 target_os!$target_os$ac_delim
20747 HOST_OS!$HOST_OS$ac_delim
20748 TARGET_OS!$TARGET_OS$ac_delim
20749 LINKALL!$LINKALL$ac_delim
20750 NOLINKALL!$NOLINKALL$ac_delim
20751 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20752 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20753 ARCH!$ARCH$ac_delim
20754 ENDIAN!$ENDIAN$ac_delim
20756 CFLAGS!$CFLAGS$ac_delim
20757 LDFLAGS!$LDFLAGS$ac_delim
20758 CPPFLAGS!$CPPFLAGS$ac_delim
20759 ac_ct_CC!$ac_ct_CC$ac_delim
20760 EXEEXT!$EXEEXT$ac_delim
20761 OBJEXT!$OBJEXT$ac_delim
20763 GREP!$GREP$ac_delim
20764 EGREP!$EGREP$ac_delim
20765 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20766 BUILD_CC!$BUILD_CC$ac_delim
20767 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20768 BUILD_CXX!$BUILD_CXX$ac_delim
20769 CVSBUILD!$CVSBUILD$ac_delim
20770 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20771 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20772 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20773 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20774 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20775 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20776 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20778 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20779 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20780 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20781 ENABLE_PIC!$ENABLE_PIC$ac_delim
20782 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20783 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20784 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20785 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20786 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20787 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20788 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20789 CLANGPATH!$CLANGPATH$ac_delim
20790 CLANGXXPATH!$CLANGXXPATH$ac_delim
20791 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20794 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20796 elif $ac_last_try; then
20797 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20798 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20799 { (exit 1); exit 1; }; }
20801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20805 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20806 if test -n "$ac_eof"; then
20807 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20808 ac_eof=`expr $ac_eof + 1`
20811 cat >>$CONFIG_STATUS <<_ACEOF
20812 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20816 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20817 s/^/s,@/; s/!/@,|#_!!_#|/
20820 s/'"$ac_delim"'$/,g/; t
20822 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20823 ' >>$CONFIG_STATUS <conf$$subs.sed
20824 rm -f conf$$subs.sed
20825 cat >>$CONFIG_STATUS <<_ACEOF
20831 for ac_last_try in false false false false false :; do
20832 cat >conf$$subs.sed <<_ACEOF
20833 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20834 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20835 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20836 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20837 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20839 CXXFLAGS!$CXXFLAGS$ac_delim
20840 ac_ct_CXX!$ac_ct_CXX$ac_delim
20842 ifGNUmake!$ifGNUmake$ac_delim
20843 LN_S!$LN_S$ac_delim
20846 DATE!$DATE$ac_delim
20847 FIND!$FIND$ac_delim
20848 MKDIR!$MKDIR$ac_delim
20850 RANLIB!$RANLIB$ac_delim
20855 BINPWD!$BINPWD$ac_delim
20856 GRAPHVIZ!$GRAPHVIZ$ac_delim
20859 NEATO!$NEATO$ac_delim
20860 TWOPI!$TWOPI$ac_delim
20861 CIRCO!$CIRCO$ac_delim
20863 DOTTY!$DOTTY$ac_delim
20864 PERL!$PERL$ac_delim
20865 HAVE_PERL!$HAVE_PERL$ac_delim
20866 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20867 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20868 INSTALL_DATA!$INSTALL_DATA$ac_delim
20869 BZIP2!$BZIP2$ac_delim
20870 DOXYGEN!$DOXYGEN$ac_delim
20871 GROFF!$GROFF$ac_delim
20872 GZIP!$GZIP$ac_delim
20873 POD2HTML!$POD2HTML$ac_delim
20874 POD2MAN!$POD2MAN$ac_delim
20875 RUNTEST!$RUNTEST$ac_delim
20876 TCLSH!$TCLSH$ac_delim
20878 OCAMLC!$OCAMLC$ac_delim
20879 OCAMLOPT!$OCAMLOPT$ac_delim
20880 OCAMLDEP!$OCAMLDEP$ac_delim
20881 OCAMLDOC!$OCAMLDOC$ac_delim
20883 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20884 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20885 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20886 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20887 LIBADD_DL!$LIBADD_DL$ac_delim
20888 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20889 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20890 LLVMGCC!$LLVMGCC$ac_delim
20891 LLVMGXX!$LLVMGXX$ac_delim
20892 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20893 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20894 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20895 USE_UDIS86!$USE_UDIS86$ac_delim
20896 USE_OPROFILE!$USE_OPROFILE$ac_delim
20897 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20898 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20899 MMAP_FILE!$MMAP_FILE$ac_delim
20900 LLVMCC1!$LLVMCC1$ac_delim
20901 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20902 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20903 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20904 SHLIBEXT!$SHLIBEXT$ac_delim
20905 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20906 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20907 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20908 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20909 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20910 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20911 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20912 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20913 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20914 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20915 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20916 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20917 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20918 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20919 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20920 RPATH!$RPATH$ac_delim
20921 RDYNAMIC!$RDYNAMIC$ac_delim
20922 LIBOBJS!$LIBOBJS$ac_delim
20923 LTLIBOBJS!$LTLIBOBJS$ac_delim
20926 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20928 elif $ac_last_try; then
20929 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20930 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20931 { (exit 1); exit 1; }; }
20933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20937 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20938 if test -n "$ac_eof"; then
20939 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20940 ac_eof=`expr $ac_eof + 1`
20943 cat >>$CONFIG_STATUS <<_ACEOF
20944 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20948 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20949 s/^/s,@/; s/!/@,|#_!!_#|/
20952 s/'"$ac_delim"'$/,g/; t
20954 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20955 ' >>$CONFIG_STATUS <conf$$subs.sed
20956 rm -f conf$$subs.sed
20957 cat >>$CONFIG_STATUS <<_ACEOF
20964 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20965 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20966 # trailing colons and then remove the whole line if VPATH becomes empty
20967 # (actually we leave an empty line to preserve line numbers).
20968 if test "x$srcdir" = x.; then
20969 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20970 s/:*\$(srcdir):*/:/
20971 s/:*\${srcdir}:*/:/
20973 s/^\([^=]*=[ ]*\):*/\1/
20979 cat >>$CONFIG_STATUS <<\_ACEOF
20980 fi # test -n "$CONFIG_FILES"
20983 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20986 :[FHLC]) ac_mode=$ac_tag; continue;;
20988 case $ac_mode$ac_tag in
20990 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20991 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20992 { (exit 1); exit 1; }; };;
20993 :[FH]-) ac_tag=-:-;;
20994 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21011 -) ac_f="$tmp/stdin";;
21012 *) # Look for the file first in the build tree, then in the source tree
21013 # (if the path is not absolute). The absolute path cannot be DOS-style,
21014 # because $ac_f cannot contain `:'.
21018 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21020 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21021 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21022 { (exit 1); exit 1; }; };;
21024 ac_file_inputs="$ac_file_inputs $ac_f"
21027 # Let's still pretend it is `configure' which instantiates (i.e., don't
21028 # use $as_me), people would be surprised to read:
21029 # /* config.h. Generated by config.status. */
21030 configure_input="Generated from "`IFS=:
21031 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21032 if test x"$ac_file" != x-; then
21033 configure_input="$ac_file. $configure_input"
21034 { echo "$as_me:$LINENO: creating $ac_file" >&5
21035 echo "$as_me: creating $ac_file" >&6;}
21039 *:-:* | *:-) cat >"$tmp/stdin";;
21044 ac_dir=`$as_dirname -- "$ac_file" ||
21045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21046 X"$ac_file" : 'X\(//\)[^/]' \| \
21047 X"$ac_file" : 'X\(//\)$' \| \
21048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21054 /^X\(\/\/\)[^/].*/{
21069 -*) as_dir=./$as_dir;;
21071 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21075 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21076 *) as_qdir=$as_dir;;
21078 as_dirs="'$as_qdir' $as_dirs"
21079 as_dir=`$as_dirname -- "$as_dir" ||
21080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081 X"$as_dir" : 'X\(//\)[^/]' \| \
21082 X"$as_dir" : 'X\(//\)$' \| \
21083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21089 /^X\(\/\/\)[^/].*/{
21102 test -d "$as_dir" && break
21104 test -z "$as_dirs" || eval "mkdir $as_dirs"
21105 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21106 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21107 { (exit 1); exit 1; }; }; }
21111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21114 # A ".." for each directory in $ac_dir_suffix.
21115 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21116 case $ac_top_builddir_sub in
21117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21121 ac_abs_top_builddir=$ac_pwd
21122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21123 # for backward compatibility:
21124 ac_top_builddir=$ac_top_build_prefix
21127 .) # We are building in place.
21129 ac_top_srcdir=$ac_top_builddir_sub
21130 ac_abs_top_srcdir=$ac_pwd ;;
21131 [\\/]* | ?:[\\/]* ) # Absolute name.
21132 ac_srcdir=$srcdir$ac_dir_suffix;
21133 ac_top_srcdir=$srcdir
21134 ac_abs_top_srcdir=$srcdir ;;
21135 *) # Relative name.
21136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21137 ac_top_srcdir=$ac_top_build_prefix$srcdir
21138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21155 cat >>$CONFIG_STATUS <<\_ACEOF
21156 # If the template does not know about datarootdir, expand it.
21157 # FIXME: This hack should be removed a few years after 2.60.
21158 ac_datarootdir_hack=; ac_datarootdir_seen=
21160 case `sed -n '/datarootdir/ {
21169 ' $ac_file_inputs` in
21170 *datarootdir*) ac_datarootdir_seen=yes;;
21171 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21172 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21173 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21175 cat >>$CONFIG_STATUS <<_ACEOF
21176 ac_datarootdir_hack='
21177 s&@datadir@&$datadir&g
21178 s&@docdir@&$docdir&g
21179 s&@infodir@&$infodir&g
21180 s&@localedir@&$localedir&g
21181 s&@mandir@&$mandir&g
21182 s&\\\${datarootdir}&$datarootdir&g' ;;
21186 # Neutralize VPATH when `$srcdir' = `.'.
21187 # Shell code in configure.ac might set extrasub.
21188 # FIXME: do we really want to maintain this feature?
21189 cat >>$CONFIG_STATUS <<_ACEOF
21193 cat >>$CONFIG_STATUS <<\_ACEOF
21195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21196 s&@configure_input@&$configure_input&;t t
21197 s&@top_builddir@&$ac_top_builddir_sub&;t t
21198 s&@srcdir@&$ac_srcdir&;t t
21199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21200 s&@top_srcdir@&$ac_top_srcdir&;t t
21201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21202 s&@builddir@&$ac_builddir&;t t
21203 s&@abs_builddir@&$ac_abs_builddir&;t t
21204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21205 s&@INSTALL@&$ac_INSTALL&;t t
21206 $ac_datarootdir_hack
21207 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21209 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21210 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21211 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21212 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21213 which seems to be undefined. Please make sure it is defined." >&5
21214 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21215 which seems to be undefined. Please make sure it is defined." >&2;}
21219 -) cat "$tmp/out"; rm -f "$tmp/out";;
21220 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21229 # Transform confdefs.h into a sed script `conftest.defines', that
21230 # substitutes the proper values into config.h.in to produce config.h.
21231 rm -f conftest.defines conftest.tail
21232 # First, append a space to every undef/define line, to ease matching.
21233 echo 's/$/ /' >conftest.defines
21234 # Then, protect against being on the right side of a sed subst, or in
21235 # an unquoted here document, in config.status. If some macros were
21236 # called several times there might be several #defines for the same
21237 # symbol, which is useless. But do not sort them, since the last
21238 # AC_DEFINE must be honored.
21239 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21240 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21241 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21242 # PARAMS is the parameter list in the macro definition--in most cases, it's
21243 # just an empty string.
21244 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21245 ac_dB='\\)[ (].*,\\1define\\2'
21253 s/^[ ]*#[ ]*define[ ][ ]*//
21258 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21259 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21260 ' >>conftest.defines
21262 # Remove the space that was appended to ease matching.
21263 # Then replace #undef with comments. This is necessary, for
21264 # example, in the case of _POSIX_SOURCE, which is predefined and required
21265 # on some systems where configure will not decide to define it.
21266 # (The regexp can be short, since the line contains either #define or #undef.)
21268 s,^[ #]*u.*,/* & */,' >>conftest.defines
21270 # Break up conftest.defines:
21271 ac_max_sed_lines=50
21273 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21274 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21275 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21277 ac_in='$ac_file_inputs'
21278 ac_out='"$tmp/out1"'
21279 ac_nxt='"$tmp/out2"'
21283 # Write a here document:
21284 cat >>$CONFIG_STATUS <<_ACEOF
21285 # First, check the format of the line:
21286 cat >"\$tmp/defines.sed" <<\\CEOF
21287 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21288 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21292 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21294 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21295 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21296 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21297 grep . conftest.tail >/dev/null || break
21298 rm -f conftest.defines
21299 mv conftest.tail conftest.defines
21301 rm -f conftest.defines conftest.tail
21303 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305 if test x"$ac_file" != x-; then
21306 echo "/* $configure_input */" >"$tmp/config.h"
21307 cat "$ac_result" >>"$tmp/config.h"
21308 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21310 echo "$as_me: $ac_file is unchanged" >&6;}
21313 mv "$tmp/config.h" $ac_file
21316 echo "/* $configure_input */"
21322 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21323 echo "$as_me: executing $ac_file commands" >&6;}
21328 case $ac_file$ac_mode in
21329 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21330 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21331 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21333 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21335 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21337 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21339 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21341 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21343 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21344 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21345 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21346 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21347 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21348 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21349 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21350 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21351 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21352 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21353 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21354 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21360 { (exit 0); exit 0; }
21362 chmod +x $CONFIG_STATUS
21363 ac_clean_files=$ac_clean_files_save
21366 # configure is writing to config.log, and then calls config.status.
21367 # config.status does its own redirection, appending to config.log.
21368 # Unfortunately, on DOS this fails, as config.log is still kept open
21369 # by configure, so config.status won't be able to write to it; its
21370 # output is simply discarded. So we exec the FD to /dev/null,
21371 # effectively closing config.log, so it can be properly (re)opened and
21372 # appended to by config.status. When coming back to configure, we
21373 # need to make the FD available again.
21374 if test "$no_create" != yes; then
21376 ac_config_status_args=
21377 test "$silent" = yes &&
21378 ac_config_status_args="$ac_config_status_args --quiet"
21380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21383 # would make configure fail if this is the last instruction.
21384 $ac_cs_success || { (exit 1); exit 1; }
21388 # CONFIG_SUBDIRS section.
21390 if test "$no_recursion" != yes; then
21392 # Remove --cache-file and --srcdir arguments so they do not pile up.
21393 ac_sub_configure_args=
21395 eval "set x $ac_configure_args"
21399 if test -n "$ac_prev"; then
21404 -cache-file | --cache-file | --cache-fil | --cache-fi \
21405 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21406 ac_prev=cache_file ;;
21407 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21408 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21411 --config-cache | -C)
21413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21423 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21425 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21429 # Always prepend --prefix to ensure using the same prefix
21430 # in subdir configurations.
21431 ac_arg="--prefix=$prefix"
21433 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21435 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21438 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21440 # Do not complain, so a configure script can configure whichever
21441 # parts of a large source tree are present.
21442 test -d "$srcdir/$ac_dir" || continue
21444 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21445 echo "$as_me:$LINENO: $ac_msg" >&5
21449 -*) as_dir=./$as_dir;;
21451 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21455 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21456 *) as_qdir=$as_dir;;
21458 as_dirs="'$as_qdir' $as_dirs"
21459 as_dir=`$as_dirname -- "$as_dir" ||
21460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21461 X"$as_dir" : 'X\(//\)[^/]' \| \
21462 X"$as_dir" : 'X\(//\)$' \| \
21463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21469 /^X\(\/\/\)[^/].*/{
21482 test -d "$as_dir" && break
21484 test -z "$as_dirs" || eval "mkdir $as_dirs"
21485 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21486 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21487 { (exit 1); exit 1; }; }; }
21491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21494 # A ".." for each directory in $ac_dir_suffix.
21495 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21496 case $ac_top_builddir_sub in
21497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21501 ac_abs_top_builddir=$ac_pwd
21502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21503 # for backward compatibility:
21504 ac_top_builddir=$ac_top_build_prefix
21507 .) # We are building in place.
21509 ac_top_srcdir=$ac_top_builddir_sub
21510 ac_abs_top_srcdir=$ac_pwd ;;
21511 [\\/]* | ?:[\\/]* ) # Absolute name.
21512 ac_srcdir=$srcdir$ac_dir_suffix;
21513 ac_top_srcdir=$srcdir
21514 ac_abs_top_srcdir=$srcdir ;;
21515 *) # Relative name.
21516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21517 ac_top_srcdir=$ac_top_build_prefix$srcdir
21518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21525 # Check for guested configure; otherwise get Cygnus style configure.
21526 if test -f "$ac_srcdir/configure.gnu"; then
21527 ac_sub_configure=$ac_srcdir/configure.gnu
21528 elif test -f "$ac_srcdir/configure"; then
21529 ac_sub_configure=$ac_srcdir/configure
21530 elif test -f "$ac_srcdir/configure.in"; then
21531 # This should be Cygnus configure.
21532 ac_sub_configure=$ac_aux_dir/configure
21534 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21539 # The recursion is here.
21540 if test -n "$ac_sub_configure"; then
21541 # Make the cache file name correct relative to the subdirectory.
21542 case $cache_file in
21543 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21544 *) # Relative name.
21545 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21548 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21549 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21550 # The eval makes quoting arguments work.
21551 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21552 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21553 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21554 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21555 { (exit 1); exit 1; }; }