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
816 projects/llvm-kernel'
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1395 --enable-expensive-checks
1396 Compile with expensive debug checks enabled (default
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
1402 --enable-jit Enable Just In Time Compiling (default is YES)
1403 --enable-doxygen Build doxygen documentation (default is NO)
1404 --enable-threads Use threads if available (default is YES)
1405 --enable-pic Build LLVM with Position Independent Code (default
1407 --enable-shared Link LLVM tools shared (default is NO)
1408 --enable-targets Build specific host targets: all or
1409 target1,target2,... Valid targets are: host, x86,
1410 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412 and cpp (default=all)
1413 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1415 --enable-bindings Build specific language bindings:
1416 all,auto,none,{binding-name} (default=auto)
1417 --enable-libffi Check for the presence of libffi (default is NO)
1418 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1420 --enable-llvmc-dynamic-plugins
1421 Enable dynamic LLVMC plugins (default is YES)
1422 --enable-ltdl-install install libltdl
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1429 --with-llvmgcc Specify location of llvm-gcc driver (default
1431 --with-llvmgxx Specify location of llvm-g++ driver (default
1433 --with-clang Specify location of clang compiler (default is
1435 --with-built-clang Use the compiled Clang as the LLVM compiler
1437 --with-optimize-option Select the compiler options to use for optimized
1439 --with-extra-options Specify additional options to compile LLVM with
1440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
1450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
1452 --with-tclinclude directory where tcl headers are
1453 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1454 clang, or none; default=check)
1455 --with-udis86=<path> Use udis86 external x86 disassembler library
1456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 llvm configure 2.7svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by llvm $as_me 2.7svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914 if test -f "$ac_dir/install-sh"; then
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 elif test -f "$ac_dir/install.sh"; then
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 elif test -f "$ac_dir/shtool"; then
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 if test -z "$ac_aux_dir"; then
1929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 if test ${srcdir} != "." ; then
1945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
1952 for i in `ls ${srcdir}/projects`
1954 if test -d ${srcdir}/projects/${i} ; then
1957 sample) subdirs="$subdirs projects/sample"
1959 privbracket) subdirs="$subdirs projects/privbracket"
1961 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1963 # llvm-test is the old name of the test-suite, kept here for backwards
1965 llvm-test) subdirs="$subdirs projects/llvm-test"
1967 test-suite) subdirs="$subdirs projects/test-suite"
1969 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1971 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1973 llvm-java) subdirs="$subdirs projects/llvm-java"
1975 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1977 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1979 poolalloc) subdirs="$subdirs projects/poolalloc"
1981 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1984 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009 { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022 { (exit 1); exit 1; }; };;
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test "x$host_alias" = x; then
2044 ac_cv_host=$ac_cv_build
2046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059 { (exit 1); exit 1; }; };;
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test "x$target_alias" = x; then
2081 ac_cv_target=$ac_cv_host
2083 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096 { (exit 1); exit 1; }; };;
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115 test "$program_prefix$program_suffix$program_transform_name" = \
2117 program_prefix=${target_alias}-
2119 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121 if test "${llvm_cv_os_type+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128 llvm_cv_os_type="AIX"
2129 llvm_cv_platform_type="Unix" ;;
2131 llvm_cv_link_all_option="-Wl,--whole-archive"
2132 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133 llvm_cv_os_type="IRIX"
2134 llvm_cv_platform_type="Unix" ;;
2136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138 llvm_cv_os_type="Cygwin"
2139 llvm_cv_platform_type="Unix" ;;
2141 llvm_cv_link_all_option="-Wl,-all_load"
2142 llvm_cv_no_link_all_option="-Wl,-noall_load"
2143 llvm_cv_os_type="Darwin"
2144 llvm_cv_platform_type="Unix" ;;
2146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148 llvm_cv_os_type="FreeBSD"
2149 llvm_cv_platform_type="Unix" ;;
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="OpenBSD"
2154 llvm_cv_platform_type="Unix" ;;
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="NetBSD"
2159 llvm_cv_platform_type="Unix" ;;
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="DragonFly"
2164 llvm_cv_platform_type="Unix" ;;
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="HP-UX"
2169 llvm_cv_platform_type="Unix" ;;
2171 llvm_cv_link_all_option="-Wl,--whole-archive"
2172 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2173 llvm_cv_os_type="Interix"
2174 llvm_cv_platform_type="Unix" ;;
2176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178 llvm_cv_os_type="Linux"
2179 llvm_cv_platform_type="Unix" ;;
2181 llvm_cv_link_all_option="-Wl,-z,allextract"
2182 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2183 llvm_cv_os_type="SunOS"
2184 llvm_cv_platform_type="Unix" ;;
2186 llvm_cv_link_all_option="-Wl,-z,allextract"
2187 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188 llvm_cv_os_type="AuroraUX"
2189 llvm_cv_platform_type="Unix" ;;
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="Win32"
2194 llvm_cv_platform_type="Win32" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="MingW"
2199 llvm_cv_platform_type="Win32" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Haiku"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Freestanding"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Freestanding"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option=""
2217 llvm_cv_no_link_all_option=""
2218 llvm_cv_os_type="Unknown"
2219 llvm_cv_platform_type="Unknown" ;;
2222 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2225 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227 if test "${llvm_cv_target_os_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 llvm_cv_target_os_type="AIX" ;;
2234 llvm_cv_target_os_type="IRIX" ;;
2236 llvm_cv_target_os_type="Cygwin" ;;
2238 llvm_cv_target_os_type="Darwin" ;;
2240 llvm_cv_target_os_type="FreeBSD" ;;
2242 llvm_cv_target_os_type="OpenBSD" ;;
2244 llvm_cv_target_os_type="NetBSD" ;;
2246 llvm_cv_target_os_type="DragonFly" ;;
2248 llvm_cv_target_os_type="HP-UX" ;;
2250 llvm_cv_target_os_type="Interix" ;;
2252 llvm_cv_target_os_type="Linux" ;;
2254 llvm_cv_target_os_type="SunOS" ;;
2256 llvm_cv_target_os_type="AuroraUX" ;;
2258 llvm_cv_target_os_type="Win32" ;;
2260 llvm_cv_target_os_type="MingW" ;;
2262 llvm_cv_target_os_type="Haiku" ;;
2264 llvm_cv_target_os_type="Freestanding" ;;
2266 llvm_cv_target_os_type="Unknown" ;;
2269 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2272 if test "$llvm_cv_os_type" = "Unknown" ; then
2273 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275 { (exit 1); exit 1; }; }
2280 HOST_OS=$llvm_cv_os_type
2282 TARGET_OS=$llvm_cv_target_os_type
2285 LINKALL=$llvm_cv_link_all_option
2287 NOLINKALL=$llvm_cv_no_link_all_option
2290 case $llvm_cv_platform_type in
2293 cat >>confdefs.h <<\_ACEOF
2294 #define LLVM_ON_UNIX 1
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_WIN32 1
2315 { echo "$as_me:$LINENO: checking target architecture" >&5
2316 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317 if test "${llvm_cv_target_arch+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 i?86-*) llvm_cv_target_arch="x86" ;;
2322 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2323 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2324 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2325 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2326 arm*-*) llvm_cv_target_arch="ARM" ;;
2327 mips-*) llvm_cv_target_arch="Mips" ;;
2328 pic16-*) llvm_cv_target_arch="PIC16" ;;
2329 xcore-*) llvm_cv_target_arch="XCore" ;;
2330 msp430-*) llvm_cv_target_arch="MSP430" ;;
2331 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2332 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2333 microblaze-*) llvm_cv_target_arch="MBlaze" ;;
2334 *) llvm_cv_target_arch="Unknown" ;;
2337 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2338 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2340 if test "$llvm_cv_target_arch" = "Unknown" ; then
2341 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2342 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2345 # Determine the LLVM native architecture for the target
2346 case "$llvm_cv_target_arch" in
2347 x86) LLVM_NATIVE_ARCH="X86" ;;
2348 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2349 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2352 ARCH=$llvm_cv_target_arch
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 if test -n "$CC"; then
2390 { echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6; }
2393 { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2399 if test -z "$ac_cv_prog_CC"; then
2401 # Extract the first word of "gcc", so it can be a program name with args.
2402 set dummy gcc; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_ac_ct_CC="gcc"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 echo "${ECHO_T}$ac_ct_CC" >&6; }
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2437 if test "x$ac_ct_CC" = x; then
2440 case $cross_compiling:$ac_tool_warned in
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet. If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2456 if test -z "$CC"; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}cc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2497 if test -z "$CC"; then
2498 # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517 ac_prog_rejected=yes
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test $ac_prog_rejected = yes; then
2529 # We found a bogon in the path, so make sure we never use it.
2530 set dummy $ac_cv_prog_CC
2532 if test $# != 0; then
2533 # We chose a different compiler from the bogus one.
2534 # However, it has the same basename, so the bogon will be chosen
2535 # first if we set CC to just the basename; use the full file name.
2537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543 if test -n "$CC"; then
2544 { echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2594 test -n "$CC" && break
2597 if test -z "$CC"; then
2599 for ac_prog in cl.exe
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 echo "${ECHO_T}$ac_ct_CC" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$ac_ct_CC" && break
2641 if test "x$ac_ct_CC" = x; then
2644 case $cross_compiling:$ac_tool_warned in
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned=yes ;;
2661 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO: checking for C compiler version" >&5
2669 ac_compiler=`set X $ac_compile; echo $2`
2670 { (ac_try="$ac_compiler --version >&5"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler --version >&5") 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680 { (ac_try="$ac_compiler -v >&5"
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compiler -v >&5") 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2690 { (ac_try="$ac_compiler -V >&5"
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler -V >&5") 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2721 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725 # List of possible output files, starting from the most likely.
2726 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2727 # only as a last resort. b.out is created by i960 compilers.
2728 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730 # The IRIX 6 linker writes into existing files which may not be
2731 # executable, retaining their permissions. Remove them first so a
2732 # subsequent execution test works.
2734 for ac_file in $ac_files
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 if { (ac_try="$ac_link_default"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_link_default") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; then
2753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2758 for ac_file in $ac_files
2760 test -f "$ac_file" || continue
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2765 # We found the default executable, but exeext='' is most
2769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 # We set ac_cv_exeext here because the later test for it is not
2774 # safe: cross compilers may not add the suffix if given an `-o'
2775 # argument, so we may need to know it at that point already.
2776 # Even if this section looks crufty: it has the advantage of
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&2;}
2793 { (exit 77); exit 77; }; }
2796 ac_exeext=$ac_cv_exeext
2797 { echo "$as_me:$LINENO: result: $ac_file" >&5
2798 echo "${ECHO_T}$ac_file" >&6; }
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2805 # If not cross compiling, check that we can run a simple program.
2806 if test "$cross_compiling" != yes; then
2807 if { ac_try='./$ac_file'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 if test "$cross_compiling" = maybe; then
2822 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2832 { echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6; }
2835 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2836 ac_clean_files=$ac_clean_files_save
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2840 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2841 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2842 echo "${ECHO_T}$cross_compiling" >&6; }
2844 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2845 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2846 if { (ac_try="$ac_link"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_link") 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2860 for ac_file in conftest.exe conftest conftest.*; do
2861 test -f "$ac_file" || continue
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2877 rm -f conftest$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2881 rm -f conftest.$ac_ext
2882 EXEEXT=$ac_cv_exeext
2884 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2886 if test "${ac_cv_objext+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.o conftest.obj
2905 if { (ac_try="$ac_compile"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 for ac_file in conftest.o conftest.obj conftest.*; do
2916 test -f "$ac_file" || continue;
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2937 echo "${ECHO_T}$ac_cv_objext" >&6; }
2938 OBJEXT=$ac_cv_objext
2940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3009 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3011 GCC=`test $ac_compiler_gnu = yes && echo yes`
3012 ac_test_CFLAGS=${CFLAGS+set}
3013 ac_save_CFLAGS=$CFLAGS
3014 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_cc_g+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 ac_save_c_werror_flag=$ac_c_werror_flag
3020 ac_c_werror_flag=yes
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3202 if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3211 if test "$GCC" = yes; then
3217 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3218 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3219 if test "${ac_cv_prog_cc_c89+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_prog_cc_c89=no
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3232 #include <sys/types.h>
3233 #include <sys/stat.h>
3234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235 struct buf { int x; };
3236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237 static char *e (p, i)
3243 static char *f (char * (*g) (char **, int), char **p, ...)
3248 s = g (p, va_arg (v,int));
3253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
3256 as 'x'. The following induces an error, until -std is added to get
3257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
3259 that's true only with -std. */
3260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267 int test (int i, double x);
3268 struct s1 {int (*f) (int a);};
3269 struct s2 {int (*f) (double a);};
3270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 CC="$ac_save_CC $ac_arg"
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_prog_cc_c89=$ac_arg
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 rm -f conftest.$ac_ext
3335 case "x$ac_cv_prog_cc_c89" in
3337 { echo "$as_me:$LINENO: result: none needed" >&5
3338 echo "${ECHO_T}none needed" >&6; } ;;
3340 { echo "$as_me:$LINENO: result: unsupported" >&5
3341 echo "${ECHO_T}unsupported" >&6; } ;;
3343 CC="$CC $ac_cv_prog_cc_c89"
3344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3345 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3363 # On Suns, sometimes $CPP names a directory.
3364 if test -n "$CPP" && test -d "$CPP"; then
3367 if test -z "$CPP"; then
3368 if test "${ac_cv_prog_CPP+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 for ac_c_preproc_warn_flag in '' yes
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3390 # include <limits.h>
3392 # include <assert.h>
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 if test -z "$ac_cpp_err"; then
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 # Broken: fails on valid input.
3428 rm -f conftest.err conftest.$ac_ext
3430 # OK, works on sane cases. Now check whether nonexistent headers
3431 # can be detected and how.
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <ac_nonexistent.h>
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 if test -z "$ac_cpp_err"; then
3463 # Broken: success on invalid input.
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 # Passes both tests.
3474 rm -f conftest.err conftest.$ac_ext
3477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478 rm -f conftest.err conftest.$ac_ext
3479 if $ac_preproc_ok; then
3491 { echo "$as_me:$LINENO: result: $CPP" >&5
3492 echo "${ECHO_T}$CPP" >&6; }
3494 for ac_c_preproc_warn_flag in '' yes
3496 # Use a header file that comes with gcc, so configuring glibc
3497 # with a fresh cross-compiler works.
3498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499 # <limits.h> exists even on freestanding compilers.
3500 # On the NeXT, cc -E runs the code through the compiler's parser,
3501 # not just through cpp. "Syntax error" is here to catch this case.
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3509 # include <limits.h>
3511 # include <assert.h>
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 if test -z "$ac_cpp_err"; then
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 # Broken: fails on valid input.
3547 rm -f conftest.err conftest.$ac_ext
3549 # OK, works on sane cases. Now check whether nonexistent headers
3550 # can be detected and how.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <ac_nonexistent.h>
3559 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567 grep -v '^ *+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 if test -z "$ac_cpp_err"; then
3582 # Broken: success on invalid input.
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 # Passes both tests.
3593 rm -f conftest.err conftest.$ac_ext
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617 if test "${ac_cv_path_GREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # Extract the first word of "grep ggrep" to use in msg output
3621 if test -z "$GREP"; then
3622 set dummy grep ggrep; ac_prog_name=$2
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3632 test -z "$as_dir" && as_dir=.
3633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 ac_count=`expr $ac_count + 1`
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666 $ac_path_GREP_found && break 3
3676 GREP="$ac_cv_path_GREP"
3677 if test -z "$GREP"; then
3678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cv_path_GREP=$GREP
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3691 GREP="$ac_cv_path_GREP"
3694 { echo "$as_me:$LINENO: checking for egrep" >&5
3695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700 then ac_cv_path_EGREP="$GREP -E"
3702 # Extract the first word of "egrep" to use in msg output
3703 if test -z "$EGREP"; then
3704 set dummy egrep; ac_prog_name=$2
3705 if test "${ac_cv_path_EGREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 ac_path_EGREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in egrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3719 # Check for GNU ac_path_EGREP and select it if it is found.
3720 # Check for GNU $ac_path_EGREP
3721 case `"$ac_path_EGREP" --version 2>&1` in
3723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 echo 'EGREP' >> "conftest.nl"
3733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 ac_count=`expr $ac_count + 1`
3736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_EGREP="$ac_path_EGREP"
3739 ac_path_EGREP_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 $ac_path_EGREP_found && break 3
3758 EGREP="$ac_cv_path_EGREP"
3759 if test -z "$EGREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3766 ac_cv_path_EGREP=$EGREP
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3774 EGREP="$ac_cv_path_EGREP"
3777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3779 if test "${ac_cv_header_stdc+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.$ac_ext <<_ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_compile") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 { (case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_try") 2>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; } &&
3825 { ac_try='test -s conftest.$ac_objext'
3826 { (case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_try") 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 ac_cv_header_stdc=yes
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 ac_cv_header_stdc=no
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 if test $ac_cv_header_stdc = yes; then
3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847 cat >conftest.$ac_ext <<_ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 $EGREP "memchr" >/dev/null 2>&1; then
3860 ac_cv_header_stdc=no
3866 if test $ac_cv_header_stdc = yes; then
3867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 $EGREP "free" >/dev/null 2>&1; then
3881 ac_cv_header_stdc=no
3887 if test $ac_cv_header_stdc = yes; then
3888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3889 if test "$cross_compiling" = yes; then
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3900 #if ((' ' & 0x0FF) == 0x020)
3901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904 # define ISLOWER(c) \
3905 (('a' <= (c) && (c) <= 'i') \
3906 || ('j' <= (c) && (c) <= 'r') \
3907 || ('s' <= (c) && (c) <= 'z'))
3908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916 for (i = 0; i < 256; i++)
3917 if (XOR (islower (i), ISLOWER (i))
3918 || toupper (i) != TOUPPER (i))
3923 rm -f conftest$ac_exeext
3924 if { (ac_try="$ac_link"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_link") 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3934 { (case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_try") 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3945 echo "$as_me: program exited with status $ac_status" >&5
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_cv_header_stdc=no
3952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3960 if test $ac_cv_header_stdc = yes; then
3962 cat >>confdefs.h <<\_ACEOF
3963 #define STDC_HEADERS 1
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 $ac_includes_default
3995 #include <$ac_header>
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compile") 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012 { (case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_try") 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 eval "$as_ac_Header=yes"
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 eval "$as_ac_Header=no"
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_res=`eval echo '${'$as_ac_Header'}'`
4042 { echo "$as_me:$LINENO: result: $ac_res" >&5
4043 echo "${ECHO_T}$ac_res" >&6; }
4044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4045 cat >>confdefs.h <<_ACEOF
4046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4054 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4055 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4056 if test "${ac_cv_c_bigendian+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 # See if sys/param.h defines the BYTE_ORDER macro.
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 #include <sys/param.h>
4072 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_try") 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_try") 2>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 # It does; now see whether it defined to BIG_ENDIAN or not.
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <sys/types.h>
4122 #include <sys/param.h>
4127 #if BYTE_ORDER != BIG_ENDIAN
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_c_bigendian=yes
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 ac_cv_c_bigendian=no
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 # It does not; compile a test program.
4183 if test "$cross_compiling" = yes; then
4184 # try to guess the endianness by grepping values into an object file
4185 ac_cv_c_bigendian=unknown
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4194 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4195 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4196 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4197 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4201 _ascii (); _ebcdic ();
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4241 ac_cv_c_bigendian=yes
4243 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4244 if test "$ac_cv_c_bigendian" = unknown; then
4245 ac_cv_c_bigendian=no
4247 # finding both strings is unlikely to happen, but who knows?
4248 ac_cv_c_bigendian=unknown
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 $ac_includes_default
4271 /* Are we little or big endian? From Harbison&Steele. */
4275 char c[sizeof (long int)];
4278 return u.c[sizeof (long int) - 1] == 1;
4284 rm -f conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_c_bigendian=no
4306 echo "$as_me: program exited with status $ac_status" >&5
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_c_bigendian=yes
4313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4323 case $ac_cv_c_bigendian in
4331 { { echo "$as_me:$LINENO: error: unknown endianness
4332 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4333 echo "$as_me: error: unknown endianness
4334 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4335 { (exit 1); exit 1; }; } ;;
4339 if test "$cross_compiling" = yes; then
4340 LLVM_CROSS_COMPILING=1
4343 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4344 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4345 if test "${ac_cv_build_exeext+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4349 ac_cv_build_exeext=.exe
4351 ac_build_prefix=${build_alias}-
4353 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4354 set dummy ${ac_build_prefix}gcc; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if test -n "$BUILD_CC"; then
4361 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 BUILD_CC=$ac_cv_prog_BUILD_CC
4381 if test -n "$BUILD_CC"; then
4382 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4383 echo "${ECHO_T}$BUILD_CC" >&6; }
4385 { echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6; }
4390 if test -z "$BUILD_CC"; then
4391 # Extract the first word of "gcc", so it can be a program name with args.
4392 set dummy gcc; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 if test -n "$BUILD_CC"; then
4399 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_BUILD_CC="gcc"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 BUILD_CC=$ac_cv_prog_BUILD_CC
4419 if test -n "$BUILD_CC"; then
4420 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421 echo "${ECHO_T}$BUILD_CC" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 if test -z "$BUILD_CC"; then
4429 # Extract the first word of "cc", so it can be a program name with args.
4430 set dummy cc; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4448 ac_prog_rejected=yes
4451 ac_cv_prog_BUILD_CC="cc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 if test $ac_prog_rejected = yes; then
4460 # We found a bogon in the path, so make sure we never use it.
4461 set dummy $ac_cv_prog_BUILD_CC
4463 if test $# != 0; then
4464 # We chose a different compiler from the bogus one.
4465 # However, it has the same basename, so the bogon will be chosen
4466 # first if we set BUILD_CC to just the basename; use the full file name.
4468 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4473 BUILD_CC=$ac_cv_prog_BUILD_CC
4474 if test -n "$BUILD_CC"; then
4475 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 { echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6; }
4485 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4486 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4487 { (exit 1); exit 1; }; }
4488 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490 echo 'int main () { return 0; }' > conftest.$ac_ext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4493 (eval $ac_build_link) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; then
4497 for file in conftest.*; do
4499 *.c | *.o | *.obj | *.dSYM) ;;
4500 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4504 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4505 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4506 { (exit 1); exit 1; }; }
4509 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4514 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4515 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4516 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4517 ac_build_exeext=$BUILD_EXEEXT
4519 ac_build_prefix=${build_alias}-
4520 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4521 set dummy ${ac_build_prefix}g++; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 if test -n "$BUILD_CXX"; then
4528 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4548 if test -n "$BUILD_CXX"; then
4549 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4550 echo "${ECHO_T}$BUILD_CXX" >&6; }
4552 { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4557 if test -z "$BUILD_CXX"; then
4558 # Extract the first word of "g++", so it can be a program name with args.
4559 set dummy g++; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 if test -n "$BUILD_CXX"; then
4566 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_BUILD_CXX="g++"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4586 if test -n "$BUILD_CXX"; then
4587 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4588 echo "${ECHO_T}$BUILD_CXX" >&6; }
4590 { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4595 if test -z "$BUILD_CXX"; then
4596 # Extract the first word of "c++", so it can be a program name with args.
4597 set dummy c++; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if test -n "$BUILD_CXX"; then
4604 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4615 ac_prog_rejected=yes
4618 ac_cv_prog_BUILD_CXX="c++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 if test $ac_prog_rejected = yes; then
4627 # We found a bogon in the path, so make sure we never use it.
4628 set dummy $ac_cv_prog_BUILD_CXX
4630 if test $# != 0; then
4631 # We chose a different compiler from the bogus one.
4632 # However, it has the same basename, so the bogon will be chosen
4633 # first if we set BUILD_CXX to just the basename; use the full file name.
4635 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4640 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641 if test -n "$BUILD_CXX"; then
4642 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643 echo "${ECHO_T}$BUILD_CXX" >&6; }
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4653 LLVM_CROSS_COMPILING=0
4657 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4668 # Check whether --enable-optimized was given.
4669 if test "${enable_optimized+set}" = set; then
4670 enableval=$enable_optimized;
4675 if test ${enableval} = "no" ; then
4679 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4683 # Check whether --enable-profiling was given.
4684 if test "${enable_profiling+set}" = set; then
4685 enableval=$enable_profiling;
4690 if test ${enableval} = "no" ; then
4694 ENABLE_PROFILING=ENABLE_PROFILING=1
4698 # Check whether --enable-assertions was given.
4699 if test "${enable_assertions+set}" = set; then
4700 enableval=$enable_assertions;
4705 if test ${enableval} = "yes" ; then
4709 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4713 # Check whether --enable-expensive-checks was given.
4714 if test "${enable_expensive_checks+set}" = set; then
4715 enableval=$enable_expensive_checks;
4720 if test ${enableval} = "yes" ; then
4721 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4723 EXPENSIVE_CHECKS=yes
4726 ENABLE_EXPENSIVE_CHECKS=
4732 # Check whether --enable-debug-runtime was given.
4733 if test "${enable_debug_runtime+set}" = set; then
4734 enableval=$enable_debug_runtime;
4739 if test ${enableval} = "no" ; then
4743 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4747 # Check whether --enable-debug-symbols was given.
4748 if test "${enable_debug_symbols+set}" = set; then
4749 enableval=$enable_debug_symbols;
4754 if test ${enableval} = "no" ; then
4758 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4762 # Check whether --enable-jit was given.
4763 if test "${enable_jit+set}" = set; then
4764 enableval=$enable_jit;
4769 if test ${enableval} = "no"
4774 case "$llvm_cv_target_arch" in
4775 x86) TARGET_HAS_JIT=1
4777 Sparc) TARGET_HAS_JIT=0
4779 PowerPC) TARGET_HAS_JIT=1
4781 x86_64) TARGET_HAS_JIT=1
4783 Alpha) TARGET_HAS_JIT=1
4785 ARM) TARGET_HAS_JIT=1
4787 Mips) TARGET_HAS_JIT=0
4789 PIC16) TARGET_HAS_JIT=0
4791 XCore) TARGET_HAS_JIT=0
4793 MSP430) TARGET_HAS_JIT=0
4795 SystemZ) TARGET_HAS_JIT=0
4797 Blackfin) TARGET_HAS_JIT=0
4799 MBlaze) TARGET_HAS_JIT=0
4806 # Check whether --enable-doxygen was given.
4807 if test "${enable_doxygen+set}" = set; then
4808 enableval=$enable_doxygen;
4813 case "$enableval" in
4814 yes) ENABLE_DOXYGEN=1
4816 no) ENABLE_DOXYGEN=0
4818 default) ENABLE_DOXYGEN=0
4820 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4821 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4822 { (exit 1); exit 1; }; } ;;
4825 # Check whether --enable-threads was given.
4826 if test "${enable_threads+set}" = set; then
4827 enableval=$enable_threads;
4832 case "$enableval" in
4833 yes) ENABLE_THREADS=1
4835 no) ENABLE_THREADS=0
4837 default) ENABLE_THREADS=1
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4844 cat >>confdefs.h <<_ACEOF
4845 #define ENABLE_THREADS $ENABLE_THREADS
4849 # Check whether --enable-pic was given.
4850 if test "${enable_pic+set}" = set; then
4851 enableval=$enable_pic;
4856 case "$enableval" in
4861 default) ENABLE_PIC=1
4863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_PIC $ENABLE_PIC
4873 # Check whether --enable-shared was given.
4874 if test "${enable_shared+set}" = set; then
4875 enableval=$enable_shared;
4880 case "$enableval" in
4881 yes) ENABLE_SHARED=1
4885 default) ENABLE_SHARED=0
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4893 # Check whether --enable-targets was given.
4894 if test "${enable_targets+set}" = set; then
4895 enableval=$enable_targets;
4900 if test "$enableval" = host-only ; then
4903 case "$enableval" in
4904 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4905 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4907 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4908 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4910 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4911 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4912 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4913 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4914 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4915 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4916 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4917 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4918 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4919 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4920 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4922 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4923 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4924 host) case "$llvm_cv_target_arch" in
4925 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4926 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4928 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4929 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4930 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4931 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4932 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4933 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4937 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4938 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940 echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4943 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4950 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4953 # Determine whether we are building LLVM support for the native architecture.
4954 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4955 for a_target in $TARGETS_TO_BUILD; do
4956 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4957 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4959 cat >>confdefs.h <<_ACEOF
4960 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4966 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4967 # target feature def files.
4968 LLVM_ENUM_TARGETS=""
4969 LLVM_ENUM_ASM_PRINTERS=""
4970 LLVM_ENUM_ASM_PARSERS=""
4971 LLVM_ENUM_DISASSEMBLERS=""
4972 for target_to_build in $TARGETS_TO_BUILD; do
4973 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4974 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4975 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4977 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4978 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4980 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4981 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4989 # Check whether --enable-cbe-printf-a was given.
4990 if test "${enable_cbe_printf_a+set}" = set; then
4991 enableval=$enable_cbe_printf_a;
4996 case "$enableval" in
4997 yes) ENABLE_CBE_PRINTF_A=1
4999 no) ENABLE_CBE_PRINTF_A=0
5001 default) ENABLE_CBE_PRINTF_A=1
5003 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5004 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5005 { (exit 1); exit 1; }; } ;;
5008 cat >>confdefs.h <<_ACEOF
5009 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5014 # Check whether --with-llvmgccdir was given.
5015 if test "${with_llvmgccdir+set}" = set; then
5016 withval=$with_llvmgccdir;
5022 default) WITH_LLVMGCCDIR=default ;;
5023 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5024 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5025 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5030 # Check whether --with-llvmgcc was given.
5031 if test "${with_llvmgcc+set}" = set; then
5032 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5038 # Check whether --with-llvmgxx was given.
5039 if test "${with_llvmgxx+set}" = set; then
5040 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5045 if test -n "$LLVMGCC"; then
5046 LLVMGCCCOMMAND="$LLVMGCC"
5049 if test -n "$LLVMGXX"; then
5050 LLVMGXXCOMMAND="$LLVMGXX"
5053 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5054 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5055 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5056 { (exit 1); exit 1; }; };
5059 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5060 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5061 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5062 { (exit 1); exit 1; }; };
5066 # Check whether --with-clang was given.
5067 if test "${with_clang+set}" = set; then
5068 withval=$with_clang;
5075 # Check whether --with-built-clang was given.
5076 if test "${with_built_clang+set}" = set; then
5077 withval=$with_built_clang;
5079 with_built_clang=check
5083 { echo "$as_me:$LINENO: checking clang compiler" >&5
5084 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5087 if test "$with_clang" != "default"; then
5088 WITH_CLANGPATH="$with_clang"
5089 if ! test -x "$WITH_CLANGPATH"; then
5090 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5091 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5092 { (exit 1); exit 1; }; }
5094 elif test "$with_built_clang" = "yes"; then
5096 elif test "$with_built_clang" = "no"; then
5099 if test "$with_built_clang" != "check"; then
5100 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5101 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5102 { (exit 1); exit 1; }; }
5105 if test -f ${srcdir}/tools/clang/README.txt; then
5110 if ! test -z "$WITH_CLANGPATH"; then
5111 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5112 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5113 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5114 elif test "$WITH_BUILT_CLANG" = "1"; then
5115 { echo "$as_me:$LINENO: result: built" >&5
5116 echo "${ECHO_T}built" >&6; }
5118 { echo "$as_me:$LINENO: result: none" >&5
5119 echo "${ECHO_T}none" >&6; }
5121 CLANGPATH=$WITH_CLANGPATH
5123 CLANGXXPATH=$WITH_CLANGXXPATH
5125 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5129 # Check whether --with-optimize-option was given.
5130 if test "${with_optimize_option+set}" = set; then
5131 withval=$with_optimize_option;
5136 { echo "$as_me:$LINENO: checking optimization flags" >&5
5137 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5140 case "$llvm_cv_os_type" in
5141 MingW) optimize_option=-O3 ;;
5142 *) optimize_option=-O2 ;;
5144 *) optimize_option="$withval" ;;
5146 OPTIMIZE_OPTION=$optimize_option
5148 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5149 echo "${ECHO_T}$optimize_option" >&6; }
5152 # Check whether --with-extra-options was given.
5153 if test "${with_extra_options+set}" = set; then
5154 withval=$with_extra_options;
5160 default) EXTRA_OPTIONS= ;;
5161 *) EXTRA_OPTIONS=$withval ;;
5163 EXTRA_OPTIONS=$EXTRA_OPTIONS
5166 # Check whether --enable-bindings was given.
5167 if test "${enable_bindings+set}" = set; then
5168 enableval=$enable_bindings;
5173 BINDINGS_TO_BUILD=""
5174 case "$enableval" in
5175 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5176 all ) BINDINGS_TO_BUILD="ocaml" ;;
5177 none | no) BINDINGS_TO_BUILD="" ;;
5178 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5179 case "$a_binding" in
5180 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5181 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5182 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5190 # Check whether --with-ocaml-libdir was given.
5191 if test "${with_ocaml_libdir+set}" = set; then
5192 withval=$with_ocaml_libdir;
5198 auto) with_ocaml_libdir="$withval" ;;
5199 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5200 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5201 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5206 # Check whether --with-c-include-dirs was given.
5207 if test "${with_c_include_dirs+set}" = set; then
5208 withval=$with_c_include_dirs;
5214 cat >>confdefs.h <<_ACEOF
5215 #define C_INCLUDE_DIRS "$withval"
5220 # Check whether --with-cxx-include-root was given.
5221 if test "${with_cxx_include_root+set}" = set; then
5222 withval=$with_cxx_include_root;
5228 cat >>confdefs.h <<_ACEOF
5229 #define CXX_INCLUDE_ROOT "$withval"
5234 # Check whether --with-cxx-include-arch was given.
5235 if test "${with_cxx_include_arch+set}" = set; then
5236 withval=$with_cxx_include_arch;
5242 cat >>confdefs.h <<_ACEOF
5243 #define CXX_INCLUDE_ARCH "$withval"
5248 # Check whether --with-cxx-include-32bit-dir was given.
5249 if test "${with_cxx_include_32bit_dir+set}" = set; then
5250 withval=$with_cxx_include_32bit_dir;
5256 cat >>confdefs.h <<_ACEOF
5257 #define CXX_INCLUDE_32BIT_DIR "$withval"
5262 # Check whether --with-cxx-include-64bit-dir was given.
5263 if test "${with_cxx_include_64bit_dir+set}" = set; then
5264 withval=$with_cxx_include_64bit_dir;
5270 cat >>confdefs.h <<_ACEOF
5271 #define CXX_INCLUDE_64BIT_DIR "$withval"
5276 # Check whether --with-binutils-include was given.
5277 if test "${with_binutils_include+set}" = set; then
5278 withval=$with_binutils_include;
5284 default) WITH_BINUTILS_INCDIR=default ;;
5285 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5286 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5287 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5288 { (exit 1); exit 1; }; } ;;
5290 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5291 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5293 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5294 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5295 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5296 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5297 { (exit 1); exit 1; }; };
5301 # Check whether --enable-libffi was given.
5302 if test "${enable_libffi+set}" = set; then
5303 enableval=$enable_libffi; case "$enableval" in
5304 yes) llvm_cv_enable_libffi="yes" ;;
5305 no) llvm_cv_enable_libffi="no" ;;
5306 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5307 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5308 { (exit 1); exit 1; }; } ;;
5311 llvm_cv_enable_libffi=no
5315 if test "$llvm_cv_os_type" = "Win32" ; then
5321 # Check whether --enable-llvmc-dynamic was given.
5322 if test "${enable_llvmc_dynamic+set}" = set; then
5323 enableval=$enable_llvmc_dynamic;
5325 enableval=$llvmc_dynamic
5328 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5332 ENABLE_LLVMC_DYNAMIC=
5336 # Check whether --enable-llvmc-dynamic-plugins was given.
5337 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5338 enableval=$enable_llvmc_dynamic_plugins;
5343 if test ${enableval} = "yes" ; then
5344 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5347 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5359 # On Suns, sometimes $CPP names a directory.
5360 if test -n "$CPP" && test -d "$CPP"; then
5363 if test -z "$CPP"; then
5364 if test "${ac_cv_prog_CPP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 # Double quotes because CPP needs to be expanded
5368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5371 for ac_c_preproc_warn_flag in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5414 if test -z "$ac_cpp_err"; then
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat >conftest.$ac_ext <<_ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <ac_nonexistent.h>
5436 if { (ac_try="$ac_cpp conftest.$ac_ext"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_c_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5458 if test -z "$ac_cpp_err"; then
5459 # Broken: success on invalid input.
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 # Passes both tests.
5470 rm -f conftest.err conftest.$ac_ext
5473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474 rm -f conftest.err conftest.$ac_ext
5475 if $ac_preproc_ok; then
5487 { echo "$as_me:$LINENO: result: $CPP" >&5
5488 echo "${ECHO_T}$CPP" >&6; }
5490 for ac_c_preproc_warn_flag in '' yes
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 # include <limits.h>
5507 # include <assert.h>
5511 if { (ac_try="$ac_cpp conftest.$ac_ext"
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533 if test -z "$ac_cpp_err"; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 # Broken: fails on valid input.
5543 rm -f conftest.err conftest.$ac_ext
5545 # OK, works on sane cases. Now check whether nonexistent headers
5546 # can be detected and how.
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5555 if { (ac_try="$ac_cpp conftest.$ac_ext"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev/null; then
5568 if test -s conftest.err; then
5569 ac_cpp_err=$ac_c_preproc_warn_flag
5570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5577 if test -z "$ac_cpp_err"; then
5578 # Broken: success on invalid input.
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 # Passes both tests.
5589 rm -f conftest.err conftest.$ac_ext
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then
5597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 if test -n "$CC"; then
5647 { echo "$as_me:$LINENO: result: $CC" >&5
5648 echo "${ECHO_T}$CC" >&6; }
5650 { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5655 test -n "$CC" && break
5658 if test -z "$CC"; then
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$ac_ct_CC"; then
5670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_CC="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692 echo "${ECHO_T}$ac_ct_CC" >&6; }
5694 { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5699 test -n "$ac_ct_CC" && break
5702 if test "x$ac_ct_CC" = x; then
5705 case $cross_compiling:$ac_tool_warned in
5707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet. If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&5
5710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711 whose name does not start with the host triplet. If you think this
5712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713 ac_tool_warned=yes ;;
5720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." >&5
5722 echo "$as_me: error: no acceptable C compiler found in \$PATH
5723 See \`config.log' for more details." >&2;}
5724 { (exit 1); exit 1; }; }
5726 # Provide some information about the compiler.
5727 echo "$as_me:$LINENO: checking for C compiler version" >&5
5728 ac_compiler=`set X $ac_compile; echo $2`
5729 { (ac_try="$ac_compiler --version >&5"
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739 { (ac_try="$ac_compiler -v >&5"
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749 { (ac_try="$ac_compiler -V >&5"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
5760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798 { (case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5829 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831 GCC=`test $ac_compiler_gnu = yes && echo yes`
5832 ac_test_CFLAGS=${CFLAGS+set}
5833 ac_save_CFLAGS=$CFLAGS
5834 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_c_werror_flag=$ac_save_c_werror_flag
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_c_werror_flag=$ac_save_c_werror_flag
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6022 if test "$ac_test_CFLAGS" = set; then
6023 CFLAGS=$ac_save_CFLAGS
6024 elif test $ac_cv_prog_cc_g = yes; then
6025 if test "$GCC" = yes; then
6031 if test "$GCC" = yes; then
6037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_cc_c89+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_cv_prog_cc_c89=no
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6068 s = g (p, va_arg (v,int));
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104 CC="$ac_save_CC $ac_arg"
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_c89=$ac_arg
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6147 rm -f core conftest.err conftest.$ac_objext
6148 test "x$ac_cv_prog_cc_c89" != "xno" && break
6150 rm -f conftest.$ac_ext
6155 case "x$ac_cv_prog_cc_c89" in
6157 { echo "$as_me:$LINENO: result: none needed" >&5
6158 echo "${ECHO_T}none needed" >&6; } ;;
6160 { echo "$as_me:$LINENO: result: unsupported" >&5
6161 echo "${ECHO_T}unsupported" >&6; } ;;
6163 CC="$CC $ac_cv_prog_cc_c89"
6164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176 ac_cpp='$CXXCPP $CPPFLAGS'
6177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6180 if test -z "$CXX"; then
6181 if test -n "$CCC"; then
6184 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_CXX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$CXX"; then
6195 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 if test -n "$CXX"; then
6216 { echo "$as_me:$LINENO: result: $CXX" >&5
6217 echo "${ECHO_T}$CXX" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6224 test -n "$CXX" && break
6227 if test -z "$CXX"; then
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 if test -n "$ac_ct_CXX"; then
6239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_CXX="$ac_prog"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259 if test -n "$ac_ct_CXX"; then
6260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 test -n "$ac_ct_CXX" && break
6271 if test "x$ac_ct_CXX" = x; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet. If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned=yes ;;
6290 # Provide some information about the compiler.
6291 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292 ac_compiler=`set X $ac_compile; echo $2`
6293 { (ac_try="$ac_compiler --version >&5"
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compiler --version >&5") 2>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }
6303 { (ac_try="$ac_compiler -v >&5"
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compiler -v >&5") 2>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }
6313 { (ac_try="$ac_compiler -V >&5"
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compiler -V >&5") 2>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }
6324 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compile") 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395 GXX=`test $ac_compiler_gnu = yes && echo yes`
6396 ac_test_CXXFLAGS=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS=$CXXFLAGS
6398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400 if test "${ac_cv_prog_cxx_g+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag=yes
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437 { (case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_try") 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_cv_prog_cxx_g=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1 >conftest.err
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_try") 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 ac_cv_prog_cxx_g=yes
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586 if test "$ac_test_CXXFLAGS" = set; then
6587 CXXFLAGS=$ac_save_CXXFLAGS
6588 elif test $ac_cv_prog_cxx_g = yes; then
6589 if test "$GXX" = yes; then
6595 if test "$GXX" = yes; then
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610 if test "${lt_cv_path_NM+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 if test -n "$NM"; then
6614 # Let the user override the test.
6617 lt_nm_to_check="${ac_tool_prefix}nm"
6618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619 lt_nm_to_check="$lt_nm_to_check nm"
6621 for lt_tmp_nm in $lt_nm_to_check; do
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625 test -z "$ac_dir" && ac_dir=.
6626 tmp_nm="$ac_dir/$lt_tmp_nm"
6627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628 # Check to see if the nm accepts a BSD-compat flag.
6629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630 # nm: unknown option "B" ignored
6631 # Tru64's nm complains that /dev/null is an invalid object file
6632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633 */dev/null* | *'Invalid file or object type'*)
6634 lt_cv_path_NM="$tmp_nm -B"
6638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640 lt_cv_path_NM="$tmp_nm -p"
6644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645 continue # so that we can try to find one that supports BSD flags
6654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6663 { echo "$as_me:$LINENO: checking for GNU make" >&5
6664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665 if test "${llvm_cv_gnu_make_command+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 llvm_cv_gnu_make_command=''
6669 for a in "$MAKE" make gmake gnumake ; do
6670 if test -z "$a" ; then continue ; fi ;
6671 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6673 llvm_cv_gnu_make_command=$a ;
6678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685 echo "${ECHO_T}\"Not found\"" >&6; };
6689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6692 if test "$LN_S" = "ln -s"; then
6693 { echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6; }
6696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697 echo "${ECHO_T}no, using $LN_S" >&6; }
6700 # Extract the first word of "cmp", so it can be a program name with args.
6701 set dummy cmp; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_CMP+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6732 if test -n "$CMP"; then
6733 { echo "$as_me:$LINENO: result: $CMP" >&5
6734 echo "${ECHO_T}$CMP" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 # Extract the first word of "cp", so it can be a program name with args.
6742 set dummy cp; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6773 if test -n "$CP"; then
6774 { echo "$as_me:$LINENO: result: $CP" >&5
6775 echo "${ECHO_T}$CP" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 # Extract the first word of "date", so it can be a program name with args.
6783 set dummy date; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_DATE+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6813 DATE=$ac_cv_path_DATE
6814 if test -n "$DATE"; then
6815 { echo "$as_me:$LINENO: result: $DATE" >&5
6816 echo "${ECHO_T}$DATE" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 # Extract the first word of "find", so it can be a program name with args.
6824 set dummy find; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_FIND+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6854 FIND=$ac_cv_path_FIND
6855 if test -n "$FIND"; then
6856 { echo "$as_me:$LINENO: result: $FIND" >&5
6857 echo "${ECHO_T}$FIND" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6864 # Extract the first word of "grep", so it can be a program name with args.
6865 set dummy grep; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_GREP+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6895 GREP=$ac_cv_path_GREP
6896 if test -n "$GREP"; then
6897 { echo "$as_me:$LINENO: result: $GREP" >&5
6898 echo "${ECHO_T}$GREP" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "mkdir", so it can be a program name with args.
6906 set dummy mkdir; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_MKDIR+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6936 MKDIR=$ac_cv_path_MKDIR
6937 if test -n "$MKDIR"; then
6938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939 echo "${ECHO_T}$MKDIR" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "mv", so it can be a program name with args.
6947 set dummy mv; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_MV+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6978 if test -n "$MV"; then
6979 { echo "$as_me:$LINENO: result: $MV" >&5
6980 echo "${ECHO_T}$MV" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018 echo "${ECHO_T}$RANLIB" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_RANLIB="ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 if test "x$ac_ct_RANLIB" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet. If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7077 RANLIB=$ac_ct_RANLIB
7080 RANLIB="$ac_cv_prog_RANLIB"
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}ar; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_prog_AR+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test -n "$AR"; then
7092 ac_cv_prog_AR="$AR" # Let the user override the test.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_AR="${ac_tool_prefix}ar"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 if test -n "$AR"; then
7113 { echo "$as_me:$LINENO: result: $AR" >&5
7114 echo "${ECHO_T}$AR" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7122 if test -z "$ac_cv_prog_AR"; then
7124 # Extract the first word of "ar", so it can be a program name with args.
7125 set dummy ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 if test -n "$ac_ct_AR"; then
7132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_ac_ct_AR="ar"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7152 if test -n "$ac_ct_AR"; then
7153 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7154 echo "${ECHO_T}$ac_ct_AR" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7160 if test "x$ac_ct_AR" = x; then
7163 case $cross_compiling:$ac_tool_warned in
7165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7166 whose name does not start with the host triplet. If you think this
7167 configuration is useful to you, please write to autoconf@gnu.org." >&5
7168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7169 whose name does not start with the host triplet. If you think this
7170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7171 ac_tool_warned=yes ;;
7179 # Extract the first word of "rm", so it can be a program name with args.
7180 set dummy rm; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_RM+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7211 if test -n "$RM"; then
7212 { echo "$as_me:$LINENO: result: $RM" >&5
7213 echo "${ECHO_T}$RM" >&6; }
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "sed", so it can be a program name with args.
7221 set dummy sed; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_SED+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7252 if test -n "$SED"; then
7253 { echo "$as_me:$LINENO: result: $SED" >&5
7254 echo "${ECHO_T}$SED" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 # Extract the first word of "tar", so it can be a program name with args.
7262 set dummy tar; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_TAR+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7293 if test -n "$TAR"; then
7294 { echo "$as_me:$LINENO: result: $TAR" >&5
7295 echo "${ECHO_T}$TAR" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "pwd", so it can be a program name with args.
7303 set dummy pwd; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_BINPWD+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7333 BINPWD=$ac_cv_path_BINPWD
7334 if test -n "$BINPWD"; then
7335 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7336 echo "${ECHO_T}$BINPWD" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7344 # Extract the first word of "Graphviz", so it can be a program name with args.
7345 set dummy Graphviz; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7375 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7376 if test -n "$GRAPHVIZ"; then
7377 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7378 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7380 { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7385 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7387 cat >>confdefs.h <<\_ACEOF
7388 #define HAVE_GRAPHVIZ 1
7391 if test "$llvm_cv_os_type" = "MingW" ; then
7392 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7395 cat >>confdefs.h <<_ACEOF
7396 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7400 # Extract the first word of "dot", so it can be a program name with args.
7401 set dummy dot; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_DOT+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7432 if test -n "$DOT"; then
7433 { echo "$as_me:$LINENO: result: $DOT" >&5
7434 echo "${ECHO_T}$DOT" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 if test "$DOT" != "echo dot" ; then
7443 cat >>confdefs.h <<\_ACEOF
7447 if test "$llvm_cv_os_type" = "MingW" ; then
7448 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7451 cat >>confdefs.h <<_ACEOF
7452 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7456 # Extract the first word of "fdp", so it can be a program name with args.
7457 set dummy fdp; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_FDP+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7488 if test -n "$FDP"; then
7489 { echo "$as_me:$LINENO: result: $FDP" >&5
7490 echo "${ECHO_T}$FDP" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 if test "$FDP" != "echo fdp" ; then
7499 cat >>confdefs.h <<\_ACEOF
7503 if test "$llvm_cv_os_type" = "MingW" ; then
7504 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7507 cat >>confdefs.h <<_ACEOF
7508 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7512 # Extract the first word of "neato", so it can be a program name with args.
7513 set dummy neato; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_NEATO+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7543 NEATO=$ac_cv_path_NEATO
7544 if test -n "$NEATO"; then
7545 { echo "$as_me:$LINENO: result: $NEATO" >&5
7546 echo "${ECHO_T}$NEATO" >&6; }
7548 { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7553 if test "$NEATO" != "echo neato" ; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_NEATO 1
7559 if test "$llvm_cv_os_type" = "MingW" ; then
7560 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7563 cat >>confdefs.h <<_ACEOF
7564 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7568 # Extract the first word of "twopi", so it can be a program name with args.
7569 set dummy twopi; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_TWOPI+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7599 TWOPI=$ac_cv_path_TWOPI
7600 if test -n "$TWOPI"; then
7601 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7602 echo "${ECHO_T}$TWOPI" >&6; }
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7609 if test "$TWOPI" != "echo twopi" ; then
7611 cat >>confdefs.h <<\_ACEOF
7612 #define HAVE_TWOPI 1
7615 if test "$llvm_cv_os_type" = "MingW" ; then
7616 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7619 cat >>confdefs.h <<_ACEOF
7620 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7624 # Extract the first word of "circo", so it can be a program name with args.
7625 set dummy circo; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_CIRCO+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7655 CIRCO=$ac_cv_path_CIRCO
7656 if test -n "$CIRCO"; then
7657 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7658 echo "${ECHO_T}$CIRCO" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 if test "$CIRCO" != "echo circo" ; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_CIRCO 1
7671 if test "$llvm_cv_os_type" = "MingW" ; then
7672 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7675 cat >>confdefs.h <<_ACEOF
7676 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7680 for ac_prog in gv gsview32
7682 # Extract the first word of "$ac_prog", so it can be a program name with args.
7683 set dummy $ac_prog; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_path_GV+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 if test -n "$GV"; then
7714 { echo "$as_me:$LINENO: result: $GV" >&5
7715 echo "${ECHO_T}$GV" >&6; }
7717 { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7722 test -n "$GV" && break
7724 test -n "$GV" || GV="echo gv"
7726 if test "$GV" != "echo gv" ; then
7728 cat >>confdefs.h <<\_ACEOF
7732 if test "$llvm_cv_os_type" = "MingW" ; then
7733 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7736 cat >>confdefs.h <<_ACEOF
7737 #define LLVM_PATH_GV "$GV${EXEEXT}"
7741 # Extract the first word of "dotty", so it can be a program name with args.
7742 set dummy dotty; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_DOTTY+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7772 DOTTY=$ac_cv_path_DOTTY
7773 if test -n "$DOTTY"; then
7774 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7775 echo "${ECHO_T}$DOTTY" >&6; }
7777 { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7782 if test "$DOTTY" != "echo dotty" ; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_DOTTY 1
7788 if test "$llvm_cv_os_type" = "MingW" ; then
7789 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7792 cat >>confdefs.h <<_ACEOF
7793 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7799 # Extract the first word of "perl", so it can be a program name with args.
7800 set dummy perl; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_path_PERL+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7830 PERL=$ac_cv_path_PERL
7831 if test -n "$PERL"; then
7832 { echo "$as_me:$LINENO: result: $PERL" >&5
7833 echo "${ECHO_T}$PERL" >&6; }
7835 { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7840 if test "$PERL" != "none"; then
7841 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7842 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7843 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7844 { echo "$as_me:$LINENO: result: yes" >&5
7845 echo "${ECHO_T}yes" >&6; }
7848 { echo "$as_me:$LINENO: result: not found" >&5
7849 echo "${ECHO_T}not found" >&6; }
7854 if test x"$PERL" = xnone; then
7857 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7858 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7859 { (exit 1); exit 1; }; }
7865 # Find a good install program. We prefer a C program (faster),
7866 # so one script is as good as another. But avoid the broken or
7867 # incompatible versions:
7868 # SysV /etc/install, /usr/sbin/install
7869 # SunOS /usr/etc/install
7870 # IRIX /sbin/install
7872 # AmigaOS /C/install, which installs bootblocks on floppy discs
7873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7876 # OS/2's system install, which has a completely different semantic
7877 # ./install, which can be erroneously created by make from ./install.sh.
7878 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7880 if test -z "$INSTALL"; then
7881 if test "${ac_cv_path_install+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir=.
7889 # Account for people who put trailing slashes in PATH elements.
7891 ./ | .// | /cC/* | \
7892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7896 # OSF1 and SCO ODT 3.0 have their own names for install.
7897 # Don't use installbsd from OSF since it installs stuff as root
7899 for ac_prog in ginstall scoinst install; do
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7902 if test $ac_prog = install &&
7903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7904 # AIX install. It has an incompatible calling convention.
7906 elif test $ac_prog = install &&
7907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # program-specific install script used by HP pwplus--don't use.
7911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7924 if test "${ac_cv_path_install+set}" = set; then
7925 INSTALL=$ac_cv_path_install
7927 # As a last resort, use the slow shell script. Don't cache a
7928 # value for INSTALL within a source directory, because that will
7929 # break other packages using the cache if that directory is
7930 # removed, or if the value is a relative name.
7931 INSTALL=$ac_install_sh
7934 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7935 echo "${ECHO_T}$INSTALL" >&6; }
7937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7938 # It thinks the first close brace ends the variable substitution.
7939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7946 # Extract the first word of "bzip2", so it can be a program name with args.
7947 set dummy bzip2; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_BZIP2+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 BZIP2=$ac_cv_path_BZIP2
7977 if test -n "$BZIP2"; then
7978 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7979 echo "${ECHO_T}$BZIP2" >&6; }
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7986 # Extract the first word of "doxygen", so it can be a program name with args.
7987 set dummy doxygen; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 DOXYGEN=$ac_cv_path_DOXYGEN
8017 if test -n "$DOXYGEN"; then
8018 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8019 echo "${ECHO_T}$DOXYGEN" >&6; }
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8026 # Extract the first word of "groff", so it can be a program name with args.
8027 set dummy groff; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_GROFF+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 GROFF=$ac_cv_path_GROFF
8057 if test -n "$GROFF"; then
8058 { echo "$as_me:$LINENO: result: $GROFF" >&5
8059 echo "${ECHO_T}$GROFF" >&6; }
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8066 # Extract the first word of "gzip", so it can be a program name with args.
8067 set dummy gzip; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_path_GZIP+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 GZIP=$ac_cv_path_GZIP
8097 if test -n "$GZIP"; then
8098 { echo "$as_me:$LINENO: result: $GZIP" >&5
8099 echo "${ECHO_T}$GZIP" >&6; }
8101 { echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6; }
8106 # Extract the first word of "pod2html", so it can be a program name with args.
8107 set dummy pod2html; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_path_POD2HTML+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 POD2HTML=$ac_cv_path_POD2HTML
8137 if test -n "$POD2HTML"; then
8138 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8139 echo "${ECHO_T}$POD2HTML" >&6; }
8141 { echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6; }
8146 # Extract the first word of "pod2man", so it can be a program name with args.
8147 set dummy pod2man; ac_word=$2
8148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8150 if test "${ac_cv_path_POD2MAN+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 POD2MAN=$ac_cv_path_POD2MAN
8177 if test -n "$POD2MAN"; then
8178 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8179 echo "${ECHO_T}$POD2MAN" >&6; }
8181 { echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6; }
8186 # Extract the first word of "runtest", so it can be a program name with args.
8187 set dummy runtest; ac_word=$2
8188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190 if test "${ac_cv_path_RUNTEST+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 RUNTEST=$ac_cv_path_RUNTEST
8217 if test -n "$RUNTEST"; then
8218 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8219 echo "${ECHO_T}$RUNTEST" >&6; }
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8228 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8229 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8231 # Check whether --with-tclinclude was given.
8232 if test "${with_tclinclude+set}" = set; then
8233 withval=$with_tclinclude; with_tclinclude=${withval}
8238 if test "${ac_cv_path_tclsh+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 if test x"${with_tclinclude}" != x ; then
8243 if test -f ${with_tclinclude}/tclsh ; then
8244 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8245 elif test -f ${with_tclinclude}/src/tclsh ; then
8246 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8248 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8249 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8250 { (exit 1); exit 1; }; }
8256 if test x"${ac_cv_path_tclsh}" = x ; then
8257 { echo "$as_me:$LINENO: result: none" >&5
8258 echo "${ECHO_T}none" >&6; }
8259 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
8261 # Extract the first word of "$ac_prog", so it can be a program name with args.
8262 set dummy $ac_prog; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_path_TCLSH+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 TCLSH=$ac_cv_path_TCLSH
8292 if test -n "$TCLSH"; then
8293 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8294 echo "${ECHO_T}$TCLSH" >&6; }
8296 { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8301 test -n "$TCLSH" && break
8304 if test x"${TCLSH}" = x ; then
8305 ac_cv_path_tclsh='';
8307 ac_cv_path_tclsh="${TCLSH}";
8310 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8311 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8312 TCLSH="${ac_cv_path_tclsh}"
8316 # Extract the first word of "zip", so it can be a program name with args.
8317 set dummy zip; ac_word=$2
8318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8320 if test "${ac_cv_path_ZIP+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 if test -n "$ZIP"; then
8348 { echo "$as_me:$LINENO: result: $ZIP" >&5
8349 echo "${ECHO_T}$ZIP" >&6; }
8351 { echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6; }
8356 for ac_prog in ocamlc
8358 # Extract the first word of "$ac_prog", so it can be a program name with args.
8359 set dummy $ac_prog; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_OCAMLC+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 OCAMLC=$ac_cv_path_OCAMLC
8389 if test -n "$OCAMLC"; then
8390 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8391 echo "${ECHO_T}$OCAMLC" >&6; }
8393 { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8398 test -n "$OCAMLC" && break
8401 for ac_prog in ocamlopt
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404 set dummy $ac_prog; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 OCAMLOPT=$ac_cv_path_OCAMLOPT
8434 if test -n "$OCAMLOPT"; then
8435 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8436 echo "${ECHO_T}$OCAMLOPT" >&6; }
8438 { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8443 test -n "$OCAMLOPT" && break
8446 for ac_prog in ocamldep
8448 # Extract the first word of "$ac_prog", so it can be a program name with args.
8449 set dummy $ac_prog; ac_word=$2
8450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 OCAMLDEP=$ac_cv_path_OCAMLDEP
8479 if test -n "$OCAMLDEP"; then
8480 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8481 echo "${ECHO_T}$OCAMLDEP" >&6; }
8483 { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8488 test -n "$OCAMLDEP" && break
8491 for ac_prog in ocamldoc
8493 # Extract the first word of "$ac_prog", so it can be a program name with args.
8494 set dummy $ac_prog; ac_word=$2
8495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8497 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 OCAMLDOC=$ac_cv_path_OCAMLDOC
8524 if test -n "$OCAMLDOC"; then
8525 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8526 echo "${ECHO_T}$OCAMLDOC" >&6; }
8528 { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8533 test -n "$OCAMLDOC" && break
8536 for ac_prog in gas as
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542 if test "${ac_cv_path_GAS+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 if test -n "$GAS"; then
8570 { echo "$as_me:$LINENO: result: $GAS" >&5
8571 echo "${ECHO_T}$GAS" >&6; }
8573 { echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6; }
8578 test -n "$GAS" && break
8582 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8583 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8584 if test "${llvm_cv_link_use_r+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8594 CFLAGS="$CFLAGS -Wl,-R."
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8605 int main() { return 0; }
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (ac_try="$ac_link"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_link") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 llvm_cv_link_use_r=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 llvm_cv_link_use_r=no
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8664 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8665 if test "$llvm_cv_link_use_r" = yes ; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_LINK_R 1
8674 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8675 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8676 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8697 int main() { return 0; }
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 llvm_cv_link_use_export_dynamic=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 llvm_cv_link_use_export_dynamic=no
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8756 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8757 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8759 cat >>confdefs.h <<\_ACEOF
8760 #define HAVE_LINK_EXPORT_DYNAMIC 1
8768 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8769 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8770 if test "${ac_cv_c_const+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8783 /* FIXME: Include the comments suggested by Paul. */
8785 /* Ultrix mips cc rejects this. */
8786 typedef int charset[2];
8788 /* SunOS 4.1.1 cc rejects this. */
8789 char const *const *ccp;
8791 /* NEC SVR4.0.2 mips cc rejects this. */
8792 struct point {int x, y;};
8793 static struct point const zero = {0,0};
8794 /* AIX XL C 1.02.0.0 rejects this.
8795 It does not let you subtract one const X* pointer from another in
8796 an arm of an if-expression whose if-part is not a constant
8798 const char *g = "string";
8799 ccp = &g + (g ? g-g : 0);
8800 /* HPUX 7.0 cc rejects these. */
8803 ccp = (char const *const *) p;
8804 { /* SCO 3.2v4 cc rejects this. */
8806 char const *s = 0 ? (char *) 0 : (char const *) 0;
8811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8813 const int *foo = &x[0];
8816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8817 typedef const int *iptr;
8821 { /* AIX XL C 1.02.0.0 rejects this saying
8822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8823 struct s { int j; const int *ap[3]; };
8824 struct s *b; b->j = 5;
8826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8830 return !x[0] && !zero.x;
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_try") 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8882 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8883 if test $ac_cv_c_const = no; then
8885 cat >>confdefs.h <<\_ACEOF
8897 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8898 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8899 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8900 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 #include <sys/types.h>
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_compile") 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 eval "$as_ac_Header=yes"
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 eval "$as_ac_Header=no"
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 ac_res=`eval echo '${'$as_ac_Header'}'`
8967 { echo "$as_me:$LINENO: result: $ac_res" >&5
8968 echo "${ECHO_T}$ac_res" >&6; }
8969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8970 cat >>confdefs.h <<_ACEOF
8971 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8974 ac_header_dirent=$ac_hdr; break
8978 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8979 if test $ac_header_dirent = dirent.h; then
8980 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_opendir+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
9008 for ac_lib in '' dir; do
9009 if test -z "$ac_lib"; then
9010 ac_res="none required"
9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_link") 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_try") 2>&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_search_opendir=$ac_res
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9057 rm -f core conftest.err conftest.$ac_objext \
9059 if test "${ac_cv_search_opendir+set}" = set; then
9063 if test "${ac_cv_search_opendir+set}" = set; then
9066 ac_cv_search_opendir=no
9069 LIBS=$ac_func_search_save_LIBS
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9073 ac_res=$ac_cv_search_opendir
9074 if test "$ac_res" != no; then
9075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9082 if test "${ac_cv_search_opendir+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_func_search_save_LIBS=$LIBS
9086 cat >conftest.$ac_ext <<_ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9108 for ac_lib in '' x; do
9109 if test -z "$ac_lib"; then
9110 ac_res="none required"
9113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9124 grep -v '^ *+' conftest.er1 >conftest.err
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_try") 2>&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_search_opendir=$ac_res
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9157 rm -f core conftest.err conftest.$ac_objext \
9159 if test "${ac_cv_search_opendir+set}" = set; then
9163 if test "${ac_cv_search_opendir+set}" = set; then
9166 ac_cv_search_opendir=no
9169 LIBS=$ac_func_search_save_LIBS
9171 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9172 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9173 ac_res=$ac_cv_search_opendir
9174 if test "$ac_res" != no; then
9175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9182 for ac_header in dlfcn.h
9184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 ac_res=`eval echo '${'$as_ac_Header'}'`
9192 { echo "$as_me:$LINENO: result: $ac_res" >&5
9193 echo "${ECHO_T}$ac_res" >&6; }
9195 # Is the header compilable?
9196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 $ac_includes_default
9205 #include <$ac_header>
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9216 grep -v '^ *+' conftest.er1 >conftest.err
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9222 { (case "(($ac_try" in
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_try") 2>&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_try") 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_header_compiler=yes
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_header_compiler=no
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251 echo "${ECHO_T}$ac_header_compiler" >&6; }
9253 # Is the header present?
9254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #include <$ac_header>
9264 if { (ac_try="$ac_cpp conftest.$ac_ext"
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } >/dev/null; then
9277 if test -s conftest.err; then
9278 ac_cpp_err=$ac_c_preproc_warn_flag
9279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9286 if test -z "$ac_cpp_err"; then
9287 ac_header_preproc=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 ac_header_preproc=no
9295 rm -f conftest.err conftest.$ac_ext
9296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9297 echo "${ECHO_T}$ac_header_preproc" >&6; }
9299 # So? What about this header?
9300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9306 ac_header_preproc=yes
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9322 ## ----------------------------------- ##
9323 ## Report this to llvmbugs@cs.uiuc.edu ##
9324 ## ----------------------------------- ##
9326 ) | sed "s/^/$as_me: WARNING: /" >&2
9329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 eval "$as_ac_Header=\$ac_header_preproc"
9336 ac_res=`eval echo '${'$as_ac_Header'}'`
9337 { echo "$as_me:$LINENO: result: $ac_res" >&5
9338 echo "${ECHO_T}$ac_res" >&6; }
9341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 # Check whether --enable-ltdl-install was given.
9351 if test "${enable_ltdl_install+set}" = set; then
9352 enableval=$enable_ltdl_install;
9358 if test x"${enable_ltdl_install-no}" != xno; then
9360 INSTALL_LTDL_FALSE='#'
9362 INSTALL_LTDL_TRUE='#'
9368 if test x"${enable_ltdl_convenience-no}" != xno; then
9369 CONVENIENCE_LTDL_TRUE=
9370 CONVENIENCE_LTDL_FALSE='#'
9372 CONVENIENCE_LTDL_TRUE='#'
9373 CONVENIENCE_LTDL_FALSE=
9377 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9380 libname_spec='lib$name'
9388 shlibpath_overrides_runpath=unknown
9390 dynamic_linker="$host_os ld.so"
9391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9392 if test "$GCC" = yes; then
9393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9395 # if the path contains ";" then we assume it to be the separator
9396 # otherwise default to the standard path separator (i.e. ":") - it is
9397 # assumed that no part of a normal pathname contains ";" but that should
9398 # okay in the real world where ";" in dirpaths is itself problematic.
9399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9406 need_lib_prefix=unknown
9407 hardcode_into_libs=no
9409 # when you set need_version to no, make sure it does not cause -set_version
9410 # flags to be left without arguments
9411 need_version=unknown
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417 shlibpath_var=LIBPATH
9419 # AIX 3 has no versioning support, so we append a major version to the name.
9420 soname_spec='${libname}${release}${shared_ext}$major'
9427 hardcode_into_libs=yes
9428 if test "$host_cpu" = ia64; then
9429 # AIX 5 supports IA64
9430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9433 # With GCC up to 2.95.x, collect2 would create an import file
9434 # for dependence libraries. The import file would start with
9435 # the line `#! .'. This would cause the generated library to
9436 # depend on `.', always an invalid library. This was fixed in
9437 # development snapshots of GCC prior to 3.0.
9439 aix4 | aix4.[01] | aix4.[01].*)
9440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450 # soname into executable. Probably we can add versioning support to
9451 # collect2, so additional links can be useful in future.
9452 if test "$aix_use_runtimelinking" = yes; then
9453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454 # instead of lib<name>.a to let people know that these are not
9455 # typical AIX shared libraries.
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 # We preserve .a as extension for shared libraries through AIX4.2
9459 # and later when we are not doing run time linking.
9460 library_names_spec='${libname}${release}.a $libname.a'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LIBPATH
9468 library_names_spec='$libname.ixlibrary $libname.a'
9469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9470 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'
9474 library_names_spec='${libname}${shared_ext}'
9475 dynamic_linker="$host_os ld.so"
9476 shlibpath_var=LIBRARY_PATH
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9488 # the default ld.so.conf also contains /usr/contrib/lib and
9489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490 # libtool to hard-code these into programs
9493 cygwin* | mingw* | pw32*)
9494 version_type=windows
9499 case $GCC,$host_os in
9500 yes,cygwin* | yes,mingw* | yes,pw32*)
9501 library_names_spec='$libname.dll.a'
9502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503 postinstall_cmds='base_file=`basename \${file}`~
9504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9505 dldir=$destdir/`dirname \$dlpath`~
9506 test -d \$dldir || mkdir -p \$dldir~
9507 $install_prog $dir/$dlname \$dldir/$dlname~
9508 chmod a+x \$dldir/$dlname'
9509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9510 dlpath=$dir/\$dldll~
9512 shlibpath_overrides_runpath=yes
9516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9521 # MinGW DLLs use traditional 'lib' prefix
9522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9525 # It is most probably a Windows format PATH printed by
9526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9527 # path with ; separators, and with drive letters. We can handle the
9528 # drive letters (cygwin fileutils understands them), so leave them,
9529 # especially as we might pass files found there to a mingw objdump,
9530 # which wouldn't understand a cygwinified path. Ahh.
9531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9537 # pw32 DLLs use 'pw' prefix rather than 'lib'
9538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9547 dynamic_linker='Win32 ld.exe'
9548 # FIXME: first we should search . and the directory the executable is in
9552 darwin* | rhapsody*)
9553 dynamic_linker="$host_os dyld"
9557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9558 soname_spec='${libname}${release}${major}$shared_ext'
9559 shlibpath_overrides_runpath=yes
9560 shlibpath_var=DYLD_LIBRARY_PATH
9561 shrext_cmds='.dylib'
9562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9563 if test "$GCC" = yes; then
9564 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"`
9566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=no
9592 hardcode_into_libs=yes
9593 dynamic_linker='GNU ld.so'
9596 freebsd* | dragonfly*)
9597 # DragonFly does not have aout. When/if they implement a new
9598 # versioning mechanism, adjust this.
9599 if test -x /usr/bin/objformat; then
9600 objformat=`/usr/bin/objformat`
9603 freebsd[123]*) objformat=aout ;;
9607 version_type=freebsd-$objformat
9608 case $version_type in
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9619 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=yes
9624 freebsd3.[01]* | freebsdelf3.[01]*)
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9630 shlibpath_overrides_runpath=no
9631 hardcode_into_libs=yes
9633 freebsd*) # from 4.6 on
9634 shlibpath_overrides_runpath=yes
9635 hardcode_into_libs=yes
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 hardcode_into_libs=yes
9650 hpux9* | hpux10* | hpux11*)
9651 # Give a soname corresponding to the major version so that dld.sl refuses to
9652 # link against other versions.
9659 hardcode_into_libs=yes
9660 dynamic_linker="$host_os dld.so"
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 if test "X$HPUX_IA64_MODE" = X32; then
9666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9674 hardcode_into_libs=yes
9675 dynamic_linker="$host_os dld.sl"
9676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9685 dynamic_linker="$host_os dld.sl"
9686 shlibpath_var=SHLIB_PATH
9687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9693 postinstall_cmds='chmod 555 $lib'
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9708 irix5* | irix6* | nonstopux*)
9710 nonstopux*) version_type=nonstopux ;;
9712 if test "$lt_cv_prog_gnu_ld" = yes; then
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9723 irix5* | nonstopux*)
9727 case $LD in # libtool.m4 will add one of these switches to LD
9728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9729 libsuff= shlibsuff= libmagic=32-bit;;
9730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9731 libsuff=32 shlibsuff=N32 libmagic=N32;;
9732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9734 *) libsuff= shlibsuff= libmagic=never-match;;
9738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9739 shlibpath_overrides_runpath=no
9740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9742 hardcode_into_libs=yes
9745 # No shared lib support for Linux oldld, aout, or coff.
9746 linux*oldld* | linux*aout* | linux*coff*)
9750 # This must be Linux ELF.
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=no
9760 # This implies no fast_install, which is unacceptable.
9761 # Some rework will be needed to allow for fast_install
9762 # before this can be enabled.
9763 hardcode_into_libs=yes
9765 # Append ld.so.conf contents to the search path
9766 if test -f /etc/ld.so.conf; then
9767 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' ' '`
9768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9771 # We used to test for /lib/ld.so.1 and disable shared libraries on
9772 # powerpc, because MkLinux only supported shared libraries with the
9773 # GNU dynamic linker. Since this was broken with cross compilers,
9774 # most powerpc-linux boxes support dynamic linking these days and
9775 # people can always --disable-shared, the test was removed, and we
9776 # assume the GNU/Linux dynamic linker is in use.
9777 dynamic_linker='GNU/Linux ld.so'
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=no
9788 hardcode_into_libs=yes
9789 dynamic_linker='GNU ld.so'
9796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9799 dynamic_linker='NetBSD (a.out) ld.so'
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 dynamic_linker='NetBSD ld.elf_so'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9807 hardcode_into_libs=yes
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=yes
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=yes
9829 sys_lib_dlsearch_path_spec="/usr/lib"
9831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9834 *) need_version=no ;;
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9841 openbsd2.[89] | openbsd2.[89].*)
9842 shlibpath_overrides_runpath=no
9845 shlibpath_overrides_runpath=yes
9849 shlibpath_overrides_runpath=yes
9854 libname_spec='$name'
9857 library_names_spec='$libname${shared_ext} $libname.a'
9858 dynamic_linker='OS/2 ld.exe'
9859 shlibpath_var=LIBPATH
9862 osf3* | osf4* | osf5*)
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9882 # ldd complains unless libraries are executable
9883 postinstall_cmds='chmod +x $lib'
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 shlibpath_overrides_runpath=yes
9892 if test "$with_gnu_ld" = yes; then
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 shlibpath_var=LD_LIBRARY_PATH
9903 case $host_vendor in
9905 shlibpath_overrides_runpath=no
9907 export_dynamic_flag_spec='${wl}-Blargedynsym'
9908 runpath_var=LD_RUN_PATH
9916 shlibpath_overrides_runpath=no
9917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9923 if test -d /usr/nec ;then
9925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9926 soname_spec='$libname${shared_ext}.$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9932 version_type=freebsd-elf
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 hardcode_into_libs=yes
9939 if test "$with_gnu_ld" = yes; then
9940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9941 shlibpath_overrides_runpath=no
9943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9944 shlibpath_overrides_runpath=yes
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9951 sys_lib_dlsearch_path_spec='/usr/lib'
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9965 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9966 echo "${ECHO_T}$dynamic_linker" >&6; }
9967 test "$dynamic_linker" = no && can_build_shared=no
9969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9970 if test "$GCC" = yes; then
9971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9975 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9976 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9977 if test "${libltdl_cv_shlibext+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 eval libltdl_cv_shlibext=$shrext_cmds
9985 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9986 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9987 if test -n "$libltdl_cv_shlibext"; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9996 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9997 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9998 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 libltdl_cv_shlibpath_var="$shlibpath_var"
10003 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10004 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10005 if test -n "$libltdl_cv_shlibpath_var"; then
10007 cat >>confdefs.h <<_ACEOF
10008 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10014 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10015 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10016 if test "${libltdl_cv_sys_search_path+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10021 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10022 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10023 if test -n "$libltdl_cv_sys_search_path"; then
10025 for dir in $libltdl_cv_sys_search_path; do
10026 if test -z "$sys_search_path"; then
10027 sys_search_path="$dir"
10029 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10033 cat >>confdefs.h <<_ACEOF
10034 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10039 { echo "$as_me:$LINENO: checking for objdir" >&5
10040 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10041 if test "${libltdl_cv_objdir+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 libltdl_cv_objdir="$objdir"
10045 if test -n "$objdir"; then
10048 rm -f .libs 2>/dev/null
10049 mkdir .libs 2>/dev/null
10050 if test -d .libs; then
10051 libltdl_cv_objdir=.libs
10053 # MS-DOS does not allow filenames that begin with a dot.
10054 libltdl_cv_objdir=_libs
10056 rmdir .libs 2>/dev/null
10060 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10061 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10063 cat >>confdefs.h <<_ACEOF
10064 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10072 # Check for command to grab the raw symbol name followed by C symbol from nm.
10073 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10074 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10075 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 # These are sane defaults that work on at least a few old systems.
10080 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10082 # Character class describing NM global symbol codes.
10083 symcode='[BCDEGRST]'
10085 # Regexp to match symbols that can be accessed directly from C.
10086 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10088 # Transform an extracted symbol line into a proper C declaration
10089 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10091 # Transform an extracted symbol line into symbol name and symbol address
10092 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'"
10094 # Define system-specific variables.
10099 cygwin* | mingw* | pw32*)
10100 symcode='[ABCDGISTW]'
10102 hpux*) # Its linker distinguishes data from code symbols
10103 if test "$host_cpu" = ia64; then
10104 symcode='[ABCDEGRST]'
10106 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10107 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'"
10110 if test "$host_cpu" = ia64; then
10111 symcode='[ABCDGIRSTW]'
10112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10113 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'"
10116 irix* | nonstopux*)
10117 symcode='[BCDEGRST]'
10120 symcode='[BCDEGQRST]'
10131 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10139 # Handle CRLF in mingw tool chain
10143 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10147 # If we're using GNU nm, then use its standard symbol codes.
10148 case `$NM -V 2>&1` in
10149 *GNU* | *'with BFD'*)
10150 symcode='[ABCDGIRSTW]' ;;
10153 # Try without a prefix undercore, then with it.
10154 for ac_symprfx in "" "_"; do
10156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10157 symxfrm="\\1 $ac_symprfx\\2 \\2"
10159 # Write the raw and C identifiers.
10160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10162 # Check to see that the pipe works correctly.
10166 cat > conftest.$ac_ext <<EOF
10171 void nm_test_func(){}
10175 int main(){nm_test_var='a';nm_test_func();return(0);}
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; then
10183 # Now try to grab the symbols.
10185 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10186 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && test -s "$nlist"; then
10190 # Try sorting and uniquifying the output.
10191 if sort "$nlist" | uniq > "$nlist"T; then
10192 mv -f "$nlist"T "$nlist"
10197 # Make sure that we snagged all the symbols we need.
10198 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10199 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10200 cat <<EOF > conftest.$ac_ext
10206 # Now generate the symbol file.
10207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10209 cat <<EOF >> conftest.$ac_ext
10210 #if defined (__STDC__) && __STDC__
10211 # define lt_ptr_t void *
10213 # define lt_ptr_t char *
10217 /* The mapping between symbol names and symbols. */
10222 lt_preloaded_symbols[] =
10225 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10226 cat <<\EOF >> conftest.$ac_ext
10234 # Now try linking the two files.
10235 mv conftest.$ac_objext conftstm.$ac_objext
10236 lt_save_LIBS="$LIBS"
10237 lt_save_CFLAGS="$CFLAGS"
10238 LIBS="conftstm.$ac_objext"
10239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10247 LIBS="$lt_save_LIBS"
10248 CFLAGS="$lt_save_CFLAGS"
10250 echo "cannot find nm_test_func in $nlist" >&5
10253 echo "cannot find nm_test_var in $nlist" >&5
10256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10259 echo "$progname: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10262 rm -f conftest* conftst*
10264 # Do not use the global_symbol_pipe unless it works.
10265 if test "$pipe_works" = yes; then
10268 lt_cv_sys_global_symbol_pipe=
10274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10275 lt_cv_sys_global_symbol_to_cdecl=
10277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10278 { echo "$as_me:$LINENO: result: failed" >&5
10279 echo "${ECHO_T}failed" >&6; }
10281 { echo "$as_me:$LINENO: result: ok" >&5
10282 echo "${ECHO_T}ok" >&6; }
10286 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10287 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10288 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10292 libltdl_cv_preloaded_symbols=yes
10294 libltdl_cv_preloaded_symbols=no
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10299 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10300 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_PRELOADED_SYMBOLS 1
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10317 { echo "$as_me:$LINENO: checking for shl_load" >&5
10318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10319 if test "${ac_cv_func_shl_load+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10330 #define shl_load innocuous_shl_load
10332 /* System header to define __stub macros and hopefully few prototypes,
10333 which can conflict with char shl_load (); below.
10334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335 <limits.h> exists even on freestanding compilers. */
10338 # include <limits.h>
10340 # include <assert.h>
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10352 /* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355 #if defined __stub_shl_load || defined __stub___shl_load
10362 return shl_load ();
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382 { (case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_try") 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest$ac_exeext'
10392 { (case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_try") 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_func_shl_load=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_func_shl_load=no
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10412 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10413 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10414 if test $ac_cv_func_shl_load = yes; then
10416 cat >>confdefs.h <<\_ACEOF
10417 #define HAVE_SHL_LOAD 1
10421 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10422 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10423 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 ac_check_lib_save_LIBS=$LIBS
10428 cat >conftest.$ac_ext <<_ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10445 return shl_load ();
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_lib_dld_shl_load=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_lib_dld_shl_load=no
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10496 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10497 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10498 if test $ac_cv_lib_dld_shl_load = yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_SHL_LOAD 1
10504 LIBADD_DL="$LIBADD_DL -ldld"
10506 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 ac_check_lib_save_LIBS=$LIBS
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_lib_dl_dlopen=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_cv_lib_dl_dlopen=no
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10583 if test $ac_cv_lib_dl_dlopen = yes; then
10585 cat >>confdefs.h <<\_ACEOF
10586 #define HAVE_LIBDL 1
10589 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10598 # include <dlfcn.h>
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10624 { (case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_try") 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_try") 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_LIBDL 1
10647 libltdl_cv_func_dlopen="yes"
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10653 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10654 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lsvld $LIBS"
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_link") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1 >conftest.err
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_lib_svld_dlopen=yes
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_cv_lib_svld_dlopen=no
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 LIBS=$ac_check_lib_save_LIBS
10727 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10728 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10729 if test $ac_cv_lib_svld_dlopen = yes; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_LIBDL 1
10735 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10737 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10738 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10739 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 ac_check_lib_save_LIBS=$LIBS
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10761 return dld_link ();
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (ac_try="$ac_link"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_link") 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_dld_dld_link=yes
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_lib_dld_dld_link=no
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10814 if test $ac_cv_lib_dld_dld_link = yes; then
10816 cat >>confdefs.h <<\_ACEOF
10820 LIBADD_DL="$LIBADD_DL -ldld"
10822 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10823 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10824 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10835 #define _dyld_func_lookup innocuous__dyld_func_lookup
10837 /* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char _dyld_func_lookup (); below.
10839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840 <limits.h> exists even on freestanding compilers. */
10843 # include <limits.h>
10845 # include <assert.h>
10848 #undef _dyld_func_lookup
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10856 char _dyld_func_lookup ();
10857 /* The GNU C library defines this for functions which it implements
10858 to always fail with ENOSYS. Some functions are actually named
10859 something starting with __ and the normal name is an alias. */
10860 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10867 return _dyld_func_lookup ();
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_func__dyld_func_lookup=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_func__dyld_func_lookup=no
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10918 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10919 if test $ac_cv_func__dyld_func_lookup = yes; then
10921 cat >>confdefs.h <<\_ACEOF
10922 #define HAVE_DYLD 1
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10948 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10950 lt_save_LIBS="$LIBS"
10951 LIBS="$LIBS $LIBADD_DL"
10953 for ac_func in dlerror
10955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10969 #define $ac_func innocuous_$ac_func
10971 /* System header to define __stub macros and hopefully few prototypes,
10972 which can conflict with char $ac_func (); below.
10973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974 <limits.h> exists even on freestanding compilers. */
10977 # include <limits.h>
10979 # include <assert.h>
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10991 /* The GNU C library defines this for functions which it implements
10992 to always fail with ENOSYS. Some functions are actually named
10993 something starting with __ and the normal name is an alias. */
10994 #if defined __stub_$ac_func || defined __stub___$ac_func
11001 return $ac_func ();
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_link") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 eval "$as_ac_var=yes"
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 eval "$as_ac_var=no"
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11051 ac_res=`eval echo '${'$as_ac_var'}'`
11052 { echo "$as_me:$LINENO: result: $ac_res" >&5
11053 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_var'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11062 LIBS="$lt_save_LIBS"
11065 ac_cpp='$CPP $CPPFLAGS'
11066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11072 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11073 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11074 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 ac_cv_sys_symbol_underscore=no
11078 cat > conftest.$ac_ext <<EOF
11079 void nm_test_func(){}
11080 int main(){nm_test_func;return 0;}
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; then
11087 # Now try to grab the symbols.
11088 ac_nlist=conftest.nm
11089 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11090 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && test -s "$ac_nlist"; then
11094 # See whether the symbols have a leading underscore.
11095 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11096 ac_cv_sys_symbol_underscore=yes
11098 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11101 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11105 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11108 echo "configure: failed program was:" >&5
11114 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11115 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11118 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11119 if test x"$libltdl_cv_func_dlopen" = xyes ||
11120 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11121 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11122 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11123 if test "${libltdl_cv_need_uscore+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 libltdl_cv_need_uscore=unknown
11128 LIBS="$LIBS $LIBADD_DL"
11129 if test "$cross_compiling" = yes; then :
11130 libltdl_cv_need_uscore=cross
11132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11133 lt_status=$lt_dlunknown
11134 cat > conftest.$ac_ext <<EOF
11135 #line 11130 "configure"
11136 #include "confdefs.h"
11145 # define LT_DLGLOBAL RTLD_GLOBAL
11148 # define LT_DLGLOBAL DL_GLOBAL
11150 # define LT_DLGLOBAL 0
11154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11155 find out it does not work in some platform. */
11156 #ifndef LT_DLLAZY_OR_NOW
11158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11161 # define LT_DLLAZY_OR_NOW DL_LAZY
11164 # define LT_DLLAZY_OR_NOW RTLD_NOW
11167 # define LT_DLLAZY_OR_NOW DL_NOW
11169 # define LT_DLLAZY_OR_NOW 0
11177 extern "C" void exit (int);
11180 void fnord() { int i=42;}
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11190 /* dlclose (self); */
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203 (./conftest; exit; ) >&5 2>/dev/null
11205 case x$lt_status in
11206 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11207 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11208 x$lt_dlunknown|x*) ;;
11211 # compilation failed
11220 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11221 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11225 if test x"$libltdl_cv_need_uscore" = xyes; then
11227 cat >>confdefs.h <<\_ACEOF
11228 #define NEED_USCORE 1
11234 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11235 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11236 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 # PORTME does your system automatically load deplibs for dlopen?
11240 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11241 # For now, we just catch OSes we know something about -- in the
11242 # future, we'll try test this programmatically.
11243 libltdl_cv_sys_dlopen_deplibs=unknown
11245 aix3*|aix4.1.*|aix4.2.*)
11246 # Unknown whether this is true for these versions of AIX, but
11247 # we want this `case' here to explicitly catch those versions.
11248 libltdl_cv_sys_dlopen_deplibs=unknown
11251 libltdl_cv_sys_dlopen_deplibs=yes
11254 # Assuming the user has installed a libdl from somewhere, this is true
11255 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11256 libltdl_cv_sys_dlopen_deplibs=yes
11258 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11259 # GNU and its variants, using gnu ld.so (Glibc)
11260 libltdl_cv_sys_dlopen_deplibs=yes
11263 libltdl_cv_sys_dlopen_deplibs=yes
11266 libltdl_cv_sys_dlopen_deplibs=yes
11268 irix[12345]*|irix6.[01]*)
11269 # Catch all versions of IRIX before 6.2, and indicate that we don't
11270 # know how it worked for any of those versions.
11271 libltdl_cv_sys_dlopen_deplibs=unknown
11274 # The case above catches anything before 6.2, and it's known that
11275 # at 6.2 and later dlopen does load deplibs.
11276 libltdl_cv_sys_dlopen_deplibs=yes
11279 libltdl_cv_sys_dlopen_deplibs=yes
11282 libltdl_cv_sys_dlopen_deplibs=yes
11285 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11286 # it did *not* use an RPATH in a shared library to find objects the
11287 # library depends on, so we explictly say `no'.
11288 libltdl_cv_sys_dlopen_deplibs=no
11290 osf5.0|osf5.0a|osf5.1)
11291 # dlopen *does* load deplibs and with the right loader patch applied
11292 # it even uses RPATH in a shared library to search for shared objects
11293 # that the library depends on, but there's no easy way to know if that
11294 # patch is installed. Since this is the case, all we can really
11295 # say is unknown -- it depends on the patch being installed. If
11296 # it is, this changes to `yes'. Without it, it would be `no'.
11297 libltdl_cv_sys_dlopen_deplibs=unknown
11300 # the two cases above should catch all versions of osf <= 5.1. Read
11301 # the comments above for what we know about them.
11302 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11303 # is used to find them so we can finally say `yes'.
11304 libltdl_cv_sys_dlopen_deplibs=yes
11307 libltdl_cv_sys_dlopen_deplibs=yes
11309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11310 libltdl_cv_sys_dlopen_deplibs=yes
11315 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11316 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11317 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11319 cat >>confdefs.h <<\_ACEOF
11320 #define LTDL_DLOPEN_DEPLIBS 1
11326 for ac_header in argz.h
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11339 # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 #include <$ac_header>
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_header_compiler=yes
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_header_compiler=no
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395 echo "${ECHO_T}$ac_header_compiler" >&6; }
11397 # Is the header present?
11398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include <$ac_header>
11408 if { (ac_try="$ac_cpp conftest.$ac_ext"
11409 case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11416 grep -v '^ *+' conftest.er1 >conftest.err
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } >/dev/null; then
11421 if test -s conftest.err; then
11422 ac_cpp_err=$ac_c_preproc_warn_flag
11423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11430 if test -z "$ac_cpp_err"; then
11431 ac_header_preproc=yes
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 ac_header_preproc=no
11439 rm -f conftest.err conftest.$ac_ext
11440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441 echo "${ECHO_T}$ac_header_preproc" >&6; }
11443 # So? What about this header?
11444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450 ac_header_preproc=yes
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11466 ## ----------------------------------- ##
11467 ## Report this to llvmbugs@cs.uiuc.edu ##
11468 ## ----------------------------------- ##
11470 ) | sed "s/^/$as_me: WARNING: /" >&2
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 eval "$as_ac_Header=\$ac_header_preproc"
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11495 { echo "$as_me:$LINENO: checking for error_t" >&5
11496 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11497 if test "${ac_cv_type_error_t+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11510 typedef error_t ac__type_new_;
11514 if ((ac__type_new_ *) 0)
11516 if (sizeof (ac__type_new_))
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537 { (case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_try") 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 ac_cv_type_error_t=yes
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_cv_type_error_t=no
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11567 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11568 if test $ac_cv_type_error_t = yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_ERROR_T 1
11577 cat >>confdefs.h <<\_ACEOF
11578 #define error_t int
11589 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11605 #define $ac_func innocuous_$ac_func
11607 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below.
11609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610 <limits.h> exists even on freestanding compilers. */
11613 # include <limits.h>
11615 # include <assert.h>
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined __stub_$ac_func || defined __stub___$ac_func
11637 return $ac_func ();
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1 >conftest.err
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 eval "$as_ac_var=yes"
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 eval "$as_ac_var=no"
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11687 ac_res=`eval echo '${'$as_ac_var'}'`
11688 { echo "$as_me:$LINENO: result: $ac_res" >&5
11689 echo "${ECHO_T}$ac_res" >&6; }
11690 if test `eval echo '${'$as_ac_var'}'` = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11725 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11739 # Is the header compilable?
11740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 $ac_includes_default
11749 #include <$ac_header>
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_header_compiler=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <$ac_header>
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null; then
11821 if test -s conftest.err; then
11822 ac_cpp_err=$ac_c_preproc_warn_flag
11823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11830 if test -z "$ac_cpp_err"; then
11831 ac_header_preproc=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_header_preproc=no
11839 rm -f conftest.err conftest.$ac_ext
11840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866 ## ----------------------------------- ##
11867 ## Report this to llvmbugs@cs.uiuc.edu ##
11868 ## ----------------------------------- ##
11870 ) | sed "s/^/$as_me: WARNING: /" >&2
11873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 eval "$as_ac_Header=\$ac_header_preproc"
11880 ac_res=`eval echo '${'$as_ac_Header'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882 echo "${ECHO_T}$ac_res" >&6; }
11885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 ac_res=`eval echo '${'$as_ac_Header'}'`
11908 { echo "$as_me:$LINENO: result: $ac_res" >&5
11909 echo "${ECHO_T}$ac_res" >&6; }
11911 # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <$ac_header>
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_header_compiler=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_header_compiler=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967 echo "${ECHO_T}$ac_header_compiler" >&6; }
11969 # Is the header present?
11970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11972 cat >conftest.$ac_ext <<_ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 #include <$ac_header>
11980 if { (ac_try="$ac_cpp conftest.$ac_ext"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11988 grep -v '^ *+' conftest.er1 >conftest.err
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } >/dev/null; then
11993 if test -s conftest.err; then
11994 ac_cpp_err=$ac_c_preproc_warn_flag
11995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12002 if test -z "$ac_cpp_err"; then
12003 ac_header_preproc=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_header_preproc=no
12011 rm -f conftest.err conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013 echo "${ECHO_T}$ac_header_preproc" >&6; }
12015 # So? What about this header?
12016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12022 ac_header_preproc=yes
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12038 ## ----------------------------------- ##
12039 ## Report this to llvmbugs@cs.uiuc.edu ##
12040 ## ----------------------------------- ##
12042 ) | sed "s/^/$as_me: WARNING: /" >&2
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 eval "$as_ac_Header=\$ac_header_preproc"
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12068 for ac_header in string.h strings.h
12070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12081 # Is the header compilable?
12082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 $ac_includes_default
12091 #include <$ac_header>
12093 rm -f conftest.$ac_objext
12094 if { (ac_try="$ac_compile"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12108 { (case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_try") 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_header_compiler=yes
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_header_compiler=no
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12137 echo "${ECHO_T}$ac_header_compiler" >&6; }
12139 # Is the header present?
12140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 #include <$ac_header>
12150 if { (ac_try="$ac_cpp conftest.$ac_ext"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } >/dev/null; then
12163 if test -s conftest.err; then
12164 ac_cpp_err=$ac_c_preproc_warn_flag
12165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12172 if test -z "$ac_cpp_err"; then
12173 ac_header_preproc=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_header_preproc=no
12181 rm -f conftest.err conftest.$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12183 echo "${ECHO_T}$ac_header_preproc" >&6; }
12185 # So? What about this header?
12186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12192 ac_header_preproc=yes
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12208 ## ----------------------------------- ##
12209 ## Report this to llvmbugs@cs.uiuc.edu ##
12210 ## ----------------------------------- ##
12212 ) | sed "s/^/$as_me: WARNING: /" >&2
12215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 eval "$as_ac_Header=\$ac_header_preproc"
12222 ac_res=`eval echo '${'$as_ac_Header'}'`
12223 { echo "$as_me:$LINENO: result: $ac_res" >&5
12224 echo "${ECHO_T}$ac_res" >&6; }
12227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12239 for ac_func in strchr index
12241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 cat >conftest.$ac_ext <<_ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12255 #define $ac_func innocuous_$ac_func
12257 /* System header to define __stub macros and hopefully few prototypes,
12258 which can conflict with char $ac_func (); below.
12259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260 <limits.h> exists even on freestanding compilers. */
12263 # include <limits.h>
12265 # include <assert.h>
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12277 /* The GNU C library defines this for functions which it implements
12278 to always fail with ENOSYS. Some functions are actually named
12279 something starting with __ and the normal name is an alias. */
12280 #if defined __stub_$ac_func || defined __stub___$ac_func
12287 return $ac_func ();
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (ac_try="$ac_link"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_link") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 eval "$as_ac_var=yes"
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 eval "$as_ac_var=no"
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12337 ac_res=`eval echo '${'$as_ac_var'}'`
12338 { echo "$as_me:$LINENO: result: $ac_res" >&5
12339 echo "${ECHO_T}$ac_res" >&6; }
12340 if test `eval echo '${'$as_ac_var'}'` = yes; then
12341 cat >>confdefs.h <<_ACEOF
12342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12350 for ac_func in strrchr rindex
12352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12366 #define $ac_func innocuous_$ac_func
12368 /* System header to define __stub macros and hopefully few prototypes,
12369 which can conflict with char $ac_func (); below.
12370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 <limits.h> exists even on freestanding compilers. */
12374 # include <limits.h>
12376 # include <assert.h>
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined __stub_$ac_func || defined __stub___$ac_func
12398 return $ac_func ();
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 eval "$as_ac_var=yes"
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 eval "$as_ac_var=no"
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12448 ac_res=`eval echo '${'$as_ac_var'}'`
12449 { echo "$as_me:$LINENO: result: $ac_res" >&5
12450 echo "${ECHO_T}$ac_res" >&6; }
12451 if test `eval echo '${'$as_ac_var'}'` = yes; then
12452 cat >>confdefs.h <<_ACEOF
12453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12461 for ac_func in memcpy bcopy
12463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12477 #define $ac_func innocuous_$ac_func
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12485 # include <limits.h>
12487 # include <assert.h>
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12499 /* The GNU C library defines this for functions which it implements
12500 to always fail with ENOSYS. Some functions are actually named
12501 something starting with __ and the normal name is an alias. */
12502 #if defined __stub_$ac_func || defined __stub___$ac_func
12509 return $ac_func ();
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 eval "$as_ac_var=yes"
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 eval "$as_ac_var=no"
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12559 ac_res=`eval echo '${'$as_ac_var'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561 echo "${ECHO_T}$ac_res" >&6; }
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12572 for ac_func in memmove strcmp
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12588 #define $ac_func innocuous_$ac_func
12590 /* System header to define __stub macros and hopefully few prototypes,
12591 which can conflict with char $ac_func (); below.
12592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593 <limits.h> exists even on freestanding compilers. */
12596 # include <limits.h>
12598 # include <assert.h>
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12610 /* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613 #if defined __stub_$ac_func || defined __stub___$ac_func
12620 return $ac_func ();
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 eval "$as_ac_var=yes"
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 eval "$as_ac_var=no"
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12670 ac_res=`eval echo '${'$as_ac_var'}'`
12671 { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674 cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12684 for ac_func in closedir opendir readdir
12686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12700 #define $ac_func innocuous_$ac_func
12702 /* System header to define __stub macros and hopefully few prototypes,
12703 which can conflict with char $ac_func (); below.
12704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705 <limits.h> exists even on freestanding compilers. */
12708 # include <limits.h>
12710 # include <assert.h>
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12722 /* The GNU C library defines this for functions which it implements
12723 to always fail with ENOSYS. Some functions are actually named
12724 something starting with __ and the normal name is an alias. */
12725 #if defined __stub_$ac_func || defined __stub___$ac_func
12732 return $ac_func ();
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_try") 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 eval "$as_ac_var=yes"
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 eval "$as_ac_var=no"
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12782 ac_res=`eval echo '${'$as_ac_var'}'`
12783 { echo "$as_me:$LINENO: result: $ac_res" >&5
12784 echo "${ECHO_T}$ac_res" >&6; }
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12795 if test "$WITH_LLVMGCCDIR" = "default" ; then
12796 LLVMGCC="llvm-gcc${EXEEXT}"
12797 LLVMGXX="llvm-g++${EXEEXT}"
12798 LLVMGCCCOMMAND="$LLVMGCC"
12799 LLVMGXXCOMMAND="$LLVMGXX"
12800 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12802 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12804 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12805 set dummy $LLVMGCC; ac_word=$2
12806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12808 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12823 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 LLVMGCC=$ac_cv_path_LLVMGCC
12835 if test -n "$LLVMGCC"; then
12836 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12837 echo "${ECHO_T}$LLVMGCC" >&6; }
12839 { echo "$as_me:$LINENO: result: no" >&5
12840 echo "${ECHO_T}no" >&6; }
12844 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12845 set dummy $LLVMGXX; ac_word=$2
12846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12848 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12863 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 LLVMGXX=$ac_cv_path_LLVMGXX
12875 if test -n "$LLVMGXX"; then
12876 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12877 echo "${ECHO_T}$LLVMGXX" >&6; }
12879 { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12885 if test -z "$LLVMGCC"; then
12886 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12887 LLVMGCCCOMMAND="$LLVMGCC"
12889 if test -z "$LLVMGXX"; then
12890 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12891 LLVMGXXCOMMAND="$LLVMGXX"
12898 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12900 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12905 # Check whether --with-llvmcc was given.
12906 if test "${with_llvmcc+set}" = set; then
12907 withval=$with_llvmcc;
12912 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12913 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12914 if test "$with_llvmcc" != "check"; then
12915 if (test "$with_llvmcc" != "llvm-gcc" &&
12916 test "$with_llvmcc" != "clang" &&
12917 test "$with_llvmcc" != "none"); then
12918 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12919 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12920 { (exit 1); exit 1; }; }
12922 WITH_LLVMCC="$with_llvmcc"
12923 elif test -n "$LLVMGCC"; then
12924 WITH_LLVMCC=llvm-gcc
12925 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12930 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12931 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12932 LLVMCC_OPTION=$WITH_LLVMCC
12935 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12936 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12949 if test "$GCC" != "yes" && test "$ICC" != "yes"
12951 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12952 echo "$as_me: error: gcc|icc required but not found" >&2;}
12953 { (exit 1); exit 1; }; }
12956 if test "$GXX" != "yes" && test "$IXX" != "yes"
12958 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12959 echo "$as_me: error: g++|icc required but not found" >&2;}
12960 { (exit 1); exit 1; }; }
12963 if test "$GCC" = "yes"
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #if !defined(__GNUC__) || __GNUC__ < 3
12967 #error Unsupported GCC version
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_compile") 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13011 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13012 { (exit 1); exit 1; }; }
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 if test -z "$llvm_cv_gnu_make_command"
13020 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13021 echo "$as_me: error: GNU Make required but not found" >&2;}
13022 { (exit 1); exit 1; }; }
13025 { echo "$as_me:$LINENO: result: ok" >&5
13026 echo "${ECHO_T}ok" >&6; }
13028 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13029 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13030 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13032 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13034 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13035 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13039 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13040 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13041 if test "${ac_cv_lib_m_sin+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 ac_check_lib_save_LIBS=$LIBS
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_link") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083 { (case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_try") 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest$ac_exeext'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_cv_lib_m_sin=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13114 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13115 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13116 if test $ac_cv_lib_m_sin = yes; then
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_LIBM 1
13125 if test "$llvm_cv_os_type" = "MingW" ; then
13127 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13128 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-limagehlp $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_link") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_cv_lib_imagehlp_main=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_cv_lib_imagehlp_main=no
13192 rm -f core conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13197 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13198 if test $ac_cv_lib_imagehlp_main = yes; then
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_LIBIMAGEHLP 1
13203 LIBS="-limagehlp $LIBS"
13208 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13209 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13210 if test "${ac_cv_lib_psapi_main+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lpsapi $LIBS"
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13231 rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (ac_try="$ac_link"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_lib_psapi_main=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_cv_lib_psapi_main=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13278 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13279 if test $ac_cv_lib_psapi_main = yes; then
13280 cat >>confdefs.h <<_ACEOF
13281 #define HAVE_LIBPSAPI 1
13284 LIBS="-lpsapi $LIBS"
13290 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13291 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13292 if test "${ac_cv_search_dlopen+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 ac_func_search_save_LIBS=$LIBS
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13318 for ac_lib in '' dl; do
13319 if test -z "$ac_lib"; then
13320 ac_res="none required"
13323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13325 rm -f conftest.$ac_objext conftest$ac_exeext
13326 if { (ac_try="$ac_link"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_link") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest$ac_exeext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_search_dlopen=$ac_res
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13367 rm -f core conftest.err conftest.$ac_objext \
13369 if test "${ac_cv_search_dlopen+set}" = set; then
13373 if test "${ac_cv_search_dlopen+set}" = set; then
13376 ac_cv_search_dlopen=no
13378 rm conftest.$ac_ext
13379 LIBS=$ac_func_search_save_LIBS
13381 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13382 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13383 ac_res=$ac_cv_search_dlopen
13384 if test "$ac_res" != no; then
13385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_DLOPEN 1
13392 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13393 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13397 if test "$llvm_cv_enable_libffi" = "yes" ; then
13398 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13399 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13400 if test "${ac_cv_search_ffi_call+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 ac_func_search_save_LIBS=$LIBS
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 /* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
13421 return ffi_call ();
13426 for ac_lib in '' ffi; do
13427 if test -z "$ac_lib"; then
13428 ac_res="none required"
13431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_link") 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
13458 { (case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_try") 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_search_ffi_call=$ac_res
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13475 rm -f core conftest.err conftest.$ac_objext \
13477 if test "${ac_cv_search_ffi_call+set}" = set; then
13481 if test "${ac_cv_search_ffi_call+set}" = set; then
13484 ac_cv_search_ffi_call=no
13486 rm conftest.$ac_ext
13487 LIBS=$ac_func_search_save_LIBS
13489 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13490 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13491 ac_res=$ac_cv_search_ffi_call
13492 if test "$ac_res" != no; then
13493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13495 cat >>confdefs.h <<\_ACEOF
13496 #define HAVE_FFI_CALL 1
13500 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13501 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13502 { (exit 1); exit 1; }; }
13507 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13508 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13509 if test "${ac_cv_search_mallinfo+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 ac_func_search_save_LIBS=$LIBS
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13530 return mallinfo ();
13535 for ac_lib in '' malloc; do
13536 if test -z "$ac_lib"; then
13537 ac_res="none required"
13540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_search_mallinfo=$ac_res
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13584 rm -f core conftest.err conftest.$ac_objext \
13586 if test "${ac_cv_search_mallinfo+set}" = set; then
13590 if test "${ac_cv_search_mallinfo+set}" = set; then
13593 ac_cv_search_mallinfo=no
13595 rm conftest.$ac_ext
13596 LIBS=$ac_func_search_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13599 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13600 ac_res=$ac_cv_search_mallinfo
13601 if test "$ac_res" != no; then
13602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604 cat >>confdefs.h <<\_ACEOF
13605 #define HAVE_MALLINFO 1
13611 if test "$ENABLE_THREADS" -eq 1 ; then
13613 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13614 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13615 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-lpthread $LIBS"
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13627 /* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
13633 char pthread_mutex_init ();
13637 return pthread_mutex_init ();
13642 rm -f conftest.$ac_objext conftest$ac_exeext
13643 if { (ac_try="$ac_link"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_link") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest$ac_exeext'
13667 { (case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_try") 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_lib_pthread_pthread_mutex_init=yes
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_cv_lib_pthread_pthread_mutex_init=no
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13688 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13689 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13690 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13691 cat >>confdefs.h <<_ACEOF
13692 #define HAVE_LIBPTHREAD 1
13695 LIBS="-lpthread $LIBS"
13699 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13700 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13701 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 ac_func_search_save_LIBS=$LIBS
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13718 char pthread_mutex_lock ();
13722 return pthread_mutex_lock ();
13727 for ac_lib in '' pthread; do
13728 if test -z "$ac_lib"; then
13729 ac_res="none required"
13732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (ac_try="$ac_link"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_link") 2>conftest.er1
13743 grep -v '^ *+' conftest.er1 >conftest.err
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13749 { (case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_try") 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_try") 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_search_pthread_mutex_lock=$ac_res
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13776 rm -f core conftest.err conftest.$ac_objext \
13778 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13782 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13785 ac_cv_search_pthread_mutex_lock=no
13787 rm conftest.$ac_ext
13788 LIBS=$ac_func_search_save_LIBS
13790 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13791 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13792 ac_res=$ac_cv_search_pthread_mutex_lock
13793 if test "$ac_res" != no; then
13794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_PTHREAD_MUTEX_LOCK 1
13802 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13803 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13804 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_func_search_save_LIBS=$LIBS
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13821 char pthread_rwlock_init ();
13825 return pthread_rwlock_init ();
13830 for ac_lib in '' pthread; do
13831 if test -z "$ac_lib"; then
13832 ac_res="none required"
13835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_link") 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest$ac_exeext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_search_pthread_rwlock_init=$ac_res
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13879 rm -f core conftest.err conftest.$ac_objext \
13881 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13885 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13888 ac_cv_search_pthread_rwlock_init=no
13890 rm conftest.$ac_ext
13891 LIBS=$ac_func_search_save_LIBS
13893 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13894 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13895 ac_res=$ac_cv_search_pthread_rwlock_init
13896 if test "$ac_res" != no; then
13897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_PTHREAD_RWLOCK_INIT 1
13905 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13906 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13907 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 ac_func_search_save_LIBS=$LIBS
13911 cat >conftest.$ac_ext <<_ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13918 /* Override any GCC internal prototype to avoid an error.
13919 Use char because int might match the return type of a GCC
13920 builtin and then its argument prototype would still apply. */
13924 char pthread_getspecific ();
13928 return pthread_getspecific ();
13933 for ac_lib in '' pthread; do
13934 if test -z "$ac_lib"; then
13935 ac_res="none required"
13938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (ac_try="$ac_link"
13942 case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_link") 2>conftest.er1
13949 grep -v '^ *+' conftest.er1 >conftest.err
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_try") 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_search_pthread_getspecific=$ac_res
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13982 rm -f core conftest.err conftest.$ac_objext \
13984 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13988 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13991 ac_cv_search_pthread_getspecific=no
13993 rm conftest.$ac_ext
13994 LIBS=$ac_func_search_save_LIBS
13996 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13997 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13998 ac_res=$ac_cv_search_pthread_getspecific
13999 if test "$ac_res" != no; then
14000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_PTHREAD_GETSPECIFIC 1
14011 # Check whether --with-udis86 was given.
14012 if test "${with_udis86+set}" = set; then
14013 withval=$with_udis86;
14018 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14021 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14022 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-ludis86 $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14065 { (case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_try") 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_cv_lib_udis86_ud_init=yes
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_cv_lib_udis86_ud_init=no
14092 rm -f core conftest.err conftest.$ac_objext \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14096 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14097 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14098 if test $ac_cv_lib_udis86_ud_init = yes; then
14099 cat >>confdefs.h <<_ACEOF
14100 #define HAVE_LIBUDIS86 1
14103 LIBS="-ludis86 $LIBS"
14107 echo "Error! You need to have libudis86 around."
14119 cat >>confdefs.h <<_ACEOF
14120 #define USE_UDIS86 $USE_UDIS86
14125 # Check whether --with-oprofile was given.
14126 if test "${with_oprofile+set}" = set; then
14127 withval=$with_oprofile;
14131 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14132 no) llvm_cv_oppath=
14135 *) llvm_cv_oppath="${withval}/lib/oprofile"
14136 CPPFLAGS="-I${withval}/include";;
14138 if test -n "$llvm_cv_oppath" ; then
14139 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14140 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14141 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14142 if test "${ac_cv_search_bfd_init+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 ac_func_search_save_LIBS=$LIBS
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14163 return bfd_init ();
14168 for ac_lib in '' bfd; do
14169 if test -z "$ac_lib"; then
14170 ac_res="none required"
14173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14175 rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (ac_try="$ac_link"
14177 case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_link") 2>conftest.er1
14184 grep -v '^ *+' conftest.er1 >conftest.err
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest$ac_exeext'
14200 { (case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 ac_cv_search_bfd_init=$ac_res
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14217 rm -f core conftest.err conftest.$ac_objext \
14219 if test "${ac_cv_search_bfd_init+set}" = set; then
14223 if test "${ac_cv_search_bfd_init+set}" = set; then
14226 ac_cv_search_bfd_init=no
14228 rm conftest.$ac_ext
14229 LIBS=$ac_func_search_save_LIBS
14231 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14232 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14233 ac_res=$ac_cv_search_bfd_init
14234 if test "$ac_res" != no; then
14235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14239 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14240 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14241 if test "${ac_cv_search_op_open_agent+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 ac_func_search_save_LIBS=$LIBS
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14258 char op_open_agent ();
14262 return op_open_agent ();
14267 for ac_lib in '' opagent; do
14268 if test -z "$ac_lib"; then
14269 ac_res="none required"
14272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (ac_try="$ac_link"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_link") 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14289 { (case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_try") 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest$ac_exeext'
14299 { (case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_try") 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 ac_cv_search_op_open_agent=$ac_res
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14316 rm -f core conftest.err conftest.$ac_objext \
14318 if test "${ac_cv_search_op_open_agent+set}" = set; then
14322 if test "${ac_cv_search_op_open_agent+set}" = set; then
14325 ac_cv_search_op_open_agent=no
14327 rm conftest.$ac_ext
14328 LIBS=$ac_func_search_save_LIBS
14330 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14331 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14332 ac_res=$ac_cv_search_op_open_agent
14333 if test "$ac_res" != no; then
14334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14338 echo "Error! You need to have libopagent around."
14343 if test "${ac_cv_header_opagent_h+set}" = set; then
14344 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14345 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_opagent_h+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14350 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14352 # Is the header compilable?
14353 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14354 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14362 #include <opagent.h>
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_try") 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_header_compiler=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_header_compiler=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408 echo "${ECHO_T}$ac_header_compiler" >&6; }
14410 # Is the header present?
14411 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14412 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14413 cat >conftest.$ac_ext <<_ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 #include <opagent.h>
14421 if { (ac_try="$ac_cpp conftest.$ac_ext"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } >/dev/null; then
14434 if test -s conftest.err; then
14435 ac_cpp_err=$ac_c_preproc_warn_flag
14436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14443 if test -z "$ac_cpp_err"; then
14444 ac_header_preproc=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_header_preproc=no
14452 rm -f conftest.err conftest.$ac_ext
14453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14454 echo "${ECHO_T}$ac_header_preproc" >&6; }
14456 # So? What about this header?
14457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14459 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14460 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14462 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14463 ac_header_preproc=yes
14466 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14467 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14469 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14471 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14473 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14475 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14477 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14479 ## ----------------------------------- ##
14480 ## Report this to llvmbugs@cs.uiuc.edu ##
14481 ## ----------------------------------- ##
14483 ) | sed "s/^/$as_me: WARNING: /" >&2
14486 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14487 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_opagent_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 ac_cv_header_opagent_h=$ac_header_preproc
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14497 if test $ac_cv_header_opagent_h = yes; then
14501 echo "Error! You need to have opagent.h around."
14517 cat >>confdefs.h <<_ACEOF
14518 #define USE_OPROFILE $USE_OPROFILE
14528 ac_header_dirent=no
14529 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14530 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14531 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14532 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 #include <sys/types.h>
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_compile") 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_try") 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 eval "$as_ac_Header=yes"
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 eval "$as_ac_Header=no"
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 ac_res=`eval echo '${'$as_ac_Header'}'`
14599 { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14606 ac_header_dirent=$ac_hdr; break
14610 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14611 if test $ac_header_dirent = dirent.h; then
14612 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14613 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14614 if test "${ac_cv_search_opendir+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 ac_func_search_save_LIBS=$LIBS
14618 cat >conftest.$ac_ext <<_ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14625 /* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
14640 for ac_lib in '' dir; do
14641 if test -z "$ac_lib"; then
14642 ac_res="none required"
14645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14662 { (case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_try") 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try='test -s conftest$ac_exeext'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_try") 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_search_opendir=$ac_res
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14689 rm -f core conftest.err conftest.$ac_objext \
14691 if test "${ac_cv_search_opendir+set}" = set; then
14695 if test "${ac_cv_search_opendir+set}" = set; then
14698 ac_cv_search_opendir=no
14700 rm conftest.$ac_ext
14701 LIBS=$ac_func_search_save_LIBS
14703 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14704 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14705 ac_res=$ac_cv_search_opendir
14706 if test "$ac_res" != no; then
14707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14714 if test "${ac_cv_search_opendir+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 ac_func_search_save_LIBS=$LIBS
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any GCC internal prototype to avoid an error.
14726 Use char because int might match the return type of a GCC
14727 builtin and then its argument prototype would still apply. */
14740 for ac_lib in '' x; do
14741 if test -z "$ac_lib"; then
14742 ac_res="none required"
14745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest$ac_exeext'
14772 { (case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_try") 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_search_opendir=$ac_res
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14789 rm -f core conftest.err conftest.$ac_objext \
14791 if test "${ac_cv_search_opendir+set}" = set; then
14795 if test "${ac_cv_search_opendir+set}" = set; then
14798 ac_cv_search_opendir=no
14800 rm conftest.$ac_ext
14801 LIBS=$ac_func_search_save_LIBS
14803 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14804 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14805 ac_res=$ac_cv_search_opendir
14806 if test "$ac_res" != no; then
14807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14813 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14814 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14815 if test "${ac_cv_header_mmap_anon+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #include <sys/mman.h>
14831 #include <unistd.h>
14836 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14856 { (case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_try") 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_try") 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_cv_header_mmap_anon=yes
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_cv_header_mmap_anon=no
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 ac_cpp='$CPP $CPPFLAGS'
14886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14893 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14894 if test "$ac_cv_header_mmap_anon" = yes; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_MMAP_ANONYMOUS 1
14902 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14903 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14904 if test "${ac_cv_header_stat_broken+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 #include <sys/types.h>
14914 #include <sys/stat.h>
14916 #if defined S_ISBLK && defined S_IFDIR
14917 # if S_ISBLK (S_IFDIR)
14922 #if defined S_ISBLK && defined S_IFCHR
14923 # if S_ISBLK (S_IFCHR)
14928 #if defined S_ISLNK && defined S_IFREG
14929 # if S_ISLNK (S_IFREG)
14934 #if defined S_ISSOCK && defined S_IFREG
14935 # if S_ISSOCK (S_IFREG)
14941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942 $EGREP "You lose" >/dev/null 2>&1; then
14943 ac_cv_header_stat_broken=yes
14945 ac_cv_header_stat_broken=no
14950 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14952 if test $ac_cv_header_stat_broken = yes; then
14954 cat >>confdefs.h <<\_ACEOF
14955 #define STAT_MACROS_BROKEN 1
14960 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14962 if test "${ac_cv_header_stdc+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <stdlib.h>
14972 #include <stdarg.h>
14973 #include <string.h>
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_try") 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 ac_cv_header_stdc=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_header_stdc=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 if test $ac_cv_header_stdc = yes; then
15029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15030 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 #include <string.h>
15039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15040 $EGREP "memchr" >/dev/null 2>&1; then
15043 ac_cv_header_stdc=no
15049 if test $ac_cv_header_stdc = yes; then
15050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <stdlib.h>
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061 $EGREP "free" >/dev/null 2>&1; then
15064 ac_cv_header_stdc=no
15070 if test $ac_cv_header_stdc = yes; then
15071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15072 if test "$cross_compiling" = yes; then
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15082 #include <stdlib.h>
15083 #if ((' ' & 0x0FF) == 0x020)
15084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15087 # define ISLOWER(c) \
15088 (('a' <= (c) && (c) <= 'i') \
15089 || ('j' <= (c) && (c) <= 'r') \
15090 || ('s' <= (c) && (c) <= 'z'))
15091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15099 for (i = 0; i < 256; i++)
15100 if (XOR (islower (i), ISLOWER (i))
15101 || toupper (i) != TOUPPER (i))
15106 rm -f conftest$ac_exeext
15107 if { (ac_try="$ac_link"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_link") 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15117 { (case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_try") 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15128 echo "$as_me: program exited with status $ac_status" >&5
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ( exit $ac_status )
15133 ac_cv_header_stdc=no
15135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15141 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15142 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15143 if test $ac_cv_header_stdc = yes; then
15145 cat >>confdefs.h <<\_ACEOF
15146 #define STDC_HEADERS 1
15151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 #include <sys/types.h>
15163 #include <sys/wait.h>
15164 #ifndef WEXITSTATUS
15165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15181 rm -f conftest.$ac_objext
15182 if { (ac_try="$ac_compile"
15183 case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_compile") 2>conftest.er1
15190 grep -v '^ *+' conftest.er1 >conftest.err
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_try") 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_try") 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_header_sys_wait_h=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 ac_cv_header_sys_wait_h=no
15223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15226 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15227 if test $ac_cv_header_sys_wait_h = yes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_SYS_WAIT_H 1
15235 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15236 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15237 if test "${ac_cv_header_time+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 #include <sys/types.h>
15247 #include <sys/time.h>
15253 if ((struct tm *) 0)
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_compile") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_try") 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_cv_header_time=yes
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ac_cv_header_time=no
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15305 if test $ac_cv_header_time = yes; then
15307 cat >>confdefs.h <<\_ACEOF
15308 #define TIME_WITH_SYS_TIME 1
15320 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 ac_res=`eval echo '${'$as_ac_Header'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15333 # Is the header compilable?
15334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15336 cat >conftest.$ac_ext <<_ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15342 $ac_includes_default
15343 #include <$ac_header>
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15354 grep -v '^ *+' conftest.er1 >conftest.err
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest.$ac_objext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_header_compiler=yes
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_compiler=no
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6; }
15391 # Is the header present?
15392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <$ac_header>
15402 if { (ac_try="$ac_cpp conftest.$ac_ext"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } >/dev/null; then
15415 if test -s conftest.err; then
15416 ac_cpp_err=$ac_c_preproc_warn_flag
15417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15424 if test -z "$ac_cpp_err"; then
15425 ac_header_preproc=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_header_preproc=no
15433 rm -f conftest.err conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15435 echo "${ECHO_T}$ac_header_preproc" >&6; }
15437 # So? What about this header?
15438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15444 ac_header_preproc=yes
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15460 ## ----------------------------------- ##
15461 ## Report this to llvmbugs@cs.uiuc.edu ##
15462 ## ----------------------------------- ##
15464 ) | sed "s/^/$as_me: WARNING: /" >&2
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 eval "$as_ac_Header=\$ac_header_preproc"
15474 ac_res=`eval echo '${'$as_ac_Header'}'`
15475 { echo "$as_me:$LINENO: result: $ac_res" >&5
15476 echo "${ECHO_T}$ac_res" >&6; }
15479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15507 # Is the header compilable?
15508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 $ac_includes_default
15517 #include <$ac_header>
15519 rm -f conftest.$ac_objext
15520 if { (ac_try="$ac_compile"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_header_compiler=yes
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_header_compiler=no
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15563 echo "${ECHO_T}$ac_header_compiler" >&6; }
15565 # Is the header present?
15566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15568 cat >conftest.$ac_ext <<_ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574 #include <$ac_header>
15576 if { (ac_try="$ac_cpp conftest.$ac_ext"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } >/dev/null; then
15589 if test -s conftest.err; then
15590 ac_cpp_err=$ac_c_preproc_warn_flag
15591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15598 if test -z "$ac_cpp_err"; then
15599 ac_header_preproc=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_header_preproc=no
15607 rm -f conftest.err conftest.$ac_ext
15608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15609 echo "${ECHO_T}$ac_header_preproc" >&6; }
15611 # So? What about this header?
15612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15618 ac_header_preproc=yes
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15634 ## ----------------------------------- ##
15635 ## Report this to llvmbugs@cs.uiuc.edu ##
15636 ## ----------------------------------- ##
15638 ) | sed "s/^/$as_me: WARNING: /" >&2
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 eval "$as_ac_Header=\$ac_header_preproc"
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15664 for ac_header in utime.h windows.h
15666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 ac_res=`eval echo '${'$as_ac_Header'}'`
15674 { echo "$as_me:$LINENO: result: $ac_res" >&5
15675 echo "${ECHO_T}$ac_res" >&6; }
15677 # Is the header compilable?
15678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 $ac_includes_default
15687 #include <$ac_header>
15689 rm -f conftest.$ac_objext
15690 if { (ac_try="$ac_compile"
15691 case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_compile") 2>conftest.er1
15698 grep -v '^ *+' conftest.er1 >conftest.err
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; } &&
15713 { ac_try='test -s conftest.$ac_objext'
15714 { (case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_try") 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_header_compiler=yes
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_header_compiler=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15733 echo "${ECHO_T}$ac_header_compiler" >&6; }
15735 # Is the header present?
15736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15738 cat >conftest.$ac_ext <<_ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <$ac_header>
15746 if { (ac_try="$ac_cpp conftest.$ac_ext"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } >/dev/null; then
15759 if test -s conftest.err; then
15760 ac_cpp_err=$ac_c_preproc_warn_flag
15761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768 if test -z "$ac_cpp_err"; then
15769 ac_header_preproc=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_preproc=no
15777 rm -f conftest.err conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15779 echo "${ECHO_T}$ac_header_preproc" >&6; }
15781 # So? What about this header?
15782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15788 ac_header_preproc=yes
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15804 ## ----------------------------------- ##
15805 ## Report this to llvmbugs@cs.uiuc.edu ##
15806 ## ----------------------------------- ##
15808 ) | sed "s/^/$as_me: WARNING: /" >&2
15811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 eval "$as_ac_Header=\$ac_header_preproc"
15818 ac_res=`eval echo '${'$as_ac_Header'}'`
15819 { echo "$as_me:$LINENO: result: $ac_res" >&5
15820 echo "${ECHO_T}$ac_res" >&6; }
15823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15836 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 ac_res=`eval echo '${'$as_ac_Header'}'`
15846 { echo "$as_me:$LINENO: result: $ac_res" >&5
15847 echo "${ECHO_T}$ac_res" >&6; }
15849 # Is the header compilable?
15850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 $ac_includes_default
15859 #include <$ac_header>
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876 { (case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_try") 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_try") 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_header_compiler=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_header_compiler=no
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15905 echo "${ECHO_T}$ac_header_compiler" >&6; }
15907 # Is the header present?
15908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 #include <$ac_header>
15918 if { (ac_try="$ac_cpp conftest.$ac_ext"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } >/dev/null; then
15931 if test -s conftest.err; then
15932 ac_cpp_err=$ac_c_preproc_warn_flag
15933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15940 if test -z "$ac_cpp_err"; then
15941 ac_header_preproc=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_header_preproc=no
15949 rm -f conftest.err conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6; }
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15976 ## ----------------------------------- ##
15977 ## Report this to llvmbugs@cs.uiuc.edu ##
15978 ## ----------------------------------- ##
15980 ) | sed "s/^/$as_me: WARNING: /" >&2
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 eval "$as_ac_Header=\$ac_header_preproc"
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16021 # Is the header compilable?
16022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 $ac_includes_default
16031 #include <$ac_header>
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_compile") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6; }
16079 # Is the header present?
16080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <$ac_header>
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev/null; then
16103 if test -s conftest.err; then
16104 ac_cpp_err=$ac_c_preproc_warn_flag
16105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16112 if test -z "$ac_cpp_err"; then
16113 ac_header_preproc=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_header_preproc=no
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16125 # So? What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132 ac_header_preproc=yes
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16148 ## ----------------------------------- ##
16149 ## Report this to llvmbugs@cs.uiuc.edu ##
16150 ## ----------------------------------- ##
16152 ) | sed "s/^/$as_me: WARNING: /" >&2
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 eval "$as_ac_Header=\$ac_header_preproc"
16162 ac_res=`eval echo '${'$as_ac_Header'}'`
16163 { echo "$as_me:$LINENO: result: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16168 cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16176 if test "$ENABLE_THREADS" -eq 1 ; then
16178 for ac_header in pthread.h
16180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16191 # Is the header compilable?
16192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $ac_includes_default
16201 #include <$ac_header>
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_header_compiler=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_compiler=no
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 #include <$ac_header>
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null; then
16273 if test -s conftest.err; then
16274 ac_cpp_err=$ac_c_preproc_warn_flag
16275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16282 if test -z "$ac_cpp_err"; then
16283 ac_header_preproc=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_header_preproc=no
16291 rm -f conftest.err conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293 echo "${ECHO_T}$ac_header_preproc" >&6; }
16295 # So? What about this header?
16296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302 ac_header_preproc=yes
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318 ## ----------------------------------- ##
16319 ## Report this to llvmbugs@cs.uiuc.edu ##
16320 ## ----------------------------------- ##
16322 ) | sed "s/^/$as_me: WARNING: /" >&2
16325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 eval "$as_ac_Header=\$ac_header_preproc"
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16355 if test "$llvm_cv_enable_libffi" = "yes" ; then
16358 for ac_header in ffi.h ffi/ffi.h
16360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 ac_res=`eval echo '${'$as_ac_Header'}'`
16368 { echo "$as_me:$LINENO: result: $ac_res" >&5
16369 echo "${ECHO_T}$ac_res" >&6; }
16371 # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 #include <$ac_header>
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_compile") 2>conftest.er1
16392 grep -v '^ *+' conftest.er1 >conftest.err
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_header_compiler=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_header_compiler=no
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6; }
16429 # Is the header present?
16430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <$ac_header>
16440 if { (ac_try="$ac_cpp conftest.$ac_ext"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } >/dev/null; then
16453 if test -s conftest.err; then
16454 ac_cpp_err=$ac_c_preproc_warn_flag
16455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16462 if test -z "$ac_cpp_err"; then
16463 ac_header_preproc=yes
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_header_preproc=no
16471 rm -f conftest.err conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473 echo "${ECHO_T}$ac_header_preproc" >&6; }
16475 # So? What about this header?
16476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16482 ac_header_preproc=yes
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16498 ## ----------------------------------- ##
16499 ## Report this to llvmbugs@cs.uiuc.edu ##
16500 ## ----------------------------------- ##
16502 ) | sed "s/^/$as_me: WARNING: /" >&2
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 eval "$as_ac_Header=\$ac_header_preproc"
16512 ac_res=`eval echo '${'$as_ac_Header'}'`
16513 { echo "$as_me:$LINENO: result: $ac_res" >&5
16514 echo "${ECHO_T}$ac_res" >&6; }
16517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16518 cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16531 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16532 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16533 if test "${ac_cv_huge_val_sanity+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 ac_cpp='$CXXCPP $CPPFLAGS'
16539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16544 if test "$cross_compiling" = yes; then
16545 ac_cv_huge_val_sanity=yes
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16557 double x = HUGE_VAL; return x != x;
16562 rm -f conftest$ac_exeext
16563 if { (ac_try="$ac_link"
16564 case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_link") 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_cv_huge_val_sanity=yes
16584 echo "$as_me: program exited with status $ac_status" >&5
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ( exit $ac_status )
16589 ac_cv_huge_val_sanity=no
16591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16596 ac_cpp='$CPP $CPPFLAGS'
16597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16603 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16604 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16605 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16608 { echo "$as_me:$LINENO: checking for pid_t" >&5
16609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16610 if test "${ac_cv_type_pid_t+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 cat >conftest.$ac_ext <<_ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 $ac_includes_default
16620 typedef pid_t ac__type_new_;
16624 if ((ac__type_new_ *) 0)
16626 if (sizeof (ac__type_new_))
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_cv_type_pid_t=yes
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_cv_type_pid_t=no
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16678 if test $ac_cv_type_pid_t = yes; then
16682 cat >>confdefs.h <<_ACEOF
16688 { echo "$as_me:$LINENO: checking for size_t" >&5
16689 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16690 if test "${ac_cv_type_size_t+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 $ac_includes_default
16700 typedef size_t ac__type_new_;
16704 if ((ac__type_new_ *) 0)
16706 if (sizeof (ac__type_new_))
16712 rm -f conftest.$ac_objext
16713 if { (ac_try="$ac_compile"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_compile") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_type_size_t=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_type_size_t=no
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16757 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16758 if test $ac_cv_type_size_t = yes; then
16762 cat >>confdefs.h <<_ACEOF
16763 #define size_t unsigned int
16769 cat >>confdefs.h <<_ACEOF
16770 #define RETSIGTYPE void
16773 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16774 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16775 if test "${ac_cv_struct_tm+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 cat >conftest.$ac_ext <<_ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 #include <sys/types.h>
16790 struct tm *tp; tp->tm_sec;
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_struct_tm=time.h
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_struct_tm=sys/time.h
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16840 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16841 if test $ac_cv_struct_tm = sys/time.h; then
16843 cat >>confdefs.h <<\_ACEOF
16844 #define TM_IN_SYS_TIME 1
16849 { echo "$as_me:$LINENO: checking for int64_t" >&5
16850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16851 if test "${ac_cv_type_int64_t+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 cat >conftest.$ac_ext <<_ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16860 $ac_includes_default
16861 typedef int64_t ac__type_new_;
16865 if ((ac__type_new_ *) 0)
16867 if (sizeof (ac__type_new_))
16873 rm -f conftest.$ac_objext
16874 if { (ac_try="$ac_compile"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_compile") 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
16898 { (case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_try") 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_type_int64_t=yes
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 ac_cv_type_int64_t=no
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16918 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16919 if test $ac_cv_type_int64_t = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_INT64_T 1
16927 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16928 echo "$as_me: error: Type int64_t required but not found" >&2;}
16929 { (exit 1); exit 1; }; }
16932 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16933 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16934 if test "${ac_cv_type_uint64_t+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 $ac_includes_default
16944 typedef uint64_t ac__type_new_;
16948 if ((ac__type_new_ *) 0)
16950 if (sizeof (ac__type_new_))
16956 rm -f conftest.$ac_objext
16957 if { (ac_try="$ac_compile"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_compile") 2>conftest.er1
16965 grep -v '^ *+' conftest.er1 >conftest.err
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_type_uint64_t=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ac_cv_type_uint64_t=no
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17001 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17002 if test $ac_cv_type_uint64_t = yes; then
17004 cat >>confdefs.h <<_ACEOF
17005 #define HAVE_UINT64_T 1
17010 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17011 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17012 if test "${ac_cv_type_u_int64_t+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 typedef u_int64_t ac__type_new_;
17026 if ((ac__type_new_ *) 0)
17028 if (sizeof (ac__type_new_))
17034 rm -f conftest.$ac_objext
17035 if { (ac_try="$ac_compile"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_compile") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_type_u_int64_t=yes
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_cv_type_u_int64_t=no
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17079 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17080 if test $ac_cv_type_u_int64_t = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083 #define HAVE_U_INT64_T 1
17088 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17089 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17090 { (exit 1); exit 1; }; }
17104 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17120 #define $ac_func innocuous_$ac_func
17122 /* System header to define __stub macros and hopefully few prototypes,
17123 which can conflict with char $ac_func (); below.
17124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125 <limits.h> exists even on freestanding compilers. */
17128 # include <limits.h>
17130 # include <assert.h>
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17142 /* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145 #if defined __stub_$ac_func || defined __stub___$ac_func
17152 return $ac_func ();
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 eval "$as_ac_var=yes"
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 eval "$as_ac_var=no"
17199 rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17202 ac_res=`eval echo '${'$as_ac_var'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 if test `eval echo '${'$as_ac_var'}'` = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17217 for ac_func in powf fmodf strtof round
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233 #define $ac_func innocuous_$ac_func
17235 /* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17241 # include <limits.h>
17243 # include <assert.h>
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17255 /* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17265 return $ac_func ();
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 eval "$as_ac_var=yes"
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 eval "$as_ac_var=no"
17312 rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17315 ac_res=`eval echo '${'$as_ac_var'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17318 if test `eval echo '${'$as_ac_var'}'` = yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17355 # include <limits.h>
17357 # include <assert.h>
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 return $ac_func ();
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 eval "$as_ac_var=no"
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 for ac_func in isatty mkdtemp mkstemp
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17467 # include <limits.h>
17469 # include <assert.h>
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17491 return $ac_func ();
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 eval "$as_ac_var=yes"
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 eval "$as_ac_var=no"
17538 rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17557 for ac_func in mktemp realpath sbrk setrlimit strdup
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 return $ac_func ();
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17670 for ac_func in strerror strerror_r strerror_s setenv
17672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17686 #define $ac_func innocuous_$ac_func
17688 /* System header to define __stub macros and hopefully few prototypes,
17689 which can conflict with char $ac_func (); below.
17690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691 <limits.h> exists even on freestanding compilers. */
17694 # include <limits.h>
17696 # include <assert.h>
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17708 /* The GNU C library defines this for functions which it implements
17709 to always fail with ENOSYS. Some functions are actually named
17710 something starting with __ and the normal name is an alias. */
17711 #if defined __stub_$ac_func || defined __stub___$ac_func
17718 return $ac_func ();
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_link") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest$ac_exeext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 eval "$as_ac_var=yes"
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 eval "$as_ac_var=no"
17765 rm -f core conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17768 ac_res=`eval echo '${'$as_ac_var'}'`
17769 { echo "$as_me:$LINENO: result: $ac_res" >&5
17770 echo "${ECHO_T}$ac_res" >&6; }
17771 if test `eval echo '${'$as_ac_var'}'` = yes; then
17772 cat >>confdefs.h <<_ACEOF
17773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17783 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 cat >conftest.$ac_ext <<_ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799 #define $ac_func innocuous_$ac_func
17801 /* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char $ac_func (); below.
17803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 <limits.h> exists even on freestanding compilers. */
17807 # include <limits.h>
17809 # include <assert.h>
17814 /* Override any GCC internal prototype to avoid an error.
17815 Use char because int might match the return type of a GCC
17816 builtin and then its argument prototype would still apply. */
17821 /* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824 #if defined __stub_$ac_func || defined __stub___$ac_func
17831 return $ac_func ();
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (ac_try="$ac_link"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_link") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 eval "$as_ac_var=yes"
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 eval "$as_ac_var=no"
17878 rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17881 ac_res=`eval echo '${'$as_ac_var'}'`
17882 { echo "$as_me:$LINENO: result: $ac_res" >&5
17883 echo "${ECHO_T}$ac_res" >&6; }
17884 if test `eval echo '${'$as_ac_var'}'` = yes; then
17885 cat >>confdefs.h <<_ACEOF
17886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912 #define $ac_func innocuous_$ac_func
17914 /* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17920 # include <limits.h>
17922 # include <assert.h>
17927 /* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17934 /* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937 #if defined __stub_$ac_func || defined __stub___$ac_func
17944 return $ac_func ();
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17958 grep -v '^ *+' conftest.er1 >conftest.err
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_try") 2>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 eval "$as_ac_var=yes"
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 eval "$as_ac_var=no"
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17994 ac_res=`eval echo '${'$as_ac_var'}'`
17995 { echo "$as_me:$LINENO: result: $ac_res" >&5
17996 echo "${ECHO_T}$ac_res" >&6; }
17997 if test `eval echo '${'$as_ac_var'}'` = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18005 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18006 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18007 if test "${llvm_cv_c_printf_a+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 ac_cpp='$CPP $CPPFLAGS'
18012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016 if test "$cross_compiling" = yes; then
18017 llvmac_cv_c_printf_a=no
18019 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18028 #include <stdlib.h>
18034 volatile double A, B;
18038 sprintf(Buffer, "%a", A);
18042 if (A != 0x1.999999999999ap-4)
18049 rm -f conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 llvm_cv_c_printf_a=yes
18071 echo "$as_me: program exited with status $ac_status" >&5
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 ( exit $ac_status )
18076 llvmac_cv_c_printf_a=no
18078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18083 ac_cpp='$CPP $CPPFLAGS'
18084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18090 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18091 if test "$llvm_cv_c_printf_a" = "yes"; then
18093 cat >>confdefs.h <<\_ACEOF
18094 #define HAVE_PRINTF_A 1
18100 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18101 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18102 if test "${ac_cv_func_rand48+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 ac_cpp='$CXXCPP $CPPFLAGS'
18107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 #include <stdlib.h>
18121 srand48(0);lrand48();drand48();
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18135 grep -v '^ *+' conftest.er1 >conftest.err
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18141 { (case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_try") 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_cv_func_rand48=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_cv_func_rand48=no
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170 ac_cpp='$CPP $CPPFLAGS'
18171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18176 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18177 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18179 if test "$ac_cv_func_rand48" = "yes" ; then
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_RAND48 1
18189 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18190 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18191 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 ac_cpp='$CXXCPP $CPPFLAGS'
18196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_func_isnan_in_math_h=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_func_isnan_in_math_h=no
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259 ac_cpp='$CPP $CPPFLAGS'
18260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18265 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18266 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18269 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18271 cat >>confdefs.h <<\_ACEOF
18272 #define HAVE_ISNAN_IN_MATH_H 1
18277 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18278 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18279 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 ac_cpp='$CXXCPP $CPPFLAGS'
18284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18303 rm -f conftest.$ac_objext
18304 if { (ac_try="$ac_compile"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_compile") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18318 { (case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_try") 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337 ac_cv_func_isnan_in_cmath=yes
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18342 ac_cv_func_isnan_in_cmath=no
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 ac_cpp='$CPP $CPPFLAGS'
18348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18353 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18354 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18356 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE_ISNAN_IN_CMATH 1
18364 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18365 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18366 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 ac_cpp='$CXXCPP $CPPFLAGS'
18371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18385 float f; std::isnan(f);
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_func_std_isnan_in_cmath=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_func_std_isnan_in_cmath=no
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 ac_cpp='$CPP $CPPFLAGS'
18435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18440 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18441 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18443 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18445 cat >>confdefs.h <<\_ACEOF
18446 #define HAVE_STD_ISNAN_IN_CMATH 1
18452 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18453 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18454 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 ac_cpp='$CXXCPP $CPPFLAGS'
18459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18493 { (case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_try") 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest.$ac_objext'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_func_isinf_in_math_h=yes
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_cv_func_isinf_in_math_h=no
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18529 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18531 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_ISINF_IN_MATH_H 1
18539 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18540 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18541 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 ac_cpp='$CXXCPP $CPPFLAGS'
18546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_compile") 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest.$ac_objext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_func_isinf_in_cmath=yes
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 ac_cv_func_isinf_in_cmath=no
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18609 ac_cpp='$CPP $CPPFLAGS'
18610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18616 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18618 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18620 cat >>confdefs.h <<\_ACEOF
18621 #define HAVE_ISINF_IN_CMATH 1
18626 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18627 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18628 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 ac_cpp='$CXXCPP $CPPFLAGS'
18633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18647 float f; std::isinf(f)}
18652 rm -f conftest.$ac_objext
18653 if { (ac_try="$ac_compile"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_compile") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_cv_func_std_isinf_in_cmath=yes
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_cv_func_std_isinf_in_cmath=no
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696 ac_cpp='$CPP $CPPFLAGS'
18697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18702 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18703 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18705 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18707 cat >>confdefs.h <<\_ACEOF
18708 #define HAVE_STD_ISINF_IN_CMATH 1
18713 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18714 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18715 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 ac_cpp='$CXXCPP $CPPFLAGS'
18720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 #include <ieeefp.h>
18734 float f; finite(f);
18739 rm -f conftest.$ac_objext
18740 if { (ac_try="$ac_compile"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_compile") 2>conftest.er1
18748 grep -v '^ *+' conftest.er1 >conftest.err
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18754 { (case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_try") 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_func_finite_in_ieeefp_h=yes
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_cv_func_finite_in_ieeefp_h=no
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783 ac_cpp='$CPP $CPPFLAGS'
18784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18790 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18792 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18794 cat >>confdefs.h <<\_ACEOF
18795 #define HAVE_FINITE_IN_IEEEFP_H 1
18802 if test "$llvm_cv_platform_type" = "Unix" ; then
18805 for ac_header in stdlib.h unistd.h
18807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_res=`eval echo '${'$as_ac_Header'}'`
18815 { echo "$as_me:$LINENO: result: $ac_res" >&5
18816 echo "${ECHO_T}$ac_res" >&6; }
18818 # Is the header compilable?
18819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 $ac_includes_default
18828 #include <$ac_header>
18830 rm -f conftest.$ac_objext
18831 if { (ac_try="$ac_compile"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_compile") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_try") 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_header_compiler=yes
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_header_compiler=no
18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18874 echo "${ECHO_T}$ac_header_compiler" >&6; }
18876 # Is the header present?
18877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18879 cat >conftest.$ac_ext <<_ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18885 #include <$ac_header>
18887 if { (ac_try="$ac_cpp conftest.$ac_ext"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } >/dev/null; then
18900 if test -s conftest.err; then
18901 ac_cpp_err=$ac_c_preproc_warn_flag
18902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18909 if test -z "$ac_cpp_err"; then
18910 ac_header_preproc=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_header_preproc=no
18918 rm -f conftest.err conftest.$ac_ext
18919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18920 echo "${ECHO_T}$ac_header_preproc" >&6; }
18922 # So? What about this header?
18923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18929 ac_header_preproc=yes
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18945 ## ----------------------------------- ##
18946 ## Report this to llvmbugs@cs.uiuc.edu ##
18947 ## ----------------------------------- ##
18949 ) | sed "s/^/$as_me: WARNING: /" >&2
18952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 eval "$as_ac_Header=\$ac_header_preproc"
18959 ac_res=`eval echo '${'$as_ac_Header'}'`
18960 { echo "$as_me:$LINENO: result: $ac_res" >&5
18961 echo "${ECHO_T}$ac_res" >&6; }
18964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18974 for ac_func in getpagesize
18976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18990 #define $ac_func innocuous_$ac_func
18992 /* System header to define __stub macros and hopefully few prototypes,
18993 which can conflict with char $ac_func (); below.
18994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 <limits.h> exists even on freestanding compilers. */
18998 # include <limits.h>
19000 # include <assert.h>
19005 /* Override any GCC internal prototype to avoid an error.
19006 Use char because int might match the return type of a GCC
19007 builtin and then its argument prototype would still apply. */
19012 /* The GNU C library defines this for functions which it implements
19013 to always fail with ENOSYS. Some functions are actually named
19014 something starting with __ and the normal name is an alias. */
19015 #if defined __stub_$ac_func || defined __stub___$ac_func
19022 return $ac_func ();
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_link") 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 eval "$as_ac_var=yes"
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 eval "$as_ac_var=no"
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19072 ac_res=`eval echo '${'$as_ac_var'}'`
19073 { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19083 { echo "$as_me:$LINENO: checking for working mmap" >&5
19084 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 if test "$cross_compiling" = yes; then
19089 ac_cv_func_mmap_fixed_mapped=no
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 $ac_includes_default
19098 /* malloc might have been renamed as rpl_malloc. */
19101 /* Thanks to Mike Haertel and Jim Avera for this test.
19102 Here is a matrix of mmap possibilities:
19103 mmap private not fixed
19104 mmap private fixed at somewhere currently unmapped
19105 mmap private fixed at somewhere already mapped
19106 mmap shared not fixed
19107 mmap shared fixed at somewhere currently unmapped
19108 mmap shared fixed at somewhere already mapped
19109 For private mappings, we should verify that changes cannot be read()
19110 back from the file, nor mmap's back from the file at a different
19111 address. (There have been systems where private was not correctly
19112 implemented like the infamous i386 svr4.0, and systems where the
19113 VM page cache was not coherent with the file system buffer cache
19114 like early versions of FreeBSD and possibly contemporary NetBSD.)
19115 For shared mappings, we should conversely verify that changes get
19116 propagated back to all the places they're supposed to be.
19118 Grep wants private fixed already mapped.
19119 The main things grep needs to know about mmap are:
19120 * does it exist and is it safe to write into the mmap'd area
19121 * how to use it (BSD variants) */
19124 #include <sys/mman.h>
19126 #if !STDC_HEADERS && !HAVE_STDLIB_H
19130 /* This mess was copied from the GNU getpagesize.h. */
19131 #if !HAVE_GETPAGESIZE
19132 /* Assume that all systems that can run configure have sys/param.h. */
19133 # if !HAVE_SYS_PARAM_H
19134 # define HAVE_SYS_PARAM_H 1
19137 # ifdef _SC_PAGESIZE
19138 # define getpagesize() sysconf(_SC_PAGESIZE)
19139 # else /* no _SC_PAGESIZE */
19140 # if HAVE_SYS_PARAM_H
19141 # include <sys/param.h>
19142 # ifdef EXEC_PAGESIZE
19143 # define getpagesize() EXEC_PAGESIZE
19144 # else /* no EXEC_PAGESIZE */
19146 # define getpagesize() NBPG * CLSIZE
19149 # endif /* no CLSIZE */
19150 # else /* no NBPG */
19152 # define getpagesize() NBPC
19153 # else /* no NBPC */
19155 # define getpagesize() PAGESIZE
19156 # endif /* PAGESIZE */
19157 # endif /* no NBPC */
19158 # endif /* no NBPG */
19159 # endif /* no EXEC_PAGESIZE */
19160 # else /* no HAVE_SYS_PARAM_H */
19161 # define getpagesize() 8192 /* punt totally */
19162 # endif /* no HAVE_SYS_PARAM_H */
19163 # endif /* no _SC_PAGESIZE */
19165 #endif /* no HAVE_GETPAGESIZE */
19170 char *data, *data2, *data3;
19174 pagesize = getpagesize ();
19176 /* First, make a file with some known garbage in it. */
19177 data = (char *) malloc (pagesize);
19180 for (i = 0; i < pagesize; ++i)
19181 *(data + i) = rand ();
19183 fd = creat ("conftest.mmap", 0600);
19186 if (write (fd, data, pagesize) != pagesize)
19190 /* Next, try to mmap the file at a fixed address which already has
19191 something else allocated at it. If we can, also make sure that
19192 we see the same garbage. */
19193 fd = open ("conftest.mmap", O_RDWR);
19196 data2 = (char *) malloc (2 * pagesize);
19199 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19201 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19203 for (i = 0; i < pagesize; ++i)
19204 if (*(data + i) != *(data2 + i))
19207 /* Finally, make sure that changes to the mapped area do not
19208 percolate back to the file as seen by read(). (This is a bug on
19209 some variants of i386 svr4.0.) */
19210 for (i = 0; i < pagesize; ++i)
19211 *(data2 + i) = *(data2 + i) + 1;
19212 data3 = (char *) malloc (pagesize);
19215 if (read (fd, data3, pagesize) != pagesize)
19217 for (i = 0; i < pagesize; ++i)
19218 if (*(data + i) != *(data3 + i))
19224 rm -f conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_link") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_func_mmap_fixed_mapped=yes
19246 echo "$as_me: program exited with status $ac_status" >&5
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ( exit $ac_status )
19251 ac_cv_func_mmap_fixed_mapped=no
19253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19258 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19259 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19260 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_MMAP 1
19267 rm -f conftest.mmap
19269 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19270 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19271 if test "${ac_cv_func_mmap_file+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 ac_cpp='$CPP $CPPFLAGS'
19276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19280 if test "$cross_compiling" = yes; then
19281 ac_cv_func_mmap_file=no
19283 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19291 #include <sys/types.h>
19292 #include <sys/mman.h>
19300 fd = creat ("foo",0777);
19301 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19303 return (fd != (int) MAP_FAILED);
19308 rm -f conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319 { (case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_try") 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_cv_func_mmap_file=yes
19330 echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 ( exit $ac_status )
19335 ac_cv_func_mmap_file=no
19337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19342 ac_cpp='$CPP $CPPFLAGS'
19343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19349 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19350 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19351 if test "$ac_cv_func_mmap_file" = yes; then
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_MMAP_FILE
19361 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19362 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19363 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 if test "$llvm_cv_os_type" = "Interix" ; then
19367 ac_cv_need_dev_zero_for_mmap=yes
19369 ac_cv_need_dev_zero_for_mmap=no
19373 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19374 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19375 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19377 cat >>confdefs.h <<\_ACEOF
19378 #define NEED_DEV_ZERO_FOR_MMAP 1
19383 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19385 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19386 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19388 if test "$ac_cv_func_mmap_file" = "no"
19390 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19391 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19395 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19396 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19404 volatile unsigned long val = 1;
19405 __sync_synchronize();
19406 __sync_val_compare_and_swap(&val, 1, 0);
19407 __sync_add_and_fetch(&val, 1);
19408 __sync_sub_and_fetch(&val, 1);
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 { echo "$as_me:$LINENO: result: yes" >&5
19448 echo "${ECHO_T}yes" >&6; }
19450 cat >>confdefs.h <<\_ACEOF
19451 #define LLVM_MULTITHREADED 1
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 { echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6; }
19461 cat >>confdefs.h <<\_ACEOF
19462 #define LLVM_MULTITHREADED 0
19465 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19466 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19469 rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19474 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19475 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19476 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19477 if test "${llvm_cv_linux_mixed+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 ac_cpp='$CPP $CPPFLAGS'
19482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19493 error: Not x86-64 even if uname says so!
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 llvm_cv_linux_mixed=no
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 llvm_cv_linux_mixed=yes
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19556 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19558 if test "$llvm_cv_linux_mixed" = "yes"; then
19559 llvm_cv_target_arch="x86"
19565 for ac_func in __dso_handle
19567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19581 #define $ac_func innocuous_$ac_func
19583 /* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char $ac_func (); below.
19585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19586 <limits.h> exists even on freestanding compilers. */
19589 # include <limits.h>
19591 # include <assert.h>
19596 /* Override any GCC internal prototype to avoid an error.
19597 Use char because int might match the return type of a GCC
19598 builtin and then its argument prototype would still apply. */
19603 /* The GNU C library defines this for functions which it implements
19604 to always fail with ENOSYS. Some functions are actually named
19605 something starting with __ and the normal name is an alias. */
19606 #if defined __stub_$ac_func || defined __stub___$ac_func
19613 return $ac_func ();
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_link") 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 eval "$as_ac_var=yes"
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 eval "$as_ac_var=no"
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19663 ac_res=`eval echo '${'$as_ac_var'}'`
19664 { echo "$as_me:$LINENO: result: $ac_res" >&5
19665 echo "${ECHO_T}$ac_res" >&6; }
19666 if test `eval echo '${'$as_ac_var'}'` = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19675 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19676 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19677 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 llvm_cv_llvmgcc_sanity="no"
19681 if test -x "$LLVMGCC" ; then
19682 cp /dev/null conftest.c
19683 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19684 grep 'target datalayout =' > /dev/null 2>&1
19685 if test $? -eq 0 ; then
19686 llvm_cv_llvmgcc_sanity="yes"
19691 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19692 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19694 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19695 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19696 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19697 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19698 LLVMCC1=$llvmcc1path
19700 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19701 LLVMCC1PLUS=$llvmcc1pluspath
19703 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19704 LLVMGCCDIR=$llvmgccdir
19706 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19707 LLVMGCC_LANGS=$llvmgcclangs
19709 { echo "$as_me:$LINENO: result: ok" >&5
19710 echo "${ECHO_T}ok" >&6; }
19713 SHLIBEXT=$libltdl_cv_shlibext
19716 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19719 # Translate the various configuration directories and other basic
19720 # information into substitutions that will end up in Makefile.config.in
19721 # that these configured values can be used by the makefiles
19722 if test "${prefix}" = "NONE" ; then
19723 prefix="/usr/local"
19725 eval LLVM_PREFIX="${prefix}";
19726 eval LLVM_BINDIR="${prefix}/bin";
19727 eval LLVM_LIBDIR="${prefix}/lib";
19728 eval LLVM_DATADIR="${prefix}/share/llvm";
19729 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19730 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19731 eval LLVM_INCLUDEDIR="${prefix}/include";
19732 eval LLVM_INFODIR="${prefix}/info";
19733 eval LLVM_MANDIR="${prefix}/man";
19734 LLVM_CONFIGTIME=`date`
19746 # Place the various directores into the config.h file as #defines so that we
19747 # can know about the installation paths within LLVM.
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_PREFIX "$LLVM_PREFIX"
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_BINDIR "$LLVM_BINDIR"
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_DATADIR "$LLVM_DATADIR"
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19774 cat >>confdefs.h <<_ACEOF
19775 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19779 cat >>confdefs.h <<_ACEOF
19780 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19784 cat >>confdefs.h <<_ACEOF
19785 #define LLVM_INFODIR "$LLVM_INFODIR"
19789 cat >>confdefs.h <<_ACEOF
19790 #define LLVM_MANDIR "$LLVM_MANDIR"
19794 cat >>confdefs.h <<_ACEOF
19795 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19799 cat >>confdefs.h <<_ACEOF
19800 #define LLVM_HOSTTRIPLE "$host"
19804 # Determine which bindings to build.
19805 if test "$BINDINGS_TO_BUILD" = auto ; then
19806 BINDINGS_TO_BUILD=""
19807 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19808 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19811 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19814 # This isn't really configurey, but it avoids having to repeat the list in
19819 # Do any work necessary to ensure that bindings have what they need.
19820 binding_prereqs_failed=0
19821 for a_binding in $BINDINGS_TO_BUILD ; do
19822 case "$a_binding" in
19824 if test "x$OCAMLC" = x ; then
19825 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19826 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19827 binding_prereqs_failed=1
19829 if test "x$OCAMLDEP" = x ; then
19830 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19831 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19832 binding_prereqs_failed=1
19834 if test "x$OCAMLOPT" = x ; then
19835 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19836 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19838 if test "x$with_ocaml_libdir" != xauto ; then
19839 OCAML_LIBDIR=$with_ocaml_libdir
19842 ocaml_stdlib="`"$OCAMLC" -where`"
19843 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19845 # ocaml stdlib is beneath our prefix; use stdlib
19846 OCAML_LIBDIR=$ocaml_stdlib
19849 # ocaml stdlib is outside our prefix; use libdir/ocaml
19850 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19857 if test "$binding_prereqs_failed" = 1 ; then
19858 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19859 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19860 { (exit 1); exit 1; }; }
19863 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19864 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19865 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 ac_cpp='$CXXCPP $CPPFLAGS'
19870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874 oldcxxflags="$CXXFLAGS"
19875 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19906 { (case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_try") 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 llvm_cv_cxx_visibility_inlines_hidden=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 llvm_cv_cxx_visibility_inlines_hidden=no
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 CXXFLAGS="$oldcxxflags"
19936 ac_cpp='$CPP $CPPFLAGS'
19937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19943 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19944 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19945 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19946 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19949 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19954 if test "$llvm_cv_link_use_r" = "yes" ; then
19961 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19962 RDYNAMIC="-Wl,-export-dynamic"
19969 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19971 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19973 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19975 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19977 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19979 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19982 ac_config_files="$ac_config_files Makefile.config"
19985 ac_config_files="$ac_config_files llvm.spec"
19988 ac_config_files="$ac_config_files docs/doxygen.cfg"
19991 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19994 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19997 ac_config_commands="$ac_config_commands setup"
19999 ac_config_commands="$ac_config_commands Makefile"
20002 ac_config_commands="$ac_config_commands Makefile.common"
20005 ac_config_commands="$ac_config_commands examples/Makefile"
20008 ac_config_commands="$ac_config_commands lib/Makefile"
20011 ac_config_commands="$ac_config_commands runtime/Makefile"
20014 ac_config_commands="$ac_config_commands test/Makefile"
20017 ac_config_commands="$ac_config_commands test/Makefile.tests"
20020 ac_config_commands="$ac_config_commands unittests/Makefile"
20023 ac_config_commands="$ac_config_commands tools/Makefile"
20026 ac_config_commands="$ac_config_commands utils/Makefile"
20029 ac_config_commands="$ac_config_commands projects/Makefile"
20032 ac_config_commands="$ac_config_commands bindings/Makefile"
20035 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20039 cat >confcache <<\_ACEOF
20040 # This file is a shell script that caches the results of configure
20041 # tests run on this system so they can be shared between configure
20042 # scripts and configure runs, see configure's option --config-cache.
20043 # It is not useful on other systems. If it contains results you don't
20044 # want to keep, you may remove or edit it.
20046 # config.status only pays attention to the cache file if you give it
20047 # the --recheck option to rerun configure.
20049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20051 # following values.
20055 # The following way of writing the cache mishandles newlines in values,
20056 # but we know of no workaround that is simple, portable, and efficient.
20057 # So, we kill variables containing newlines.
20058 # Ultrix sh set writes to stderr and can't be redirected directly,
20059 # and sets the high bit in the cache file unless we assign to the vars.
20061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20062 eval ac_val=\$$ac_var
20066 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20067 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20070 _ | IFS | as_nl) ;; #(
20071 *) $as_unset $ac_var ;;
20077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20078 *${as_nl}ac_space=\ *)
20079 # `set' does not quote correctly, so add quotes (double-quote
20080 # substitution turns \\\\ into \\, and sed turns \\ into \).
20083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20086 # `set' quotes correctly as required by POSIX, so do not add quotes.
20087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20101 if test -w "$cache_file"; then
20102 test "x$cache_file" != "x/dev/null" &&
20103 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20104 echo "$as_me: updating cache $cache_file" >&6;}
20105 cat confcache >$cache_file
20107 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20108 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20114 # Let make expand exec_prefix.
20115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20117 DEFS=-DHAVE_CONFIG_H
20121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20122 # 1. Remove the extension, and $U if already installed.
20123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20124 ac_i=`echo "$ac_i" | sed "$ac_script"`
20125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20126 # will be set to the directory where LIBOBJS objects are built.
20127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20130 LIBOBJS=$ac_libobjs
20132 LTLIBOBJS=$ac_ltlibobjs
20135 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20136 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&5
20138 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&2;}
20140 { (exit 1); exit 1; }; }
20142 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20143 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&5
20145 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&2;}
20147 { (exit 1); exit 1; }; }
20150 : ${CONFIG_STATUS=./config.status}
20151 ac_clean_files_save=$ac_clean_files
20152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20153 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20154 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20155 cat >$CONFIG_STATUS <<_ACEOF
20157 # Generated by $as_me.
20158 # Run this file to recreate the current configuration.
20159 # Compiler output produced by configure, useful for debugging
20160 # configure, is in config.log if it exists.
20163 ac_cs_recheck=false
20165 SHELL=\${CONFIG_SHELL-$SHELL}
20168 cat >>$CONFIG_STATUS <<\_ACEOF
20169 ## --------------------- ##
20170 ## M4sh Initialization. ##
20171 ## --------------------- ##
20173 # Be Bourne compatible
20174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20178 # is contrary to our usage. Disable this feature.
20179 alias -g '${1+"$@"}'='"$@"'
20180 setopt NO_GLOB_SUBST
20182 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20184 BIN_SH=xpg4; export BIN_SH # for Tru64
20185 DUALCASE=1; export DUALCASE # for MKS sh
20189 # Avoid depending upon Character Ranges.
20190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20193 as_cr_digits='0123456789'
20194 as_cr_alnum=$as_cr_Letters$as_cr_digits
20196 # The user is always right.
20197 if test "${PATH_SEPARATOR+set}" != set; then
20198 echo "#! /bin/sh" >conf$$.sh
20199 echo "exit 0" >>conf$$.sh
20201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20209 # Support unset when possible.
20210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20218 # We need space, tab and new line, in precisely that order. Quoting is
20219 # there to prevent editors from complaining about space-tab.
20220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20221 # splitting by setting IFS to empty value.)
20226 # Find who we are. Look in the path if we contain no directory separator.
20228 *[\\/]* ) as_myself=$0 ;;
20229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20233 test -z "$as_dir" && as_dir=.
20234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20240 # We did not find ourselves, most probably we were run as `sh COMMAND'
20241 # in which case we are not to be found in the path.
20242 if test "x$as_myself" = x; then
20245 if test ! -f "$as_myself"; then
20246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20247 { (exit 1); exit 1; }
20250 # Work around bugs in pre-3.0 UWIN ksh.
20251 for as_var in ENV MAIL MAILPATH
20252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20262 LC_TELEPHONE LC_TIME
20264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20265 eval $as_var=C; export $as_var
20267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20271 # Required to use basename.
20272 if expr a : '\(a\)' >/dev/null 2>&1 &&
20273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20280 as_basename=basename
20286 # Name of the executable.
20287 as_me=`$as_basename -- "$0" ||
20288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20289 X"$0" : 'X\(//\)$' \| \
20290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20292 sed '/^.*\/\([^/][^/]*\)\/*$/{
20311 as_lineno_1=$LINENO
20312 as_lineno_2=$LINENO
20313 test "x$as_lineno_1" != "x$as_lineno_2" &&
20314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20317 # uniformly replaced by the line number. The first 'sed' inserts a
20318 # line-number line after each line using $LINENO; the second 'sed'
20319 # does the real work. The second script uses 'N' to pair each
20320 # line-number line with the line containing $LINENO, and appends
20321 # trailing '-' during substitution so that $LINENO is not a special
20322 # case at line end.
20323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20324 # scripts with optimization help from Paolo Bonzini. Blame Lee
20325 # E. McMahon (1931-1989) for sed's syntax. :-)
20337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20340 ' >$as_me.lineno &&
20341 chmod +x "$as_me.lineno" ||
20342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20343 { (exit 1); exit 1; }; }
20345 # Don't try to exec as it changes $[0], causing all sort of problems
20346 # (the dirname of $[0] is not the place where we might find the
20347 # original and so on. Autoconf is especially sensitive to this).
20348 . "./$as_me.lineno"
20349 # Exit status is that of the last command.
20354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20360 ECHO_C= ECHO_N= ECHO_T=
20361 case `echo -n x` in
20363 case `echo 'x\c'` in
20364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20371 if expr a : '\(a\)' >/dev/null 2>&1 &&
20372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20378 rm -f conf$$ conf$$.exe conf$$.file
20379 if test -d conf$$.dir; then
20380 rm -f conf$$.dir/conf$$.file
20386 if ln -s conf$$.file conf$$ 2>/dev/null; then
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391 # In both cases, we have to default to `cp -p'.
20392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20394 elif ln conf$$.file conf$$ 2>/dev/null; then
20399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20400 rmdir conf$$.dir 2>/dev/null
20402 if mkdir -p . 2>/dev/null; then
20405 test -d ./-p && rmdir ./-p
20409 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20410 # systems may use methods other than mode bits to determine executability.
20411 cat >conf$$.file <<_ASEOF
20415 chmod +x conf$$.file
20416 if test -x conf$$.file >/dev/null 2>&1; then
20417 as_executable_p="test -x"
20423 # Sed expression to map a string onto a valid CPP name.
20424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20426 # Sed expression to map a string onto a valid variable name.
20427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20432 # Save the log message, to keep $[0] and so on meaningful, and to
20433 # report actual input values of CONFIG_FILES etc. instead of their
20434 # values after options handling.
20436 This file was extended by llvm $as_me 2.7svn, which was
20437 generated by GNU Autoconf 2.60. Invocation command line was
20439 CONFIG_FILES = $CONFIG_FILES
20440 CONFIG_HEADERS = $CONFIG_HEADERS
20441 CONFIG_LINKS = $CONFIG_LINKS
20442 CONFIG_COMMANDS = $CONFIG_COMMANDS
20445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20450 cat >>$CONFIG_STATUS <<_ACEOF
20451 # Files that config.status was made for.
20452 config_files="$ac_config_files"
20453 config_headers="$ac_config_headers"
20454 config_commands="$ac_config_commands"
20458 cat >>$CONFIG_STATUS <<\_ACEOF
20460 \`$as_me' instantiates files from templates according to the
20461 current configuration.
20463 Usage: $0 [OPTIONS] [FILE]...
20465 -h, --help print this help, then exit
20466 -V, --version print version number, then exit
20467 -q, --quiet do not print progress messages
20468 -d, --debug don't remove temporary files
20469 --recheck update $as_me by reconfiguring in the same conditions
20470 --file=FILE[:TEMPLATE]
20471 instantiate the configuration file FILE
20472 --header=FILE[:TEMPLATE]
20473 instantiate the configuration header FILE
20475 Configuration files:
20478 Configuration headers:
20481 Configuration commands:
20484 Report bugs to <bug-autoconf@gnu.org>."
20487 cat >>$CONFIG_STATUS <<_ACEOF
20489 llvm config.status 2.7svn
20490 configured by $0, generated by GNU Autoconf 2.60,
20491 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20493 Copyright (C) 2006 Free Software Foundation, Inc.
20494 This config.status script is free software; the Free Software Foundation
20495 gives unlimited permission to copy, distribute and modify it."
20502 cat >>$CONFIG_STATUS <<\_ACEOF
20503 # If no file are specified by the user, then we need to provide default
20504 # value. By we need to know if files were specified by the user.
20510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20522 # Handling of the options.
20523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20526 echo "$ac_cs_version"; exit ;;
20527 --debug | --debu | --deb | --de | --d | -d )
20529 --file | --fil | --fi | --f )
20531 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20532 ac_need_defaults=false;;
20533 --header | --heade | --head | --hea )
20535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20536 ac_need_defaults=false;;
20538 # Conflict between --help and --header
20539 { echo "$as_me: error: ambiguous option: $1
20540 Try \`$0 --help' for more information." >&2
20541 { (exit 1); exit 1; }; };;
20542 --help | --hel | -h )
20543 echo "$ac_cs_usage"; exit ;;
20544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20548 # This is an error.
20549 -*) { echo "$as_me: error: unrecognized option: $1
20550 Try \`$0 --help' for more information." >&2
20551 { (exit 1); exit 1; }; } ;;
20553 *) ac_config_targets="$ac_config_targets $1"
20554 ac_need_defaults=false ;;
20560 ac_configure_extra_args=
20562 if $ac_cs_silent; then
20564 ac_configure_extra_args="$ac_configure_extra_args --silent"
20568 cat >>$CONFIG_STATUS <<_ACEOF
20569 if \$ac_cs_recheck; then
20570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20571 CONFIG_SHELL=$SHELL
20572 export CONFIG_SHELL
20573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20577 cat >>$CONFIG_STATUS <<\_ACEOF
20581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20582 ## Running $as_me. ##
20588 cat >>$CONFIG_STATUS <<_ACEOF
20592 llvm_src="${srcdir}"
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20598 # Handling of arguments.
20599 for ac_config_target in $ac_config_targets
20601 case $ac_config_target in
20602 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20603 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20604 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20605 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20606 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20607 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20608 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20609 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20610 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20611 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20612 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20613 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20614 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20615 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20616 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20617 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20618 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20619 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20620 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20621 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20622 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20623 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20624 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20625 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20626 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20628 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20630 { (exit 1); exit 1; }; };;
20635 # If the user did not use the arguments to specify the items to instantiate,
20636 # then the envvar interface is used. Set only those that are not.
20637 # We use the long form for the default assignment because of an extremely
20638 # bizarre bug on SunOS 4.1.3.
20639 if $ac_need_defaults; then
20640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20645 # Have a temporary directory for convenience. Make it in the build tree
20646 # simply because there is no reason against having it here, and in addition,
20647 # creating and moving files from /tmp can sometimes cause problems.
20648 # Hook for its removal unless debugging.
20649 # Note that there is a small window in which the directory will not be cleaned:
20650 # after its creation but before its name has been assigned to `$tmp'.
20654 trap 'exit_status=$?
20655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20657 trap '{ (exit 1); exit 1; }' 1 2 13 15
20659 # Create a (secure) tmp directory for tmp files.
20662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20663 test -n "$tmp" && test -d "$tmp"
20666 tmp=./conf$$-$RANDOM
20667 (umask 077 && mkdir "$tmp")
20670 echo "$me: cannot create a temporary directory in ." >&2
20671 { (exit 1); exit 1; }
20675 # Set up the sed scripts for CONFIG_FILES section.
20678 # No need to generate the scripts if there are no CONFIG_FILES.
20679 # This happens for instance when ./config.status config.h
20680 if test -n "$CONFIG_FILES"; then
20687 for ac_last_try in false false false false false :; do
20688 cat >conf$$subs.sed <<_ACEOF
20689 SHELL!$SHELL$ac_delim
20690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20696 exec_prefix!$exec_prefix$ac_delim
20697 prefix!$prefix$ac_delim
20698 program_transform_name!$program_transform_name$ac_delim
20699 bindir!$bindir$ac_delim
20700 sbindir!$sbindir$ac_delim
20701 libexecdir!$libexecdir$ac_delim
20702 datarootdir!$datarootdir$ac_delim
20703 datadir!$datadir$ac_delim
20704 sysconfdir!$sysconfdir$ac_delim
20705 sharedstatedir!$sharedstatedir$ac_delim
20706 localstatedir!$localstatedir$ac_delim
20707 includedir!$includedir$ac_delim
20708 oldincludedir!$oldincludedir$ac_delim
20709 docdir!$docdir$ac_delim
20710 infodir!$infodir$ac_delim
20711 htmldir!$htmldir$ac_delim
20712 dvidir!$dvidir$ac_delim
20713 pdfdir!$pdfdir$ac_delim
20714 psdir!$psdir$ac_delim
20715 libdir!$libdir$ac_delim
20716 localedir!$localedir$ac_delim
20717 mandir!$mandir$ac_delim
20718 DEFS!$DEFS$ac_delim
20719 ECHO_C!$ECHO_C$ac_delim
20720 ECHO_N!$ECHO_N$ac_delim
20721 ECHO_T!$ECHO_T$ac_delim
20722 LIBS!$LIBS$ac_delim
20723 build_alias!$build_alias$ac_delim
20724 host_alias!$host_alias$ac_delim
20725 target_alias!$target_alias$ac_delim
20726 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20727 subdirs!$subdirs$ac_delim
20728 build!$build$ac_delim
20729 build_cpu!$build_cpu$ac_delim
20730 build_vendor!$build_vendor$ac_delim
20731 build_os!$build_os$ac_delim
20732 host!$host$ac_delim
20733 host_cpu!$host_cpu$ac_delim
20734 host_vendor!$host_vendor$ac_delim
20735 host_os!$host_os$ac_delim
20736 target!$target$ac_delim
20737 target_cpu!$target_cpu$ac_delim
20738 target_vendor!$target_vendor$ac_delim
20739 target_os!$target_os$ac_delim
20741 HOST_OS!$HOST_OS$ac_delim
20742 TARGET_OS!$TARGET_OS$ac_delim
20743 LINKALL!$LINKALL$ac_delim
20744 NOLINKALL!$NOLINKALL$ac_delim
20745 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20746 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20747 ARCH!$ARCH$ac_delim
20748 ENDIAN!$ENDIAN$ac_delim
20750 CFLAGS!$CFLAGS$ac_delim
20751 LDFLAGS!$LDFLAGS$ac_delim
20752 CPPFLAGS!$CPPFLAGS$ac_delim
20753 ac_ct_CC!$ac_ct_CC$ac_delim
20754 EXEEXT!$EXEEXT$ac_delim
20755 OBJEXT!$OBJEXT$ac_delim
20757 GREP!$GREP$ac_delim
20758 EGREP!$EGREP$ac_delim
20759 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20760 BUILD_CC!$BUILD_CC$ac_delim
20761 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20762 BUILD_CXX!$BUILD_CXX$ac_delim
20763 CVSBUILD!$CVSBUILD$ac_delim
20764 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20765 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20766 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20767 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20768 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20769 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20770 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20772 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20773 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20774 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20775 ENABLE_PIC!$ENABLE_PIC$ac_delim
20776 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20777 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20778 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20779 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20780 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20781 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20782 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20783 CLANGPATH!$CLANGPATH$ac_delim
20784 CLANGXXPATH!$CLANGXXPATH$ac_delim
20785 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20790 elif $ac_last_try; then
20791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20793 { (exit 1); exit 1; }; }
20795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20800 if test -n "$ac_eof"; then
20801 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20802 ac_eof=`expr $ac_eof + 1`
20805 cat >>$CONFIG_STATUS <<_ACEOF
20806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20811 s/^/s,@/; s/!/@,|#_!!_#|/
20814 s/'"$ac_delim"'$/,g/; t
20816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20817 ' >>$CONFIG_STATUS <conf$$subs.sed
20818 rm -f conf$$subs.sed
20819 cat >>$CONFIG_STATUS <<_ACEOF
20825 for ac_last_try in false false false false false :; do
20826 cat >conf$$subs.sed <<_ACEOF
20827 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20828 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20829 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20830 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20831 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20833 CXXFLAGS!$CXXFLAGS$ac_delim
20834 ac_ct_CXX!$ac_ct_CXX$ac_delim
20836 ifGNUmake!$ifGNUmake$ac_delim
20837 LN_S!$LN_S$ac_delim
20840 DATE!$DATE$ac_delim
20841 FIND!$FIND$ac_delim
20842 MKDIR!$MKDIR$ac_delim
20844 RANLIB!$RANLIB$ac_delim
20849 BINPWD!$BINPWD$ac_delim
20850 GRAPHVIZ!$GRAPHVIZ$ac_delim
20853 NEATO!$NEATO$ac_delim
20854 TWOPI!$TWOPI$ac_delim
20855 CIRCO!$CIRCO$ac_delim
20857 DOTTY!$DOTTY$ac_delim
20858 PERL!$PERL$ac_delim
20859 HAVE_PERL!$HAVE_PERL$ac_delim
20860 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20861 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20862 INSTALL_DATA!$INSTALL_DATA$ac_delim
20863 BZIP2!$BZIP2$ac_delim
20864 DOXYGEN!$DOXYGEN$ac_delim
20865 GROFF!$GROFF$ac_delim
20866 GZIP!$GZIP$ac_delim
20867 POD2HTML!$POD2HTML$ac_delim
20868 POD2MAN!$POD2MAN$ac_delim
20869 RUNTEST!$RUNTEST$ac_delim
20870 TCLSH!$TCLSH$ac_delim
20872 OCAMLC!$OCAMLC$ac_delim
20873 OCAMLOPT!$OCAMLOPT$ac_delim
20874 OCAMLDEP!$OCAMLDEP$ac_delim
20875 OCAMLDOC!$OCAMLDOC$ac_delim
20877 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20878 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20879 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20880 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20881 LIBADD_DL!$LIBADD_DL$ac_delim
20882 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20883 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20884 LLVMGCC!$LLVMGCC$ac_delim
20885 LLVMGXX!$LLVMGXX$ac_delim
20886 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20887 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20888 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20889 USE_UDIS86!$USE_UDIS86$ac_delim
20890 USE_OPROFILE!$USE_OPROFILE$ac_delim
20891 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20892 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20893 MMAP_FILE!$MMAP_FILE$ac_delim
20894 LLVMCC1!$LLVMCC1$ac_delim
20895 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20896 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20897 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20898 SHLIBEXT!$SHLIBEXT$ac_delim
20899 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20900 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20901 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20902 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20903 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20904 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20905 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20906 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20907 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20908 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20909 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20910 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20911 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20912 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20913 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20914 RPATH!$RPATH$ac_delim
20915 RDYNAMIC!$RDYNAMIC$ac_delim
20916 LIBOBJS!$LIBOBJS$ac_delim
20917 LTLIBOBJS!$LTLIBOBJS$ac_delim
20920 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20922 elif $ac_last_try; then
20923 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20924 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20925 { (exit 1); exit 1; }; }
20927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20931 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20932 if test -n "$ac_eof"; then
20933 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20934 ac_eof=`expr $ac_eof + 1`
20937 cat >>$CONFIG_STATUS <<_ACEOF
20938 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20942 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20943 s/^/s,@/; s/!/@,|#_!!_#|/
20946 s/'"$ac_delim"'$/,g/; t
20948 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20949 ' >>$CONFIG_STATUS <conf$$subs.sed
20950 rm -f conf$$subs.sed
20951 cat >>$CONFIG_STATUS <<_ACEOF
20958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20960 # trailing colons and then remove the whole line if VPATH becomes empty
20961 # (actually we leave an empty line to preserve line numbers).
20962 if test "x$srcdir" = x.; then
20963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20964 s/:*\$(srcdir):*/:/
20965 s/:*\${srcdir}:*/:/
20967 s/^\([^=]*=[ ]*\):*/\1/
20973 cat >>$CONFIG_STATUS <<\_ACEOF
20974 fi # test -n "$CONFIG_FILES"
20977 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20980 :[FHLC]) ac_mode=$ac_tag; continue;;
20982 case $ac_mode$ac_tag in
20984 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20985 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20986 { (exit 1); exit 1; }; };;
20987 :[FH]-) ac_tag=-:-;;
20988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21005 -) ac_f="$tmp/stdin";;
21006 *) # Look for the file first in the build tree, then in the source tree
21007 # (if the path is not absolute). The absolute path cannot be DOS-style,
21008 # because $ac_f cannot contain `:'.
21012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21014 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21015 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21016 { (exit 1); exit 1; }; };;
21018 ac_file_inputs="$ac_file_inputs $ac_f"
21021 # Let's still pretend it is `configure' which instantiates (i.e., don't
21022 # use $as_me), people would be surprised to read:
21023 # /* config.h. Generated by config.status. */
21024 configure_input="Generated from "`IFS=:
21025 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21026 if test x"$ac_file" != x-; then
21027 configure_input="$ac_file. $configure_input"
21028 { echo "$as_me:$LINENO: creating $ac_file" >&5
21029 echo "$as_me: creating $ac_file" >&6;}
21033 *:-:* | *:-) cat >"$tmp/stdin";;
21038 ac_dir=`$as_dirname -- "$ac_file" ||
21039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21040 X"$ac_file" : 'X\(//\)[^/]' \| \
21041 X"$ac_file" : 'X\(//\)$' \| \
21042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21048 /^X\(\/\/\)[^/].*/{
21063 -*) as_dir=./$as_dir;;
21065 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21069 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21070 *) as_qdir=$as_dir;;
21072 as_dirs="'$as_qdir' $as_dirs"
21073 as_dir=`$as_dirname -- "$as_dir" ||
21074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21075 X"$as_dir" : 'X\(//\)[^/]' \| \
21076 X"$as_dir" : 'X\(//\)$' \| \
21077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21083 /^X\(\/\/\)[^/].*/{
21096 test -d "$as_dir" && break
21098 test -z "$as_dirs" || eval "mkdir $as_dirs"
21099 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21100 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21101 { (exit 1); exit 1; }; }; }
21105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21108 # A ".." for each directory in $ac_dir_suffix.
21109 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21110 case $ac_top_builddir_sub in
21111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21115 ac_abs_top_builddir=$ac_pwd
21116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21117 # for backward compatibility:
21118 ac_top_builddir=$ac_top_build_prefix
21121 .) # We are building in place.
21123 ac_top_srcdir=$ac_top_builddir_sub
21124 ac_abs_top_srcdir=$ac_pwd ;;
21125 [\\/]* | ?:[\\/]* ) # Absolute name.
21126 ac_srcdir=$srcdir$ac_dir_suffix;
21127 ac_top_srcdir=$srcdir
21128 ac_abs_top_srcdir=$srcdir ;;
21129 *) # Relative name.
21130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21131 ac_top_srcdir=$ac_top_build_prefix$srcdir
21132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21149 cat >>$CONFIG_STATUS <<\_ACEOF
21150 # If the template does not know about datarootdir, expand it.
21151 # FIXME: This hack should be removed a few years after 2.60.
21152 ac_datarootdir_hack=; ac_datarootdir_seen=
21154 case `sed -n '/datarootdir/ {
21163 ' $ac_file_inputs` in
21164 *datarootdir*) ac_datarootdir_seen=yes;;
21165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21166 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21167 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21169 cat >>$CONFIG_STATUS <<_ACEOF
21170 ac_datarootdir_hack='
21171 s&@datadir@&$datadir&g
21172 s&@docdir@&$docdir&g
21173 s&@infodir@&$infodir&g
21174 s&@localedir@&$localedir&g
21175 s&@mandir@&$mandir&g
21176 s&\\\${datarootdir}&$datarootdir&g' ;;
21180 # Neutralize VPATH when `$srcdir' = `.'.
21181 # Shell code in configure.ac might set extrasub.
21182 # FIXME: do we really want to maintain this feature?
21183 cat >>$CONFIG_STATUS <<_ACEOF
21187 cat >>$CONFIG_STATUS <<\_ACEOF
21189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21190 s&@configure_input@&$configure_input&;t t
21191 s&@top_builddir@&$ac_top_builddir_sub&;t t
21192 s&@srcdir@&$ac_srcdir&;t t
21193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21194 s&@top_srcdir@&$ac_top_srcdir&;t t
21195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21196 s&@builddir@&$ac_builddir&;t t
21197 s&@abs_builddir@&$ac_abs_builddir&;t t
21198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21199 s&@INSTALL@&$ac_INSTALL&;t t
21200 $ac_datarootdir_hack
21201 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21204 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21206 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21207 which seems to be undefined. Please make sure it is defined." >&5
21208 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21209 which seems to be undefined. Please make sure it is defined." >&2;}
21213 -) cat "$tmp/out"; rm -f "$tmp/out";;
21214 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21223 # Transform confdefs.h into a sed script `conftest.defines', that
21224 # substitutes the proper values into config.h.in to produce config.h.
21225 rm -f conftest.defines conftest.tail
21226 # First, append a space to every undef/define line, to ease matching.
21227 echo 's/$/ /' >conftest.defines
21228 # Then, protect against being on the right side of a sed subst, or in
21229 # an unquoted here document, in config.status. If some macros were
21230 # called several times there might be several #defines for the same
21231 # symbol, which is useless. But do not sort them, since the last
21232 # AC_DEFINE must be honored.
21233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21234 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21235 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21236 # PARAMS is the parameter list in the macro definition--in most cases, it's
21237 # just an empty string.
21238 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21239 ac_dB='\\)[ (].*,\\1define\\2'
21247 s/^[ ]*#[ ]*define[ ][ ]*//
21252 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21253 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21254 ' >>conftest.defines
21256 # Remove the space that was appended to ease matching.
21257 # Then replace #undef with comments. This is necessary, for
21258 # example, in the case of _POSIX_SOURCE, which is predefined and required
21259 # on some systems where configure will not decide to define it.
21260 # (The regexp can be short, since the line contains either #define or #undef.)
21262 s,^[ #]*u.*,/* & */,' >>conftest.defines
21264 # Break up conftest.defines:
21265 ac_max_sed_lines=50
21267 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21268 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21269 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21271 ac_in='$ac_file_inputs'
21272 ac_out='"$tmp/out1"'
21273 ac_nxt='"$tmp/out2"'
21277 # Write a here document:
21278 cat >>$CONFIG_STATUS <<_ACEOF
21279 # First, check the format of the line:
21280 cat >"\$tmp/defines.sed" <<\\CEOF
21281 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21282 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21286 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21288 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21289 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21290 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21291 grep . conftest.tail >/dev/null || break
21292 rm -f conftest.defines
21293 mv conftest.tail conftest.defines
21295 rm -f conftest.defines conftest.tail
21297 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21298 cat >>$CONFIG_STATUS <<\_ACEOF
21299 if test x"$ac_file" != x-; then
21300 echo "/* $configure_input */" >"$tmp/config.h"
21301 cat "$ac_result" >>"$tmp/config.h"
21302 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21303 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21304 echo "$as_me: $ac_file is unchanged" >&6;}
21307 mv "$tmp/config.h" $ac_file
21310 echo "/* $configure_input */"
21316 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21317 echo "$as_me: executing $ac_file commands" >&6;}
21322 case $ac_file$ac_mode in
21323 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21324 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21325 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21326 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21327 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21328 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21329 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21330 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21331 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21333 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21335 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21337 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21339 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21341 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21343 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21344 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21345 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21346 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21347 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21348 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21354 { (exit 0); exit 0; }
21356 chmod +x $CONFIG_STATUS
21357 ac_clean_files=$ac_clean_files_save
21360 # configure is writing to config.log, and then calls config.status.
21361 # config.status does its own redirection, appending to config.log.
21362 # Unfortunately, on DOS this fails, as config.log is still kept open
21363 # by configure, so config.status won't be able to write to it; its
21364 # output is simply discarded. So we exec the FD to /dev/null,
21365 # effectively closing config.log, so it can be properly (re)opened and
21366 # appended to by config.status. When coming back to configure, we
21367 # need to make the FD available again.
21368 if test "$no_create" != yes; then
21370 ac_config_status_args=
21371 test "$silent" = yes &&
21372 ac_config_status_args="$ac_config_status_args --quiet"
21374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21377 # would make configure fail if this is the last instruction.
21378 $ac_cs_success || { (exit 1); exit 1; }
21382 # CONFIG_SUBDIRS section.
21384 if test "$no_recursion" != yes; then
21386 # Remove --cache-file and --srcdir arguments so they do not pile up.
21387 ac_sub_configure_args=
21389 eval "set x $ac_configure_args"
21393 if test -n "$ac_prev"; then
21398 -cache-file | --cache-file | --cache-fil | --cache-fi \
21399 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21400 ac_prev=cache_file ;;
21401 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21402 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21405 --config-cache | -C)
21407 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21409 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21417 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21419 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21423 # Always prepend --prefix to ensure using the same prefix
21424 # in subdir configurations.
21425 ac_arg="--prefix=$prefix"
21427 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21429 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21432 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21434 # Do not complain, so a configure script can configure whichever
21435 # parts of a large source tree are present.
21436 test -d "$srcdir/$ac_dir" || continue
21438 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21439 echo "$as_me:$LINENO: $ac_msg" >&5
21443 -*) as_dir=./$as_dir;;
21445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21450 *) as_qdir=$as_dir;;
21452 as_dirs="'$as_qdir' $as_dirs"
21453 as_dir=`$as_dirname -- "$as_dir" ||
21454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21455 X"$as_dir" : 'X\(//\)[^/]' \| \
21456 X"$as_dir" : 'X\(//\)$' \| \
21457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21463 /^X\(\/\/\)[^/].*/{
21476 test -d "$as_dir" && break
21478 test -z "$as_dirs" || eval "mkdir $as_dirs"
21479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21481 { (exit 1); exit 1; }; }; }
21485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21488 # A ".." for each directory in $ac_dir_suffix.
21489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21490 case $ac_top_builddir_sub in
21491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21495 ac_abs_top_builddir=$ac_pwd
21496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21497 # for backward compatibility:
21498 ac_top_builddir=$ac_top_build_prefix
21501 .) # We are building in place.
21503 ac_top_srcdir=$ac_top_builddir_sub
21504 ac_abs_top_srcdir=$ac_pwd ;;
21505 [\\/]* | ?:[\\/]* ) # Absolute name.
21506 ac_srcdir=$srcdir$ac_dir_suffix;
21507 ac_top_srcdir=$srcdir
21508 ac_abs_top_srcdir=$srcdir ;;
21509 *) # Relative name.
21510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21511 ac_top_srcdir=$ac_top_build_prefix$srcdir
21512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21519 # Check for guested configure; otherwise get Cygnus style configure.
21520 if test -f "$ac_srcdir/configure.gnu"; then
21521 ac_sub_configure=$ac_srcdir/configure.gnu
21522 elif test -f "$ac_srcdir/configure"; then
21523 ac_sub_configure=$ac_srcdir/configure
21524 elif test -f "$ac_srcdir/configure.in"; then
21525 # This should be Cygnus configure.
21526 ac_sub_configure=$ac_aux_dir/configure
21528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21533 # The recursion is here.
21534 if test -n "$ac_sub_configure"; then
21535 # Make the cache file name correct relative to the subdirectory.
21536 case $cache_file in
21537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21538 *) # Relative name.
21539 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21542 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21543 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21544 # The eval makes quoting arguments work.
21545 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21546 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21549 { (exit 1); exit 1; }; }