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
703 ENABLE_LLVMC_DYNAMIC_PLUGINS
751 CONVENIENCE_LTDL_TRUE
752 CONVENIENCE_LTDL_FALSE
759 NO_MISSING_FIELD_INITIALIZERS
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/sample
806 projects/llvm-stacker
813 projects/llvm-poolalloc
815 projects/llvm-kernel'
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-optimized Compile with optimizations enabled (default is NO)
1391 --enable-profiling Compile with profiling enabled (default is NO)
1392 --enable-assertions Compile with assertion checks enabled (default is
1394 --enable-expensive-checks
1395 Compile with expensive debug checks enabled (default
1397 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1400 optimization is on and YES if it's off)
1401 --enable-jit Enable Just In Time Compiling (default is YES)
1402 --enable-doxygen Build doxygen documentation (default is NO)
1403 --enable-threads Use threads if available (default is YES)
1404 --enable-pic Build LLVM with Position Independent Code (default
1406 --enable-shared Link LLVM tools shared (default is NO)
1407 --enable-targets Build specific host targets: all or
1408 target1,target2,... Valid targets are: host, x86,
1409 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1410 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1411 and cpp (default=all)
1412 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1414 --enable-bindings Build specific language bindings:
1415 all,auto,none,{binding-name} (default=auto)
1416 --enable-libffi Check for the presence of libffi (default is NO)
1417 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1419 --enable-llvmc-dynamic-plugins
1420 Enable dynamic LLVMC plugins (default is YES)
1421 --enable-ltdl-install install libltdl
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1428 --with-llvmgcc Specify location of llvm-gcc driver (default
1430 --with-llvmgxx Specify location of llvm-g++ driver (default
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-c-include-dirs Colon separated list of directories clang will
1439 --with-cxx-include-root Directory with the libstdc++ headers.
1440 --with-cxx-include-arch Architecture of the libstdc++ headers.
1441 --with-cxx-include-32bit-dir
1442 32 bit multilib dir.
1443 --with-cxx-include-64bit-dir
1444 64 bit multilib directory.
1445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
1447 --with-tclinclude directory where tcl headers are
1448 --with-udis86=<path> Use udis86 external x86 disassembler library
1449 --with-oprofile=<prefix>
1450 Tell OProfile >= 0.9.4 how to symbolize JIT output
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1466 Report bugs to <llvmbugs@cs.uiuc.edu>.
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" || continue
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 llvm configure 2.7svn
1528 generated by GNU Autoconf 2.60
1530 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1531 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1535 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1539 cat >config.log <<_ACEOF
1540 This file contains any messages produced by compilers while
1541 running configure, to aid debugging if configure makes a mistake.
1543 It was created by llvm $as_me 2.7svn, which was
1544 generated by GNU Autoconf 2.60. Invocation command line was
1556 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1557 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1558 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1559 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1560 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1562 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1563 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1565 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1566 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1567 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1568 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1569 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1570 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1571 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 echo "PATH: $as_dir"
1596 # Keep a trace of the command line.
1597 # Strip out --no-create and --no-recursion so they do not pile up.
1598 # Strip out --silent because we don't want to record it for future runs.
1599 # Also quote any args containing shell meta-characters.
1600 # Make two passes to allow for proper duplicate-argument suppression.
1604 ac_must_keep_next=false
1610 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1612 | -silent | --silent | --silen | --sile | --sil)
1615 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1618 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1620 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1621 if test $ac_must_keep_next = true; then
1622 ac_must_keep_next=false # Got value, back to normal.
1625 *=* | --config-cache | -C | -disable-* | --disable-* \
1626 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1627 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1628 | -with-* | --with-* | -without-* | --without-* | --x)
1629 case "$ac_configure_args0 " in
1630 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1633 -* ) ac_must_keep_next=true ;;
1636 ac_configure_args="$ac_configure_args '$ac_arg'"
1641 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1644 # When interrupted or exit'd, cleanup temporary files, and complete
1645 # config.log. We remove comments because anyway the quotes in there
1646 # would cause problems or look ugly.
1647 # WARNING: Use '\'' to represent an apostrophe within the trap.
1648 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1649 trap 'exit_status=$?
1650 # Save into config.log some information that might help in debugging.
1655 ## ---------------- ##
1656 ## Cache variables. ##
1657 ## ---------------- ##
1660 # The following way of writing the cache mishandles newlines in values,
1662 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1663 eval ac_val=\$$ac_var
1667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1671 _ | IFS | as_nl) ;; #(
1672 *) $as_unset $ac_var ;;
1677 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1678 *${as_nl}ac_space=\ *)
1680 "s/'\''/'\''\\\\'\'''\''/g;
1681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692 ## ----------------- ##
1693 ## Output variables. ##
1694 ## ----------------- ##
1697 for ac_var in $ac_subst_vars
1699 eval ac_val=\$$ac_var
1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 echo "$ac_var='\''$ac_val'\''"
1707 if test -n "$ac_subst_files"; then
1709 ## ------------------- ##
1710 ## File substitutions. ##
1711 ## ------------------- ##
1714 for ac_var in $ac_subst_files
1716 eval ac_val=\$$ac_var
1718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 echo "$ac_var='\''$ac_val'\''"
1725 if test -s confdefs.h; then
1735 test "$ac_signal" != 0 &&
1736 echo "$as_me: caught signal $ac_signal"
1737 echo "$as_me: exit $exit_status"
1739 rm -f core *.core core.conftest.* &&
1740 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1743 for ac_signal in 1 2 13 15; do
1744 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1748 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1749 rm -f -r conftest* confdefs.h
1751 # Predefined preprocessor variables.
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_NAME "$PACKAGE_NAME"
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_STRING "$PACKAGE_STRING"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1778 # Let the site file select an alternate cache file if it wants to.
1779 # Prefer explicitly selected file to automatically selected ones.
1780 if test -n "$CONFIG_SITE"; then
1781 set x "$CONFIG_SITE"
1782 elif test "x$prefix" != xNONE; then
1783 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1785 set x "$ac_default_prefix/share/config.site" \
1786 "$ac_default_prefix/etc/config.site"
1791 if test -r "$ac_site_file"; then
1792 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1793 echo "$as_me: loading site script $ac_site_file" >&6;}
1794 sed 's/^/| /' "$ac_site_file" >&5
1799 if test -r "$cache_file"; then
1800 # Some versions of bash will fail to source /dev/null (special
1801 # files actually), so we avoid doing that.
1802 if test -f "$cache_file"; then
1803 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1804 echo "$as_me: loading cache $cache_file" >&6;}
1806 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1807 *) . "./$cache_file";;
1811 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1812 echo "$as_me: creating cache $cache_file" >&6;}
1816 # Check that the precious variables saved in the cache have kept the same
1818 ac_cache_corrupted=false
1819 for ac_var in $ac_precious_vars; do
1820 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1821 eval ac_new_set=\$ac_env_${ac_var}_set
1822 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1823 eval ac_new_val=\$ac_env_${ac_var}_value
1824 case $ac_old_set,$ac_new_set in
1826 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1827 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1828 ac_cache_corrupted=: ;;
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1835 if test "x$ac_old_val" != "x$ac_new_val"; then
1836 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1837 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1838 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1839 echo "$as_me: former value: $ac_old_val" >&2;}
1840 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1841 echo "$as_me: current value: $ac_new_val" >&2;}
1842 ac_cache_corrupted=:
1845 # Pass precious variables to config.status.
1846 if test "$ac_new_set" = set; then
1848 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1849 *) ac_arg=$ac_var=$ac_new_val ;;
1851 case " $ac_configure_args " in
1852 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1853 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1857 if $ac_cache_corrupted; then
1858 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1859 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1860 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1861 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1862 { (exit 1); exit 1; }; }
1890 ac_cpp='$CPP $CPPFLAGS'
1891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1906 for ac_dir in autoconf "$srcdir"/autoconf; do
1907 if test -f "$ac_dir/install-sh"; then
1909 ac_install_sh="$ac_aux_dir/install-sh -c"
1911 elif test -f "$ac_dir/install.sh"; then
1913 ac_install_sh="$ac_aux_dir/install.sh -c"
1915 elif test -f "$ac_dir/shtool"; then
1917 ac_install_sh="$ac_aux_dir/shtool install -c"
1921 if test -z "$ac_aux_dir"; then
1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1923 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1924 { (exit 1); exit 1; }; }
1927 # These three variables are undocumented and unsupported,
1928 # and are intended to be withdrawn in a future Autoconf release.
1929 # They can cause serious problems if a builder's source tree is in a directory
1930 # whose full name contains unusual characters.
1931 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1932 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1933 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1937 if test ${srcdir} != "." ; then
1938 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1939 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1940 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1941 { (exit 1); exit 1; }; }
1945 for i in `ls ${srcdir}/projects`
1947 if test -d ${srcdir}/projects/${i} ; then
1950 sample) subdirs="$subdirs projects/sample"
1952 privbracket) subdirs="$subdirs projects/privbracket"
1954 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1956 # llvm-test is the old name of the test-suite, kept here for backwards
1958 llvm-test) subdirs="$subdirs projects/llvm-test"
1960 test-suite) subdirs="$subdirs projects/test-suite"
1962 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1964 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1966 llvm-java) subdirs="$subdirs projects/llvm-java"
1968 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1970 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1972 poolalloc) subdirs="$subdirs projects/poolalloc"
1974 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1977 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1978 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1985 # Make sure we can run config.sub.
1986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1987 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1988 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1989 { (exit 1); exit 1; }; }
1991 { echo "$as_me:$LINENO: checking build system type" >&5
1992 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1993 if test "${ac_cv_build+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 ac_build_alias=$build_alias
1997 test "x$ac_build_alias" = x &&
1998 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1999 test "x$ac_build_alias" = x &&
2000 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002 { (exit 1); exit 1; }; }
2003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2005 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2009 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010 echo "${ECHO_T}$ac_cv_build" >&6; }
2011 case $ac_cv_build in
2013 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2014 echo "$as_me: error: invalid value of canonical build" >&2;}
2015 { (exit 1); exit 1; }; };;
2018 ac_save_IFS=$IFS; IFS='-'
2024 # Remember, the first character of IFS is used to create $*,
2025 # except with old shells:
2028 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2031 { echo "$as_me:$LINENO: checking host system type" >&5
2032 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2033 if test "${ac_cv_host+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test "x$host_alias" = x; then
2037 ac_cv_host=$ac_cv_build
2039 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2047 echo "${ECHO_T}$ac_cv_host" >&6; }
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2051 echo "$as_me: error: invalid value of canonical host" >&2;}
2052 { (exit 1); exit 1; }; };;
2055 ac_save_IFS=$IFS; IFS='-'
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2068 { echo "$as_me:$LINENO: checking target system type" >&5
2069 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_target+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test "x$target_alias" = x; then
2074 ac_cv_target=$ac_cv_host
2076 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2084 echo "${ECHO_T}$ac_cv_target" >&6; }
2085 case $ac_cv_target in
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2088 echo "$as_me: error: invalid value of canonical target" >&2;}
2089 { (exit 1); exit 1; }; };;
2091 target=$ac_cv_target
2092 ac_save_IFS=$IFS; IFS='-'
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2102 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2105 # The aliases save the names the user supplied, while $host etc.
2106 # will get canonicalized.
2107 test -n "$target_alias" &&
2108 test "$program_prefix$program_suffix$program_transform_name" = \
2110 program_prefix=${target_alias}-
2112 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2113 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2114 if test "${llvm_cv_os_type+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 llvm_cv_link_all_option="-Wl,--whole-archive"
2120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2121 llvm_cv_os_type="AIX"
2122 llvm_cv_platform_type="Unix" ;;
2124 llvm_cv_link_all_option="-Wl,--whole-archive"
2125 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2126 llvm_cv_os_type="IRIX"
2127 llvm_cv_platform_type="Unix" ;;
2129 llvm_cv_link_all_option="-Wl,--whole-archive"
2130 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2131 llvm_cv_os_type="Cygwin"
2132 llvm_cv_platform_type="Unix" ;;
2134 llvm_cv_link_all_option="-Wl,-all_load"
2135 llvm_cv_no_link_all_option="-Wl,-noall_load"
2136 llvm_cv_os_type="Darwin"
2137 llvm_cv_platform_type="Unix" ;;
2139 llvm_cv_link_all_option="-Wl,--whole-archive"
2140 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2141 llvm_cv_os_type="FreeBSD"
2142 llvm_cv_platform_type="Unix" ;;
2144 llvm_cv_link_all_option="-Wl,--whole-archive"
2145 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2146 llvm_cv_os_type="OpenBSD"
2147 llvm_cv_platform_type="Unix" ;;
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="NetBSD"
2152 llvm_cv_platform_type="Unix" ;;
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="DragonFly"
2157 llvm_cv_platform_type="Unix" ;;
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="HP-UX"
2162 llvm_cv_platform_type="Unix" ;;
2164 llvm_cv_link_all_option="-Wl,--whole-archive"
2165 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2166 llvm_cv_os_type="Interix"
2167 llvm_cv_platform_type="Unix" ;;
2169 llvm_cv_link_all_option="-Wl,--whole-archive"
2170 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2171 llvm_cv_os_type="Linux"
2172 llvm_cv_platform_type="Unix" ;;
2174 llvm_cv_link_all_option="-Wl,-z,allextract"
2175 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2176 llvm_cv_os_type="SunOS"
2177 llvm_cv_platform_type="Unix" ;;
2179 llvm_cv_link_all_option="-Wl,-z,allextract"
2180 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2181 llvm_cv_os_type="AuroraUX"
2182 llvm_cv_platform_type="Unix" ;;
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="Win32"
2187 llvm_cv_platform_type="Win32" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="MingW"
2192 llvm_cv_platform_type="Win32" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="Haiku"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Freestanding"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Freestanding"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option=""
2210 llvm_cv_no_link_all_option=""
2211 llvm_cv_os_type="Unknown"
2212 llvm_cv_platform_type="Unknown" ;;
2215 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2216 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2218 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2219 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2220 if test "${llvm_cv_target_os_type+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 llvm_cv_target_os_type="AIX" ;;
2227 llvm_cv_target_os_type="IRIX" ;;
2229 llvm_cv_target_os_type="Cygwin" ;;
2231 llvm_cv_target_os_type="Darwin" ;;
2233 llvm_cv_target_os_type="FreeBSD" ;;
2235 llvm_cv_target_os_type="OpenBSD" ;;
2237 llvm_cv_target_os_type="NetBSD" ;;
2239 llvm_cv_target_os_type="DragonFly" ;;
2241 llvm_cv_target_os_type="HP-UX" ;;
2243 llvm_cv_target_os_type="Interix" ;;
2245 llvm_cv_target_os_type="Linux" ;;
2247 llvm_cv_target_os_type="SunOS" ;;
2249 llvm_cv_target_os_type="AuroraUX" ;;
2251 llvm_cv_target_os_type="Win32" ;;
2253 llvm_cv_target_os_type="MingW" ;;
2255 llvm_cv_target_os_type="Haiku" ;;
2257 llvm_cv_target_os_type="Freestanding" ;;
2259 llvm_cv_target_os_type="Unknown" ;;
2262 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2263 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2265 if test "$llvm_cv_os_type" = "Unknown" ; then
2266 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2267 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2268 { (exit 1); exit 1; }; }
2273 HOST_OS=$llvm_cv_os_type
2275 TARGET_OS=$llvm_cv_target_os_type
2278 LINKALL=$llvm_cv_link_all_option
2280 NOLINKALL=$llvm_cv_no_link_all_option
2283 case $llvm_cv_platform_type in
2286 cat >>confdefs.h <<\_ACEOF
2287 #define LLVM_ON_UNIX 1
2297 cat >>confdefs.h <<\_ACEOF
2298 #define LLVM_ON_WIN32 1
2308 { echo "$as_me:$LINENO: checking target architecture" >&5
2309 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2310 if test "${llvm_cv_target_arch+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 i?86-*) llvm_cv_target_arch="x86" ;;
2315 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2316 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2317 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2318 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2319 arm*-*) llvm_cv_target_arch="ARM" ;;
2320 mips-*) llvm_cv_target_arch="Mips" ;;
2321 pic16-*) llvm_cv_target_arch="PIC16" ;;
2322 xcore-*) llvm_cv_target_arch="XCore" ;;
2323 msp430-*) llvm_cv_target_arch="MSP430" ;;
2324 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2325 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2326 *) llvm_cv_target_arch="Unknown" ;;
2329 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2330 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2332 if test "$llvm_cv_target_arch" = "Unknown" ; then
2333 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2334 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2337 # Determine the LLVM native architecture for the target
2338 case "$llvm_cv_target_arch" in
2339 x86) LLVM_NATIVE_ARCH="X86" ;;
2340 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2341 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2344 ARCH=$llvm_cv_target_arch
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$CC"; then
2382 { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2391 if test -z "$ac_cv_prog_CC"; then
2393 # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_CC="gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2429 if test "x$ac_ct_CC" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_CC="${ac_tool_prefix}cc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test -n "$CC"; then
2479 { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2489 if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2524 if test $# != 0; then
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
2547 for ac_prog in cl.exe
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$CC" && break
2589 if test -z "$CC"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$ac_ct_CC" && break
2633 if test "x$ac_ct_CC" = x; then
2636 case $cross_compiling:$ac_tool_warned in
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet. If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler --version >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler -v >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -V >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort. b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions. Remove them first so a
2724 # subsequent execution test works.
2726 for ac_file in $ac_files
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 if { (ac_try="$ac_link_default"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_link_default") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2750 for ac_file in $ac_files
2752 test -f "$ac_file" || continue
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2757 # We found the default executable, but exeext='' is most
2761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C compiler cannot create executables
2784 See \`config.log' for more details." >&2;}
2785 { (exit 77); exit 77; }; }
2788 ac_exeext=$ac_cv_exeext
2789 { echo "$as_me:$LINENO: result: $ac_file" >&5
2790 echo "${ECHO_T}$ac_file" >&6; }
2792 # Check that the compiler produces executables we can run. If not, either
2793 # the compiler is broken, or we cross compile.
2794 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2795 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2796 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2797 # If not cross compiling, check that we can run a simple program.
2798 if test "$cross_compiling" != yes; then
2799 if { ac_try='./$ac_file'
2800 { (case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_try") 2>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 if test "$cross_compiling" = maybe; then
2814 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2824 { echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6; }
2827 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2828 ac_clean_files=$ac_clean_files_save
2829 # Check that the compiler produces executables we can run. If not, either
2830 # the compiler is broken, or we cross compile.
2831 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2833 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2834 echo "${ECHO_T}$cross_compiling" >&6; }
2836 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2838 if { (ac_try="$ac_link"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_link") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; then
2848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2850 # work properly (i.e., refer to `conftest.exe'), while it won't with
2852 for ac_file in conftest.exe conftest conftest.*; do
2853 test -f "$ac_file" || continue
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2865 See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2869 rm -f conftest$ac_cv_exeext
2870 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2871 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2873 rm -f conftest.$ac_ext
2874 EXEEXT=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2877 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2878 if test "${ac_cv_objext+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2896 rm -f conftest.o conftest.obj
2897 if { (ac_try="$ac_compile"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; then
2907 for ac_file in conftest.o conftest.obj conftest.*; do
2908 test -f "$ac_file" || continue;
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2928 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2929 echo "${ECHO_T}$ac_cv_objext" >&6; }
2930 OBJEXT=$ac_cv_objext
2932 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2934 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3001 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3003 GCC=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CFLAGS=${CFLAGS+set}
3005 ac_save_CFLAGS=$CFLAGS
3006 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3007 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cc_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_save_c_werror_flag=$ac_c_werror_flag
3012 ac_c_werror_flag=yes
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 ac_c_werror_flag=$ac_save_c_werror_flag
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_c_werror_flag=$ac_save_c_werror_flag
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3194 if test "$ac_test_CFLAGS" = set; then
3195 CFLAGS=$ac_save_CFLAGS
3196 elif test $ac_cv_prog_cc_g = yes; then
3197 if test "$GCC" = yes; then
3203 if test "$GCC" = yes; then
3209 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3210 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3211 if test "${ac_cv_prog_cc_c89+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 ac_cv_prog_cc_c89=no
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3224 #include <sys/types.h>
3225 #include <sys/stat.h>
3226 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3227 struct buf { int x; };
3228 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3229 static char *e (p, i)
3235 static char *f (char * (*g) (char **, int), char **p, ...)
3240 s = g (p, va_arg (v,int));
3245 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3246 function prototypes and stuff, but not '\xHH' hex character constants.
3247 These don't provoke an error unfortunately, instead are silently treated
3248 as 'x'. The following induces an error, until -std is added to get
3249 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3250 array size at least. It's necessary to write '\x00'==0 to get something
3251 that's true only with -std. */
3252 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3254 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3255 inside strings and character constants. */
3257 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3259 int test (int i, double x);
3260 struct s1 {int (*f) (int a);};
3261 struct s2 {int (*f) (double a);};
3262 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3273 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3274 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276 CC="$ac_save_CC $ac_arg"
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compile") 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3292 { (case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_try") 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; } &&
3301 { ac_try='test -s conftest.$ac_objext'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_prog_cc_c89=$ac_arg
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3319 rm -f core conftest.err conftest.$ac_objext
3320 test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 rm -f conftest.$ac_ext
3327 case "x$ac_cv_prog_cc_c89" in
3329 { echo "$as_me:$LINENO: result: none needed" >&5
3330 echo "${ECHO_T}none needed" >&6; } ;;
3332 { echo "$as_me:$LINENO: result: unsupported" >&5
3333 echo "${ECHO_T}unsupported" >&6; } ;;
3335 CC="$CC $ac_cv_prog_cc_c89"
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3359 if test -z "$CPP"; then
3360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3483 { echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6; }
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3501 # include <limits.h>
3503 # include <assert.h>
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 if test -z "$ac_cpp_err"; then
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 # Broken: fails on valid input.
3539 rm -f conftest.err conftest.$ac_ext
3541 # OK, works on sane cases. Now check whether nonexistent headers
3542 # can be detected and how.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3574 # Broken: success on invalid input.
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Passes both tests.
3585 rm -f conftest.err conftest.$ac_ext
3588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3589 rm -f conftest.err conftest.$ac_ext
3590 if $ac_preproc_ok; then
3593 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&5
3595 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3596 See \`config.log' for more details." >&2;}
3597 { (exit 1); exit 1; }; }
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3608 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3609 if test "${ac_cv_path_GREP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 # Extract the first word of "grep ggrep" to use in msg output
3613 if test -z "$GREP"; then
3614 set dummy grep ggrep; ac_prog_name=$2
3615 if test "${ac_cv_path_GREP+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_path_GREP_found=false
3619 # Loop through the user's path and test for each of PROGNAME-LIST
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3624 test -z "$as_dir" && as_dir=.
3625 for ac_prog in grep ggrep; do
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3628 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3629 # Check for GNU ac_path_GREP and select it if it is found.
3630 # Check for GNU $ac_path_GREP
3631 case `"$ac_path_GREP" --version 2>&1` in
3633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3636 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3639 cat "conftest.in" "conftest.in" >"conftest.tmp"
3640 mv "conftest.tmp" "conftest.in"
3641 cp "conftest.in" "conftest.nl"
3642 echo 'GREP' >> "conftest.nl"
3643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3645 ac_count=`expr $ac_count + 1`
3646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3647 # Best one so far, save it but keep looking for a better one
3648 ac_cv_path_GREP="$ac_path_GREP"
3649 ac_path_GREP_max=$ac_count
3651 # 10*(2^10) chars as input seems more than enough
3652 test $ac_count -gt 10 && break
3654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658 $ac_path_GREP_found && break 3
3668 GREP="$ac_cv_path_GREP"
3669 if test -z "$GREP"; then
3670 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3672 { (exit 1); exit 1; }; }
3676 ac_cv_path_GREP=$GREP
3681 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3682 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3686 { echo "$as_me:$LINENO: checking for egrep" >&5
3687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3688 if test "${ac_cv_path_EGREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3694 # Extract the first word of "egrep" to use in msg output
3695 if test -z "$EGREP"; then
3696 set dummy egrep; ac_prog_name=$2
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 ac_path_EGREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in egrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
3712 # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 echo 'EGREP' >> "conftest.nl"
3725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_EGREP="$ac_path_EGREP"
3731 ac_path_EGREP_max=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 $ac_path_EGREP_found && break 3
3750 EGREP="$ac_cv_path_EGREP"
3751 if test -z "$EGREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3758 ac_cv_path_EGREP=$EGREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3766 EGREP="$ac_cv_path_EGREP"
3769 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3771 if test "${ac_cv_header_stdc+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_try") 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_try") 2>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_header_stdc=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_cv_header_stdc=no
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 if test $ac_cv_header_stdc = yes; then
3838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "memchr" >/dev/null 2>&1; then
3852 ac_cv_header_stdc=no
3858 if test $ac_cv_header_stdc = yes; then
3859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "free" >/dev/null 2>&1; then
3873 ac_cv_header_stdc=no
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3892 #if ((' ' & 0x0FF) == 0x020)
3893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3896 # define ISLOWER(c) \
3897 (('a' <= (c) && (c) <= 'i') \
3898 || ('j' <= (c) && (c) <= 'r') \
3899 || ('s' <= (c) && (c) <= 'z'))
3900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3908 for (i = 0; i < 256; i++)
3909 if (XOR (islower (i), ISLOWER (i))
3910 || toupper (i) != TOUPPER (i))
3915 rm -f conftest$ac_exeext
3916 if { (ac_try="$ac_link"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_link") 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3926 { (case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_try") 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3937 echo "$as_me: program exited with status $ac_status" >&5
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3942 ac_cv_header_stdc=no
3944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3950 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3951 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3952 if test $ac_cv_header_stdc = yes; then
3954 cat >>confdefs.h <<\_ACEOF
3955 #define STDC_HEADERS 1
3960 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971 inttypes.h stdint.h unistd.h
3973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 $ac_includes_default
3987 #include <$ac_header>
3989 rm -f conftest.$ac_objext
3990 if { (ac_try="$ac_compile"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_compile") 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4004 { (case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_try") 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 eval "$as_ac_Header=yes"
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 eval "$as_ac_Header=no"
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_res=`eval echo '${'$as_ac_Header'}'`
4034 { echo "$as_me:$LINENO: result: $ac_res" >&5
4035 echo "${ECHO_T}$ac_res" >&6; }
4036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4037 cat >>confdefs.h <<_ACEOF
4038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4047 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4048 if test "${ac_cv_c_bigendian+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 # See if sys/param.h defines the BYTE_ORDER macro.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <sys/types.h>
4059 #include <sys/param.h>
4064 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 # It does; now see whether it defined to BIG_ENDIAN or not.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <sys/types.h>
4114 #include <sys/param.h>
4119 #if BYTE_ORDER != BIG_ENDIAN
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_c_bigendian=yes
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_cv_c_bigendian=no
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 # It does not; compile a test program.
4175 if test "$cross_compiling" = yes; then
4176 # try to guess the endianness by grepping values into an object file
4177 ac_cv_c_bigendian=unknown
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4185 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4186 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4187 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4188 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4189 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4193 _ascii (); _ebcdic ();
4198 rm -f conftest.$ac_objext
4199 if { (ac_try="$ac_compile"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_compile") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4213 { (case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_try") 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_try") 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4233 ac_cv_c_bigendian=yes
4235 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4236 if test "$ac_cv_c_bigendian" = unknown; then
4237 ac_cv_c_bigendian=no
4239 # finding both strings is unlikely to happen, but who knows?
4240 ac_cv_c_bigendian=unknown
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4263 /* Are we little or big endian? From Harbison&Steele. */
4267 char c[sizeof (long int)];
4270 return u.c[sizeof (long int) - 1] == 1;
4276 rm -f conftest$ac_exeext
4277 if { (ac_try="$ac_link"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_link") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 ac_cv_c_bigendian=no
4298 echo "$as_me: program exited with status $ac_status" >&5
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_c_bigendian=yes
4305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4314 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4315 case $ac_cv_c_bigendian in
4323 { { echo "$as_me:$LINENO: error: unknown endianness
4324 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4325 echo "$as_me: error: unknown endianness
4326 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4327 { (exit 1); exit 1; }; } ;;
4331 if test "$cross_compiling" = yes; then
4332 LLVM_CROSS_COMPILING=1
4335 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4336 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4337 if test "${ac_cv_build_exeext+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4341 ac_cv_build_exeext=.exe
4343 ac_build_prefix=${build_alias}-
4345 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4346 set dummy ${ac_build_prefix}gcc; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$BUILD_CC"; then
4353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 BUILD_CC=$ac_cv_prog_BUILD_CC
4373 if test -n "$BUILD_CC"; then
4374 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4375 echo "${ECHO_T}$BUILD_CC" >&6; }
4377 { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4382 if test -z "$BUILD_CC"; then
4383 # Extract the first word of "gcc", so it can be a program name with args.
4384 set dummy gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_BUILD_CC="gcc"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "cc", so it can be a program name with args.
4422 set dummy cc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4440 ac_prog_rejected=yes
4443 ac_cv_prog_BUILD_CC="cc"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 if test $ac_prog_rejected = yes; then
4452 # We found a bogon in the path, so make sure we never use it.
4453 set dummy $ac_cv_prog_BUILD_CC
4455 if test $# != 0; then
4456 # We chose a different compiler from the bogus one.
4457 # However, it has the same basename, so the bogon will be chosen
4458 # first if we set BUILD_CC to just the basename; use the full file name.
4460 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4465 BUILD_CC=$ac_cv_prog_BUILD_CC
4466 if test -n "$BUILD_CC"; then
4467 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4468 echo "${ECHO_T}$BUILD_CC" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4477 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4478 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4479 { (exit 1); exit 1; }; }
4480 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4482 echo 'int main () { return 0; }' > conftest.$ac_ext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4485 (eval $ac_build_link) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; then
4489 for file in conftest.*; do
4491 *.c | *.o | *.obj | *.dSYM) ;;
4492 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4496 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4497 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4498 { (exit 1); exit 1; }; }
4501 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4506 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4507 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4508 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4509 ac_build_exeext=$BUILD_EXEEXT
4511 ac_build_prefix=${build_alias}-
4512 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4513 set dummy ${ac_build_prefix}g++; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$BUILD_CXX"; then
4520 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4540 if test -n "$BUILD_CXX"; then
4541 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4542 echo "${ECHO_T}$BUILD_CXX" >&6; }
4544 { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }
4549 if test -z "$BUILD_CXX"; then
4550 # Extract the first word of "g++", so it can be a program name with args.
4551 set dummy g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_BUILD_CXX="g++"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "c++", so it can be a program name with args.
4589 set dummy c++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4607 ac_prog_rejected=yes
4610 ac_cv_prog_BUILD_CXX="c++"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy $ac_cv_prog_BUILD_CXX
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set BUILD_CXX to just the basename; use the full file name.
4627 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4632 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4633 if test -n "$BUILD_CXX"; then
4634 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4635 echo "${ECHO_T}$BUILD_CXX" >&6; }
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4645 LLVM_CROSS_COMPILING=0
4649 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4660 # Check whether --enable-optimized was given.
4661 if test "${enable_optimized+set}" = set; then
4662 enableval=$enable_optimized;
4667 if test ${enableval} = "no" ; then
4671 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4675 # Check whether --enable-profiling was given.
4676 if test "${enable_profiling+set}" = set; then
4677 enableval=$enable_profiling;
4682 if test ${enableval} = "no" ; then
4686 ENABLE_PROFILING=ENABLE_PROFILING=1
4690 # Check whether --enable-assertions was given.
4691 if test "${enable_assertions+set}" = set; then
4692 enableval=$enable_assertions;
4697 if test ${enableval} = "yes" ; then
4701 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4705 # Check whether --enable-expensive-checks was given.
4706 if test "${enable_expensive_checks+set}" = set; then
4707 enableval=$enable_expensive_checks;
4712 if test ${enableval} = "yes" ; then
4713 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4715 EXPENSIVE_CHECKS=yes
4718 ENABLE_EXPENSIVE_CHECKS=
4724 # Check whether --enable-debug-runtime was given.
4725 if test "${enable_debug_runtime+set}" = set; then
4726 enableval=$enable_debug_runtime;
4731 if test ${enableval} = "no" ; then
4735 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4739 # Check whether --enable-debug-symbols was given.
4740 if test "${enable_debug_symbols+set}" = set; then
4741 enableval=$enable_debug_symbols;
4746 if test ${enableval} = "no" ; then
4750 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4754 # Check whether --enable-jit was given.
4755 if test "${enable_jit+set}" = set; then
4756 enableval=$enable_jit;
4761 if test ${enableval} = "no"
4766 case "$llvm_cv_target_arch" in
4767 x86) TARGET_HAS_JIT=1
4769 Sparc) TARGET_HAS_JIT=0
4771 PowerPC) TARGET_HAS_JIT=1
4773 x86_64) TARGET_HAS_JIT=1
4775 Alpha) TARGET_HAS_JIT=1
4777 ARM) TARGET_HAS_JIT=1
4779 Mips) TARGET_HAS_JIT=0
4781 PIC16) TARGET_HAS_JIT=0
4783 XCore) TARGET_HAS_JIT=0
4785 MSP430) TARGET_HAS_JIT=0
4787 SystemZ) TARGET_HAS_JIT=0
4789 Blackfin) TARGET_HAS_JIT=0
4796 # Check whether --enable-doxygen was given.
4797 if test "${enable_doxygen+set}" = set; then
4798 enableval=$enable_doxygen;
4803 case "$enableval" in
4804 yes) ENABLE_DOXYGEN=1
4806 no) ENABLE_DOXYGEN=0
4808 default) ENABLE_DOXYGEN=0
4810 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4815 # Check whether --enable-threads was given.
4816 if test "${enable_threads+set}" = set; then
4817 enableval=$enable_threads;
4822 case "$enableval" in
4823 yes) ENABLE_THREADS=1
4825 no) ENABLE_THREADS=0
4827 default) ENABLE_THREADS=1
4829 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4831 { (exit 1); exit 1; }; } ;;
4834 cat >>confdefs.h <<_ACEOF
4835 #define ENABLE_THREADS $ENABLE_THREADS
4839 # Check whether --enable-pic was given.
4840 if test "${enable_pic+set}" = set; then
4841 enableval=$enable_pic;
4846 case "$enableval" in
4851 default) ENABLE_PIC=1
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 cat >>confdefs.h <<_ACEOF
4859 #define ENABLE_PIC $ENABLE_PIC
4863 # Check whether --enable-shared was given.
4864 if test "${enable_shared+set}" = set; then
4865 enableval=$enable_shared;
4870 case "$enableval" in
4871 yes) ENABLE_SHARED=1
4875 default) ENABLE_SHARED=0
4877 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4879 { (exit 1); exit 1; }; } ;;
4883 # Check whether --enable-targets was given.
4884 if test "${enable_targets+set}" = set; then
4885 enableval=$enable_targets;
4890 if test "$enableval" = host-only ; then
4893 case "$enableval" in
4894 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4895 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4897 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4898 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4899 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4900 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4901 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4902 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4903 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4904 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4905 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4906 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4907 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4908 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4909 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4910 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4911 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4912 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4913 host) case "$llvm_cv_target_arch" in
4914 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4920 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4921 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4922 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4923 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4924 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4925 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4926 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4927 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4928 echo "$as_me: error: Can not set target to build" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4931 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4932 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4933 { (exit 1); exit 1; }; } ;;
4938 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4941 # Determine whether we are building LLVM support for the native architecture.
4942 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4943 for a_target in $TARGETS_TO_BUILD; do
4944 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4945 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4947 cat >>confdefs.h <<_ACEOF
4948 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4954 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4955 # target feature def files.
4956 LLVM_ENUM_TARGETS=""
4957 LLVM_ENUM_ASM_PRINTERS=""
4958 LLVM_ENUM_ASM_PARSERS=""
4959 LLVM_ENUM_DISASSEMBLERS=""
4960 for target_to_build in $TARGETS_TO_BUILD; do
4961 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4962 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4963 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4965 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4966 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4968 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4969 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4977 # Check whether --enable-cbe-printf-a was given.
4978 if test "${enable_cbe_printf_a+set}" = set; then
4979 enableval=$enable_cbe_printf_a;
4984 case "$enableval" in
4985 yes) ENABLE_CBE_PRINTF_A=1
4987 no) ENABLE_CBE_PRINTF_A=0
4989 default) ENABLE_CBE_PRINTF_A=1
4991 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993 { (exit 1); exit 1; }; } ;;
4996 cat >>confdefs.h <<_ACEOF
4997 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5002 # Check whether --with-llvmgccdir was given.
5003 if test "${with_llvmgccdir+set}" = set; then
5004 withval=$with_llvmgccdir;
5010 default) WITH_LLVMGCCDIR=default ;;
5011 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5012 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5018 # Check whether --with-llvmgcc was given.
5019 if test "${with_llvmgcc+set}" = set; then
5020 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5026 # Check whether --with-llvmgxx was given.
5027 if test "${with_llvmgxx+set}" = set; then
5028 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5033 if test -n "$LLVMGCC"; then
5034 LLVMGCCCOMMAND="$LLVMGCC"
5037 if test -n "$LLVMGXX"; then
5038 LLVMGXXCOMMAND="$LLVMGXX"
5041 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5042 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044 { (exit 1); exit 1; }; };
5047 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5048 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050 { (exit 1); exit 1; }; };
5054 # Check whether --with-optimize-option was given.
5055 if test "${with_optimize_option+set}" = set; then
5056 withval=$with_optimize_option;
5061 { echo "$as_me:$LINENO: checking optimization flags" >&5
5062 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5065 case "$llvm_cv_os_type" in
5066 MingW) optimize_option=-O3 ;;
5067 *) optimize_option=-O2 ;;
5069 *) optimize_option="$withval" ;;
5071 OPTIMIZE_OPTION=$optimize_option
5073 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5074 echo "${ECHO_T}$optimize_option" >&6; }
5077 # Check whether --with-extra-options was given.
5078 if test "${with_extra_options+set}" = set; then
5079 withval=$with_extra_options;
5085 default) EXTRA_OPTIONS= ;;
5086 *) EXTRA_OPTIONS=$withval ;;
5088 EXTRA_OPTIONS=$EXTRA_OPTIONS
5091 # Check whether --enable-bindings was given.
5092 if test "${enable_bindings+set}" = set; then
5093 enableval=$enable_bindings;
5098 BINDINGS_TO_BUILD=""
5099 case "$enableval" in
5100 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5101 all ) BINDINGS_TO_BUILD="ocaml" ;;
5102 none | no) BINDINGS_TO_BUILD="" ;;
5103 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5104 case "$a_binding" in
5105 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5106 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5107 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5115 # Check whether --with-ocaml-libdir was given.
5116 if test "${with_ocaml_libdir+set}" = set; then
5117 withval=$with_ocaml_libdir;
5123 auto) with_ocaml_libdir="$withval" ;;
5124 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5125 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5126 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5127 { (exit 1); exit 1; }; } ;;
5131 # Check whether --with-c-include-dirs was given.
5132 if test "${with_c_include_dirs+set}" = set; then
5133 withval=$with_c_include_dirs;
5139 cat >>confdefs.h <<_ACEOF
5140 #define C_INCLUDE_DIRS "$withval"
5145 # Check whether --with-cxx-include-root was given.
5146 if test "${with_cxx_include_root+set}" = set; then
5147 withval=$with_cxx_include_root;
5153 cat >>confdefs.h <<_ACEOF
5154 #define CXX_INCLUDE_ROOT "$withval"
5159 # Check whether --with-cxx-include-arch was given.
5160 if test "${with_cxx_include_arch+set}" = set; then
5161 withval=$with_cxx_include_arch;
5167 cat >>confdefs.h <<_ACEOF
5168 #define CXX_INCLUDE_ARCH "$withval"
5173 # Check whether --with-cxx-include-32bit-dir was given.
5174 if test "${with_cxx_include_32bit_dir+set}" = set; then
5175 withval=$with_cxx_include_32bit_dir;
5181 cat >>confdefs.h <<_ACEOF
5182 #define CXX_INCLUDE_32BIT_DIR "$withval"
5187 # Check whether --with-cxx-include-64bit-dir was given.
5188 if test "${with_cxx_include_64bit_dir+set}" = set; then
5189 withval=$with_cxx_include_64bit_dir;
5195 cat >>confdefs.h <<_ACEOF
5196 #define CXX_INCLUDE_64BIT_DIR "$withval"
5201 # Check whether --with-binutils-include was given.
5202 if test "${with_binutils_include+set}" = set; then
5203 withval=$with_binutils_include;
5209 default) WITH_BINUTILS_INCDIR=default ;;
5210 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5211 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5212 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5215 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5216 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5218 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5219 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5220 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5221 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5222 { (exit 1); exit 1; }; };
5226 # Check whether --enable-libffi was given.
5227 if test "${enable_libffi+set}" = set; then
5228 enableval=$enable_libffi; case "$enableval" in
5229 yes) llvm_cv_enable_libffi="yes" ;;
5230 no) llvm_cv_enable_libffi="no" ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 llvm_cv_enable_libffi=no
5240 if test "$llvm_cv_os_type" = "Win32" ; then
5246 # Check whether --enable-llvmc-dynamic was given.
5247 if test "${enable_llvmc_dynamic+set}" = set; then
5248 enableval=$enable_llvmc_dynamic;
5250 enableval=$llvmc_dynamic
5253 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5254 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5257 ENABLE_LLVMC_DYNAMIC=
5261 # Check whether --enable-llvmc-dynamic-plugins was given.
5262 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5263 enableval=$enable_llvmc_dynamic_plugins;
5268 if test ${enableval} = "yes" ; then
5269 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5272 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5278 ac_cpp='$CPP $CPPFLAGS'
5279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5284 # On Suns, sometimes $CPP names a directory.
5285 if test -n "$CPP" && test -d "$CPP"; then
5288 if test -z "$CPP"; then
5289 if test "${ac_cv_prog_CPP+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 # Double quotes because CPP needs to be expanded
5293 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5296 for ac_c_preproc_warn_flag in '' yes
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5311 # include <limits.h>
5313 # include <assert.h>
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325 grep -v '^ *+' conftest.er1 >conftest.err
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null; then
5330 if test -s conftest.err; then
5331 ac_cpp_err=$ac_c_preproc_warn_flag
5332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5339 if test -z "$ac_cpp_err"; then
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 # Broken: fails on valid input.
5349 rm -f conftest.err conftest.$ac_ext
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <ac_nonexistent.h>
5361 if { (ac_try="$ac_cpp conftest.$ac_ext"
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_c_preproc_warn_flag
5376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383 if test -z "$ac_cpp_err"; then
5384 # Broken: success on invalid input.
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 # Passes both tests.
5395 rm -f conftest.err conftest.$ac_ext
5398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399 rm -f conftest.err conftest.$ac_ext
5400 if $ac_preproc_ok; then
5412 { echo "$as_me:$LINENO: result: $CPP" >&5
5413 echo "${ECHO_T}$CPP" >&6; }
5415 for ac_c_preproc_warn_flag in '' yes
5417 # Use a header file that comes with gcc, so configuring glibc
5418 # with a fresh cross-compiler works.
5419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420 # <limits.h> exists even on freestanding compilers.
5421 # On the NeXT, cc -E runs the code through the compiler's parser,
5422 # not just through cpp. "Syntax error" is here to catch this case.
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 # include <limits.h>
5432 # include <assert.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
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 # Broken: fails on valid input.
5468 rm -f conftest.err conftest.$ac_ext
5470 # OK, works on sane cases. Now check whether nonexistent headers
5471 # can be detected and how.
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5480 if { (ac_try="$ac_cpp conftest.$ac_ext"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null; then
5493 if test -s conftest.err; then
5494 ac_cpp_err=$ac_c_preproc_warn_flag
5495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5502 if test -z "$ac_cpp_err"; then
5503 # Broken: success on invalid input.
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 # Passes both tests.
5514 rm -f conftest.err conftest.$ac_ext
5517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518 rm -f conftest.err conftest.$ac_ext
5519 if $ac_preproc_ok; then
5522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5523 See \`config.log' for more details." >&5
5524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5525 See \`config.log' for more details." >&2;}
5526 { (exit 1); exit 1; }; }
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 if test -n "$ac_tool_prefix"; then
5543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_CC+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 if test -n "$CC"; then
5551 ac_cv_prog_CC="$CC" # Let the user override the test.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 if test -n "$CC"; then
5572 { echo "$as_me:$LINENO: result: $CC" >&5
5573 echo "${ECHO_T}$CC" >&6; }
5575 { echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6; }
5580 test -n "$CC" && break
5583 if test -z "$CC"; then
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 if test -n "$ac_ct_CC"; then
5595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_ac_ct_CC="$ac_prog"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5615 if test -n "$ac_ct_CC"; then
5616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5617 echo "${ECHO_T}$ac_ct_CC" >&6; }
5619 { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5624 test -n "$ac_ct_CC" && break
5627 if test "x$ac_ct_CC" = x; then
5630 case $cross_compiling:$ac_tool_warned in
5632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5633 whose name does not start with the host triplet. If you think this
5634 configuration is useful to you, please write to autoconf@gnu.org." >&5
5635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5636 whose name does not start with the host triplet. If you think this
5637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5638 ac_tool_warned=yes ;;
5645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5646 See \`config.log' for more details." >&5
5647 echo "$as_me: error: no acceptable C compiler found in \$PATH
5648 See \`config.log' for more details." >&2;}
5649 { (exit 1); exit 1; }; }
5651 # Provide some information about the compiler.
5652 echo "$as_me:$LINENO: checking for C compiler version" >&5
5653 ac_compiler=`set X $ac_compile; echo $2`
5654 { (ac_try="$ac_compiler --version >&5"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compiler --version >&5") 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }
5664 { (ac_try="$ac_compiler -v >&5"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compiler -v >&5") 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }
5674 { (ac_try="$ac_compiler -V >&5"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compiler -V >&5") 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }
5685 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5686 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5708 rm -f conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_compile") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5723 { (case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_try") 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try='test -s conftest.$ac_objext'
5733 { (case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_try") 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5754 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5755 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5756 GCC=`test $ac_compiler_gnu = yes && echo yes`
5757 ac_test_CFLAGS=${CFLAGS+set}
5758 ac_save_CFLAGS=$CFLAGS
5759 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5761 if test "${ac_cv_prog_cc_g+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 ac_save_c_werror_flag=$ac_c_werror_flag
5765 ac_c_werror_flag=yes
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* 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
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5853 { (case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_try") 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_c_werror_flag=$ac_save_c_werror_flag
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5909 { (case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_try") 2>&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest.$ac_objext'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5945 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5946 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5947 if test "$ac_test_CFLAGS" = set; then
5948 CFLAGS=$ac_save_CFLAGS
5949 elif test $ac_cv_prog_cc_g = yes; then
5950 if test "$GCC" = yes; then
5956 if test "$GCC" = yes; then
5962 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5963 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5964 if test "${ac_cv_prog_cc_c89+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 ac_cv_prog_cc_c89=no
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5977 #include <sys/types.h>
5978 #include <sys/stat.h>
5979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5980 struct buf { int x; };
5981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5982 static char *e (p, i)
5988 static char *f (char * (*g) (char **, int), char **p, ...)
5993 s = g (p, va_arg (v,int));
5998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5999 function prototypes and stuff, but not '\xHH' hex character constants.
6000 These don't provoke an error unfortunately, instead are silently treated
6001 as 'x'. The following induces an error, until -std is added to get
6002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6003 array size at least. It's necessary to write '\x00'==0 to get something
6004 that's true only with -std. */
6005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6008 inside strings and character constants. */
6010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6012 int test (int i, double x);
6013 struct s1 {int (*f) (int a);};
6014 struct s2 {int (*f) (double a);};
6015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6029 CC="$ac_save_CC $ac_arg"
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6045 { (case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_try") 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_prog_cc_c89=$ac_arg
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6072 rm -f core conftest.err conftest.$ac_objext
6073 test "x$ac_cv_prog_cc_c89" != "xno" && break
6075 rm -f conftest.$ac_ext
6080 case "x$ac_cv_prog_cc_c89" in
6082 { echo "$as_me:$LINENO: result: none needed" >&5
6083 echo "${ECHO_T}none needed" >&6; } ;;
6085 { echo "$as_me:$LINENO: result: unsupported" >&5
6086 echo "${ECHO_T}unsupported" >&6; } ;;
6088 CC="$CC $ac_cv_prog_cc_c89"
6089 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6090 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101 ac_cpp='$CXXCPP $CPPFLAGS'
6102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105 if test -z "$CXX"; then
6106 if test -n "$CCC"; then
6109 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_prog_CXX+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 if test -n "$CXX"; then
6120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 if test -n "$CXX"; then
6141 { echo "$as_me:$LINENO: result: $CXX" >&5
6142 echo "${ECHO_T}$CXX" >&6; }
6144 { echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6; }
6149 test -n "$CXX" && break
6152 if test -z "$CXX"; then
6156 # Extract the first word of "$ac_prog", so it can be a program name with args.
6157 set dummy $ac_prog; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -n "$ac_ct_CXX"; then
6164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_CXX="$ac_prog"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6184 if test -n "$ac_ct_CXX"; then
6185 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6186 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6193 test -n "$ac_ct_CXX" && break
6196 if test "x$ac_ct_CXX" = x; then
6199 case $cross_compiling:$ac_tool_warned in
6201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6202 whose name does not start with the host triplet. If you think this
6203 configuration is useful to you, please write to autoconf@gnu.org." >&5
6204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6205 whose name does not start with the host triplet. If you think this
6206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6207 ac_tool_warned=yes ;;
6215 # Provide some information about the compiler.
6216 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6217 ac_compiler=`set X $ac_compile; echo $2`
6218 { (ac_try="$ac_compiler --version >&5"
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compiler --version >&5") 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }
6228 { (ac_try="$ac_compiler -v >&5"
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compiler -v >&5") 2>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }
6238 { (ac_try="$ac_compiler -V >&5"
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_compiler -V >&5") 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }
6249 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6250 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6251 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6287 { (case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_try") 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_try") 2>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6318 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6319 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6320 GXX=`test $ac_compiler_gnu = yes && echo yes`
6321 ac_test_CXXFLAGS=${CXXFLAGS+set}
6322 ac_save_CXXFLAGS=$CXXFLAGS
6323 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6324 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6325 if test "${ac_cv_prog_cxx_g+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6329 ac_cxx_werror_flag=yes
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* 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
6381 ac_cv_prog_cxx_g=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6417 { (case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_try") 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_try") 2>&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6458 rm -f conftest.$ac_objext
6459 if { (ac_try="$ac_compile"
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
6483 { (case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_try") 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_prog_cxx_g=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6509 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6510 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6511 if test "$ac_test_CXXFLAGS" = set; then
6512 CXXFLAGS=$ac_save_CXXFLAGS
6513 elif test $ac_cv_prog_cxx_g = yes; then
6514 if test "$GXX" = yes; then
6520 if test "$GXX" = yes; then
6527 ac_cpp='$CPP $CPPFLAGS'
6528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6534 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6535 if test "${lt_cv_path_NM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 if test -n "$NM"; then
6539 # Let the user override the test.
6542 lt_nm_to_check="${ac_tool_prefix}nm"
6543 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6544 lt_nm_to_check="$lt_nm_to_check nm"
6546 for lt_tmp_nm in $lt_nm_to_check; do
6547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6548 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6550 test -z "$ac_dir" && ac_dir=.
6551 tmp_nm="$ac_dir/$lt_tmp_nm"
6552 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6553 # Check to see if the nm accepts a BSD-compat flag.
6554 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6555 # nm: unknown option "B" ignored
6556 # Tru64's nm complains that /dev/null is an invalid object file
6557 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6558 */dev/null* | *'Invalid file or object type'*)
6559 lt_cv_path_NM="$tmp_nm -B"
6563 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6565 lt_cv_path_NM="$tmp_nm -p"
6569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6570 continue # so that we can try to find one that supports BSD flags
6579 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6582 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6583 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6588 { echo "$as_me:$LINENO: checking for GNU make" >&5
6589 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6590 if test "${llvm_cv_gnu_make_command+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 llvm_cv_gnu_make_command=''
6594 for a in "$MAKE" make gmake gnumake ; do
6595 if test -z "$a" ; then continue ; fi ;
6596 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6598 llvm_cv_gnu_make_command=$a ;
6603 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6604 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6605 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6609 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6610 echo "${ECHO_T}\"Not found\"" >&6; };
6614 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6615 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6617 if test "$LN_S" = "ln -s"; then
6618 { echo "$as_me:$LINENO: result: yes" >&5
6619 echo "${ECHO_T}yes" >&6; }
6621 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6622 echo "${ECHO_T}no, using $LN_S" >&6; }
6625 # Extract the first word of "cmp", so it can be a program name with args.
6626 set dummy cmp; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_CMP+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6657 if test -n "$CMP"; then
6658 { echo "$as_me:$LINENO: result: $CMP" >&5
6659 echo "${ECHO_T}$CMP" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 # Extract the first word of "cp", so it can be a program name with args.
6667 set dummy cp; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_CP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6698 if test -n "$CP"; then
6699 { echo "$as_me:$LINENO: result: $CP" >&5
6700 echo "${ECHO_T}$CP" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6707 # Extract the first word of "date", so it can be a program name with args.
6708 set dummy date; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_DATE+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6738 DATE=$ac_cv_path_DATE
6739 if test -n "$DATE"; then
6740 { echo "$as_me:$LINENO: result: $DATE" >&5
6741 echo "${ECHO_T}$DATE" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 # Extract the first word of "find", so it can be a program name with args.
6749 set dummy find; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_FIND+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6779 FIND=$ac_cv_path_FIND
6780 if test -n "$FIND"; then
6781 { echo "$as_me:$LINENO: result: $FIND" >&5
6782 echo "${ECHO_T}$FIND" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 # Extract the first word of "grep", so it can be a program name with args.
6790 set dummy grep; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_GREP+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6820 GREP=$ac_cv_path_GREP
6821 if test -n "$GREP"; then
6822 { echo "$as_me:$LINENO: result: $GREP" >&5
6823 echo "${ECHO_T}$GREP" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6830 # Extract the first word of "mkdir", so it can be a program name with args.
6831 set dummy mkdir; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_MKDIR+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6861 MKDIR=$ac_cv_path_MKDIR
6862 if test -n "$MKDIR"; then
6863 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6864 echo "${ECHO_T}$MKDIR" >&6; }
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6871 # Extract the first word of "mv", so it can be a program name with args.
6872 set dummy mv; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_MV+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6903 if test -n "$MV"; then
6904 { echo "$as_me:$LINENO: result: $MV" >&5
6905 echo "${ECHO_T}$MV" >&6; }
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_RANLIB+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 if test -n "$RANLIB"; then
6921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6943 echo "${ECHO_T}$RANLIB" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952 ac_ct_RANLIB=$RANLIB
6953 # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 if test -n "$ac_ct_RANLIB"; then
6961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_prog_ac_ct_RANLIB="ranlib"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6983 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6989 if test "x$ac_ct_RANLIB" = x; then
6992 case $cross_compiling:$ac_tool_warned in
6994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6995 whose name does not start with the host triplet. If you think this
6996 configuration is useful to you, please write to autoconf@gnu.org." >&5
6997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6998 whose name does not start with the host triplet. If you think this
6999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7000 ac_tool_warned=yes ;;
7002 RANLIB=$ac_ct_RANLIB
7005 RANLIB="$ac_cv_prog_RANLIB"
7008 if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7010 set dummy ${ac_tool_prefix}ar; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_AR+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 if test -n "$AR"; then
7017 ac_cv_prog_AR="$AR" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_AR="${ac_tool_prefix}ar"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 if test -n "$AR"; then
7038 { echo "$as_me:$LINENO: result: $AR" >&5
7039 echo "${ECHO_T}$AR" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7047 if test -z "$ac_cv_prog_AR"; then
7049 # Extract the first word of "ar", so it can be a program name with args.
7050 set dummy ar; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 if test -n "$ac_ct_AR"; then
7057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_prog_ac_ct_AR="ar"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7077 if test -n "$ac_ct_AR"; then
7078 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7079 echo "${ECHO_T}$ac_ct_AR" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7085 if test "x$ac_ct_AR" = x; then
7088 case $cross_compiling:$ac_tool_warned in
7090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7091 whose name does not start with the host triplet. If you think this
7092 configuration is useful to you, please write to autoconf@gnu.org." >&5
7093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet. If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7096 ac_tool_warned=yes ;;
7104 # Extract the first word of "rm", so it can be a program name with args.
7105 set dummy rm; ac_word=$2
7106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108 if test "${ac_cv_path_RM+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7136 if test -n "$RM"; then
7137 { echo "$as_me:$LINENO: result: $RM" >&5
7138 echo "${ECHO_T}$RM" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7145 # Extract the first word of "sed", so it can be a program name with args.
7146 set dummy sed; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_SED+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7177 if test -n "$SED"; then
7178 { echo "$as_me:$LINENO: result: $SED" >&5
7179 echo "${ECHO_T}$SED" >&6; }
7181 { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7186 # Extract the first word of "tar", so it can be a program name with args.
7187 set dummy tar; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_path_TAR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7218 if test -n "$TAR"; then
7219 { echo "$as_me:$LINENO: result: $TAR" >&5
7220 echo "${ECHO_T}$TAR" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7227 # Extract the first word of "pwd", so it can be a program name with args.
7228 set dummy pwd; ac_word=$2
7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231 if test "${ac_cv_path_BINPWD+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7258 BINPWD=$ac_cv_path_BINPWD
7259 if test -n "$BINPWD"; then
7260 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7261 echo "${ECHO_T}$BINPWD" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7269 # Extract the first word of "Graphviz", so it can be a program name with args.
7270 set dummy Graphviz; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7300 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7301 if test -n "$GRAPHVIZ"; then
7302 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7303 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7310 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_GRAPHVIZ 1
7316 if test "$llvm_cv_os_type" = "MingW" ; then
7317 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7320 cat >>confdefs.h <<_ACEOF
7321 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7325 # Extract the first word of "dot", so it can be a program name with args.
7326 set dummy dot; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_DOT+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7357 if test -n "$DOT"; then
7358 { echo "$as_me:$LINENO: result: $DOT" >&5
7359 echo "${ECHO_T}$DOT" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7366 if test "$DOT" != "echo dot" ; then
7368 cat >>confdefs.h <<\_ACEOF
7372 if test "$llvm_cv_os_type" = "MingW" ; then
7373 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7376 cat >>confdefs.h <<_ACEOF
7377 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7381 # Extract the first word of "fdp", so it can be a program name with args.
7382 set dummy fdp; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_FDP+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7413 if test -n "$FDP"; then
7414 { echo "$as_me:$LINENO: result: $FDP" >&5
7415 echo "${ECHO_T}$FDP" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 if test "$FDP" != "echo fdp" ; then
7424 cat >>confdefs.h <<\_ACEOF
7428 if test "$llvm_cv_os_type" = "MingW" ; then
7429 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7432 cat >>confdefs.h <<_ACEOF
7433 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7437 # Extract the first word of "neato", so it can be a program name with args.
7438 set dummy neato; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_NEATO+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7468 NEATO=$ac_cv_path_NEATO
7469 if test -n "$NEATO"; then
7470 { echo "$as_me:$LINENO: result: $NEATO" >&5
7471 echo "${ECHO_T}$NEATO" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test "$NEATO" != "echo neato" ; then
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_NEATO 1
7484 if test "$llvm_cv_os_type" = "MingW" ; then
7485 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7488 cat >>confdefs.h <<_ACEOF
7489 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7493 # Extract the first word of "twopi", so it can be a program name with args.
7494 set dummy twopi; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_TWOPI+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7524 TWOPI=$ac_cv_path_TWOPI
7525 if test -n "$TWOPI"; then
7526 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7527 echo "${ECHO_T}$TWOPI" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 if test "$TWOPI" != "echo twopi" ; then
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_TWOPI 1
7540 if test "$llvm_cv_os_type" = "MingW" ; then
7541 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7544 cat >>confdefs.h <<_ACEOF
7545 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7549 # Extract the first word of "circo", so it can be a program name with args.
7550 set dummy circo; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_path_CIRCO+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7580 CIRCO=$ac_cv_path_CIRCO
7581 if test -n "$CIRCO"; then
7582 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7583 echo "${ECHO_T}$CIRCO" >&6; }
7585 { echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6; }
7590 if test "$CIRCO" != "echo circo" ; then
7592 cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_CIRCO 1
7596 if test "$llvm_cv_os_type" = "MingW" ; then
7597 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7600 cat >>confdefs.h <<_ACEOF
7601 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7605 for ac_prog in gv gsview32
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy $ac_prog; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_GV+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 if test -n "$GV"; then
7639 { echo "$as_me:$LINENO: result: $GV" >&5
7640 echo "${ECHO_T}$GV" >&6; }
7642 { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7647 test -n "$GV" && break
7649 test -n "$GV" || GV="echo gv"
7651 if test "$GV" != "echo gv" ; then
7653 cat >>confdefs.h <<\_ACEOF
7657 if test "$llvm_cv_os_type" = "MingW" ; then
7658 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7661 cat >>confdefs.h <<_ACEOF
7662 #define LLVM_PATH_GV "$GV${EXEEXT}"
7666 # Extract the first word of "dotty", so it can be a program name with args.
7667 set dummy dotty; ac_word=$2
7668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7670 if test "${ac_cv_path_DOTTY+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7697 DOTTY=$ac_cv_path_DOTTY
7698 if test -n "$DOTTY"; then
7699 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7700 echo "${ECHO_T}$DOTTY" >&6; }
7702 { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7707 if test "$DOTTY" != "echo dotty" ; then
7709 cat >>confdefs.h <<\_ACEOF
7710 #define HAVE_DOTTY 1
7713 if test "$llvm_cv_os_type" = "MingW" ; then
7714 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7717 cat >>confdefs.h <<_ACEOF
7718 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7724 # Extract the first word of "perl", so it can be a program name with args.
7725 set dummy perl; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_path_PERL+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7755 PERL=$ac_cv_path_PERL
7756 if test -n "$PERL"; then
7757 { echo "$as_me:$LINENO: result: $PERL" >&5
7758 echo "${ECHO_T}$PERL" >&6; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7765 if test "$PERL" != "none"; then
7766 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7767 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7768 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7769 { echo "$as_me:$LINENO: result: yes" >&5
7770 echo "${ECHO_T}yes" >&6; }
7773 { echo "$as_me:$LINENO: result: not found" >&5
7774 echo "${ECHO_T}not found" >&6; }
7779 if test x"$PERL" = xnone; then
7782 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7783 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7784 { (exit 1); exit 1; }; }
7790 # Find a good install program. We prefer a C program (faster),
7791 # so one script is as good as another. But avoid the broken or
7792 # incompatible versions:
7793 # SysV /etc/install, /usr/sbin/install
7794 # SunOS /usr/etc/install
7795 # IRIX /sbin/install
7797 # AmigaOS /C/install, which installs bootblocks on floppy discs
7798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7801 # OS/2's system install, which has a completely different semantic
7802 # ./install, which can be erroneously created by make from ./install.sh.
7803 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7804 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7805 if test -z "$INSTALL"; then
7806 if test "${ac_cv_path_install+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 # Account for people who put trailing slashes in PATH elements.
7816 ./ | .// | /cC/* | \
7817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7818 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7821 # OSF1 and SCO ODT 3.0 have their own names for install.
7822 # Don't use installbsd from OSF since it installs stuff as root
7824 for ac_prog in ginstall scoinst install; do
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7827 if test $ac_prog = install &&
7828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7829 # AIX install. It has an incompatible calling convention.
7831 elif test $ac_prog = install &&
7832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7833 # program-specific install script used by HP pwplus--don't use.
7836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7849 if test "${ac_cv_path_install+set}" = set; then
7850 INSTALL=$ac_cv_path_install
7852 # As a last resort, use the slow shell script. Don't cache a
7853 # value for INSTALL within a source directory, because that will
7854 # break other packages using the cache if that directory is
7855 # removed, or if the value is a relative name.
7856 INSTALL=$ac_install_sh
7859 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7860 echo "${ECHO_T}$INSTALL" >&6; }
7862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7863 # It thinks the first close brace ends the variable substitution.
7864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7871 # Extract the first word of "bzip2", so it can be a program name with args.
7872 set dummy bzip2; ac_word=$2
7873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7875 if test "${ac_cv_path_BZIP2+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7890 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 BZIP2=$ac_cv_path_BZIP2
7902 if test -n "$BZIP2"; then
7903 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7904 echo "${ECHO_T}$BZIP2" >&6; }
7906 { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7911 # Extract the first word of "doxygen", so it can be a program name with args.
7912 set dummy doxygen; ac_word=$2
7913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 DOXYGEN=$ac_cv_path_DOXYGEN
7942 if test -n "$DOXYGEN"; then
7943 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7944 echo "${ECHO_T}$DOXYGEN" >&6; }
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7951 # Extract the first word of "groff", so it can be a program name with args.
7952 set dummy groff; ac_word=$2
7953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955 if test "${ac_cv_path_GROFF+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 GROFF=$ac_cv_path_GROFF
7982 if test -n "$GROFF"; then
7983 { echo "$as_me:$LINENO: result: $GROFF" >&5
7984 echo "${ECHO_T}$GROFF" >&6; }
7986 { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7991 # Extract the first word of "gzip", so it can be a program name with args.
7992 set dummy gzip; ac_word=$2
7993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7995 if test "${ac_cv_path_GZIP+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8010 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 GZIP=$ac_cv_path_GZIP
8022 if test -n "$GZIP"; then
8023 { echo "$as_me:$LINENO: result: $GZIP" >&5
8024 echo "${ECHO_T}$GZIP" >&6; }
8026 { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8031 # Extract the first word of "pod2html", so it can be a program name with args.
8032 set dummy pod2html; ac_word=$2
8033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8035 if test "${ac_cv_path_POD2HTML+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8050 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 POD2HTML=$ac_cv_path_POD2HTML
8062 if test -n "$POD2HTML"; then
8063 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8064 echo "${ECHO_T}$POD2HTML" >&6; }
8066 { echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6; }
8071 # Extract the first word of "pod2man", so it can be a program name with args.
8072 set dummy pod2man; ac_word=$2
8073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8075 if test "${ac_cv_path_POD2MAN+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 POD2MAN=$ac_cv_path_POD2MAN
8102 if test -n "$POD2MAN"; then
8103 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8104 echo "${ECHO_T}$POD2MAN" >&6; }
8106 { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8111 # Extract the first word of "runtest", so it can be a program name with args.
8112 set dummy runtest; ac_word=$2
8113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115 if test "${ac_cv_path_RUNTEST+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 RUNTEST=$ac_cv_path_RUNTEST
8142 if test -n "$RUNTEST"; then
8143 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8144 echo "${ECHO_T}$RUNTEST" >&6; }
8146 { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8153 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8154 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8156 # Check whether --with-tclinclude was given.
8157 if test "${with_tclinclude+set}" = set; then
8158 withval=$with_tclinclude; with_tclinclude=${withval}
8163 if test "${ac_cv_path_tclsh+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 if test x"${with_tclinclude}" != x ; then
8168 if test -f ${with_tclinclude}/tclsh ; then
8169 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8170 elif test -f ${with_tclinclude}/src/tclsh ; then
8171 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8173 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8174 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8175 { (exit 1); exit 1; }; }
8181 if test x"${ac_cv_path_tclsh}" = x ; then
8182 { echo "$as_me:$LINENO: result: none" >&5
8183 echo "${ECHO_T}none" >&6; }
8184 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
8186 # Extract the first word of "$ac_prog", so it can be a program name with args.
8187 set dummy $ac_prog; 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_TCLSH+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 TCLSH=$ac_cv_path_TCLSH
8217 if test -n "$TCLSH"; then
8218 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8219 echo "${ECHO_T}$TCLSH" >&6; }
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8226 test -n "$TCLSH" && break
8229 if test x"${TCLSH}" = x ; then
8230 ac_cv_path_tclsh='';
8232 ac_cv_path_tclsh="${TCLSH}";
8235 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8236 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8237 TCLSH="${ac_cv_path_tclsh}"
8241 # Extract the first word of "zip", so it can be a program name with args.
8242 set dummy zip; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_path_ZIP+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 if test -n "$ZIP"; then
8273 { echo "$as_me:$LINENO: result: $ZIP" >&5
8274 echo "${ECHO_T}$ZIP" >&6; }
8276 { echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6; }
8281 for ac_prog in ocamlc
8283 # Extract the first word of "$ac_prog", so it can be a program name with args.
8284 set dummy $ac_prog; ac_word=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_path_OCAMLC+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 OCAMLC=$ac_cv_path_OCAMLC
8314 if test -n "$OCAMLC"; then
8315 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8316 echo "${ECHO_T}$OCAMLC" >&6; }
8318 { echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6; }
8323 test -n "$OCAMLC" && break
8326 for ac_prog in ocamlopt
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 OCAMLOPT=$ac_cv_path_OCAMLOPT
8359 if test -n "$OCAMLOPT"; then
8360 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8361 echo "${ECHO_T}$OCAMLOPT" >&6; }
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8368 test -n "$OCAMLOPT" && break
8371 for ac_prog in ocamldep
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8377 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 OCAMLDEP=$ac_cv_path_OCAMLDEP
8404 if test -n "$OCAMLDEP"; then
8405 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8406 echo "${ECHO_T}$OCAMLDEP" >&6; }
8408 { echo "$as_me:$LINENO: result: no" >&5
8409 echo "${ECHO_T}no" >&6; }
8413 test -n "$OCAMLDEP" && break
8416 for ac_prog in ocamldoc
8418 # Extract the first word of "$ac_prog", so it can be a program name with args.
8419 set dummy $ac_prog; ac_word=$2
8420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8422 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 OCAMLDOC=$ac_cv_path_OCAMLDOC
8449 if test -n "$OCAMLDOC"; then
8450 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8451 echo "${ECHO_T}$OCAMLDOC" >&6; }
8453 { echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6; }
8458 test -n "$OCAMLDOC" && break
8461 for ac_prog in gas as
8463 # Extract the first word of "$ac_prog", so it can be a program name with args.
8464 set dummy $ac_prog; ac_word=$2
8465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8467 if test "${ac_cv_path_GAS+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 if test -n "$GAS"; then
8495 { echo "$as_me:$LINENO: result: $GAS" >&5
8496 echo "${ECHO_T}$GAS" >&6; }
8498 { echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6; }
8503 test -n "$GAS" && break
8507 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8508 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8509 if test "${llvm_cv_link_use_r+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519 CFLAGS="$CFLAGS -Wl,-R."
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8530 int main() { return 0; }
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_try") 2>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 llvm_cv_link_use_r=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 llvm_cv_link_use_r=no
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8589 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8590 if test "$llvm_cv_link_use_r" = yes ; then
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_LINK_R 1
8599 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8600 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8601 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 ac_cpp='$CPP $CPPFLAGS'
8606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8622 int main() { return 0; }
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (ac_try="$ac_link"
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_link") 2>conftest.er1
8636 grep -v '^ *+' conftest.er1 >conftest.err
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_try") 2>&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 llvm_cv_link_use_export_dynamic=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 llvm_cv_link_use_export_dynamic=no
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8673 ac_cpp='$CPP $CPPFLAGS'
8674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8680 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8681 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8682 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8684 cat >>confdefs.h <<\_ACEOF
8685 #define HAVE_LINK_EXPORT_DYNAMIC 1
8693 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8694 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8695 if test "${ac_cv_c_const+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8708 /* FIXME: Include the comments suggested by Paul. */
8710 /* Ultrix mips cc rejects this. */
8711 typedef int charset[2];
8713 /* SunOS 4.1.1 cc rejects this. */
8714 char const *const *ccp;
8716 /* NEC SVR4.0.2 mips cc rejects this. */
8717 struct point {int x, y;};
8718 static struct point const zero = {0,0};
8719 /* AIX XL C 1.02.0.0 rejects this.
8720 It does not let you subtract one const X* pointer from another in
8721 an arm of an if-expression whose if-part is not a constant
8723 const char *g = "string";
8724 ccp = &g + (g ? g-g : 0);
8725 /* HPUX 7.0 cc rejects these. */
8728 ccp = (char const *const *) p;
8729 { /* SCO 3.2v4 cc rejects this. */
8731 char const *s = 0 ? (char *) 0 : (char const *) 0;
8736 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8738 const int *foo = &x[0];
8741 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8742 typedef const int *iptr;
8746 { /* AIX XL C 1.02.0.0 rejects this saying
8747 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8748 struct s { int j; const int *ap[3]; };
8749 struct s *b; b->j = 5;
8751 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8755 return !x[0] && !zero.x;
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_try") 2>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8807 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8808 if test $ac_cv_c_const = no; then
8810 cat >>confdefs.h <<\_ACEOF
8822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8823 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8824 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8825 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 #include <sys/types.h>
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 eval "$as_ac_Header=yes"
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 eval "$as_ac_Header=no"
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 ac_res=`eval echo '${'$as_ac_Header'}'`
8892 { echo "$as_me:$LINENO: result: $ac_res" >&5
8893 echo "${ECHO_T}$ac_res" >&6; }
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8899 ac_header_dirent=$ac_hdr; break
8903 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8904 if test $ac_header_dirent = dirent.h; then
8905 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8906 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8907 if test "${ac_cv_search_opendir+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 ac_func_search_save_LIBS=$LIBS
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8918 /* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
8933 for ac_lib in '' dir; do
8934 if test -z "$ac_lib"; then
8935 ac_res="none required"
8938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_link") 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_search_opendir=$ac_res
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8982 rm -f core conftest.err conftest.$ac_objext \
8984 if test "${ac_cv_search_opendir+set}" = set; then
8988 if test "${ac_cv_search_opendir+set}" = set; then
8991 ac_cv_search_opendir=no
8994 LIBS=$ac_func_search_save_LIBS
8996 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8997 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8998 ac_res=$ac_cv_search_opendir
8999 if test "$ac_res" != no; then
9000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9005 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9006 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9007 if test "${ac_cv_search_opendir+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 ac_func_search_save_LIBS=$LIBS
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9033 for ac_lib in '' x; do
9034 if test -z "$ac_lib"; then
9035 ac_res="none required"
9038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_link") 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055 { (case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_try") 2>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_try") 2>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_search_opendir=$ac_res
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9082 rm -f core conftest.err conftest.$ac_objext \
9084 if test "${ac_cv_search_opendir+set}" = set; then
9088 if test "${ac_cv_search_opendir+set}" = set; then
9091 ac_cv_search_opendir=no
9094 LIBS=$ac_func_search_save_LIBS
9096 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9097 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9098 ac_res=$ac_cv_search_opendir
9099 if test "$ac_res" != no; then
9100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9107 for ac_header in dlfcn.h
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 ac_res=`eval echo '${'$as_ac_Header'}'`
9117 { echo "$as_me:$LINENO: result: $ac_res" >&5
9118 echo "${ECHO_T}$ac_res" >&6; }
9120 # Is the header compilable?
9121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 $ac_includes_default
9130 #include <$ac_header>
9132 rm -f conftest.$ac_objext
9133 if { (ac_try="$ac_compile"
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_compile") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_header_compiler=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_header_compiler=no
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 echo "${ECHO_T}$ac_header_compiler" >&6; }
9178 # Is the header present?
9179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #include <$ac_header>
9189 if { (ac_try="$ac_cpp conftest.$ac_ext"
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } >/dev/null; then
9202 if test -s conftest.err; then
9203 ac_cpp_err=$ac_c_preproc_warn_flag
9204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9211 if test -z "$ac_cpp_err"; then
9212 ac_header_preproc=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_preproc=no
9220 rm -f conftest.err conftest.$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222 echo "${ECHO_T}$ac_header_preproc" >&6; }
9224 # So? What about this header?
9225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9231 ac_header_preproc=yes
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9247 ## ----------------------------------- ##
9248 ## Report this to llvmbugs@cs.uiuc.edu ##
9249 ## ----------------------------------- ##
9251 ) | sed "s/^/$as_me: WARNING: /" >&2
9254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 eval "$as_ac_Header=\$ac_header_preproc"
9261 ac_res=`eval echo '${'$as_ac_Header'}'`
9262 { echo "$as_me:$LINENO: result: $ac_res" >&5
9263 echo "${ECHO_T}$ac_res" >&6; }
9266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9267 cat >>confdefs.h <<_ACEOF
9268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9275 # Check whether --enable-ltdl-install was given.
9276 if test "${enable_ltdl_install+set}" = set; then
9277 enableval=$enable_ltdl_install;
9283 if test x"${enable_ltdl_install-no}" != xno; then
9285 INSTALL_LTDL_FALSE='#'
9287 INSTALL_LTDL_TRUE='#'
9293 if test x"${enable_ltdl_convenience-no}" != xno; then
9294 CONVENIENCE_LTDL_TRUE=
9295 CONVENIENCE_LTDL_FALSE='#'
9297 CONVENIENCE_LTDL_TRUE='#'
9298 CONVENIENCE_LTDL_FALSE=
9302 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9305 libname_spec='lib$name'
9313 shlibpath_overrides_runpath=unknown
9315 dynamic_linker="$host_os ld.so"
9316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9317 if test "$GCC" = yes; then
9318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9320 # if the path contains ";" then we assume it to be the separator
9321 # otherwise default to the standard path separator (i.e. ":") - it is
9322 # assumed that no part of a normal pathname contains ";" but that should
9323 # okay in the real world where ";" in dirpaths is itself problematic.
9324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9331 need_lib_prefix=unknown
9332 hardcode_into_libs=no
9334 # when you set need_version to no, make sure it does not cause -set_version
9335 # flags to be left without arguments
9336 need_version=unknown
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9342 shlibpath_var=LIBPATH
9344 # AIX 3 has no versioning support, so we append a major version to the name.
9345 soname_spec='${libname}${release}${shared_ext}$major'
9352 hardcode_into_libs=yes
9353 if test "$host_cpu" = ia64; then
9354 # AIX 5 supports IA64
9355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9356 shlibpath_var=LD_LIBRARY_PATH
9358 # With GCC up to 2.95.x, collect2 would create an import file
9359 # for dependence libraries. The import file would start with
9360 # the line `#! .'. This would cause the generated library to
9361 # depend on `.', always an invalid library. This was fixed in
9362 # development snapshots of GCC prior to 3.0.
9364 aix4 | aix4.[01] | aix4.[01].*)
9365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9375 # soname into executable. Probably we can add versioning support to
9376 # collect2, so additional links can be useful in future.
9377 if test "$aix_use_runtimelinking" = yes; then
9378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9379 # instead of lib<name>.a to let people know that these are not
9380 # typical AIX shared libraries.
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 # We preserve .a as extension for shared libraries through AIX4.2
9384 # and later when we are not doing run time linking.
9385 library_names_spec='${libname}${release}.a $libname.a'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LIBPATH
9393 library_names_spec='$libname.ixlibrary $libname.a'
9394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9395 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'
9399 library_names_spec='${libname}${shared_ext}'
9400 dynamic_linker="$host_os ld.so"
9401 shlibpath_var=LIBRARY_PATH
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9413 # the default ld.so.conf also contains /usr/contrib/lib and
9414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9415 # libtool to hard-code these into programs
9418 cygwin* | mingw* | pw32*)
9419 version_type=windows
9424 case $GCC,$host_os in
9425 yes,cygwin* | yes,mingw* | yes,pw32*)
9426 library_names_spec='$libname.dll.a'
9427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9428 postinstall_cmds='base_file=`basename \${file}`~
9429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9430 dldir=$destdir/`dirname \$dlpath`~
9431 test -d \$dldir || mkdir -p \$dldir~
9432 $install_prog $dir/$dlname \$dldir/$dlname~
9433 chmod a+x \$dldir/$dlname'
9434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9435 dlpath=$dir/\$dldll~
9437 shlibpath_overrides_runpath=yes
9441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9446 # MinGW DLLs use traditional 'lib' prefix
9447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9449 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9450 # It is most probably a Windows format PATH printed by
9451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9452 # path with ; separators, and with drive letters. We can handle the
9453 # drive letters (cygwin fileutils understands them), so leave them,
9454 # especially as we might pass files found there to a mingw objdump,
9455 # which wouldn't understand a cygwinified path. Ahh.
9456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9462 # pw32 DLLs use 'pw' prefix rather than 'lib'
9463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9472 dynamic_linker='Win32 ld.exe'
9473 # FIXME: first we should search . and the directory the executable is in
9477 darwin* | rhapsody*)
9478 dynamic_linker="$host_os dyld"
9482 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9483 soname_spec='${libname}${release}${major}$shared_ext'
9484 shlibpath_overrides_runpath=yes
9485 shlibpath_var=DYLD_LIBRARY_PATH
9486 shrext_cmds='.dylib'
9487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9488 if test "$GCC" = yes; then
9489 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"`
9491 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 dynamic_linker='GNU ld.so'
9521 freebsd* | dragonfly*)
9522 # DragonFly does not have aout. When/if they implement a new
9523 # versioning mechanism, adjust this.
9524 if test -x /usr/bin/objformat; then
9525 objformat=`/usr/bin/objformat`
9528 freebsd[123]*) objformat=aout ;;
9532 version_type=freebsd-$objformat
9533 case $version_type in
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9544 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes
9549 freebsd3.[01]* | freebsdelf3.[01]*)
9550 shlibpath_overrides_runpath=yes
9551 hardcode_into_libs=yes
9553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9555 shlibpath_overrides_runpath=no
9556 hardcode_into_libs=yes
9558 freebsd*) # from 4.6 on
9559 shlibpath_overrides_runpath=yes
9560 hardcode_into_libs=yes
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 hardcode_into_libs=yes
9575 hpux9* | hpux10* | hpux11*)
9576 # Give a soname corresponding to the major version so that dld.sl refuses to
9577 # link against other versions.
9584 hardcode_into_libs=yes
9585 dynamic_linker="$host_os dld.so"
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9599 hardcode_into_libs=yes
9600 dynamic_linker="$host_os dld.sl"
9601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9610 dynamic_linker="$host_os dld.sl"
9611 shlibpath_var=SHLIB_PATH
9612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9618 postinstall_cmds='chmod 555 $lib'
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=no
9630 hardcode_into_libs=yes
9633 irix5* | irix6* | nonstopux*)
9635 nonstopux*) version_type=nonstopux ;;
9637 if test "$lt_cv_prog_gnu_ld" = yes; then
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9648 irix5* | nonstopux*)
9652 case $LD in # libtool.m4 will add one of these switches to LD
9653 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9654 libsuff= shlibsuff= libmagic=32-bit;;
9655 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9656 libsuff=32 shlibsuff=N32 libmagic=N32;;
9657 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9658 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9659 *) libsuff= shlibsuff= libmagic=never-match;;
9663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9664 shlibpath_overrides_runpath=no
9665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9667 hardcode_into_libs=yes
9670 # No shared lib support for Linux oldld, aout, or coff.
9671 linux*oldld* | linux*aout* | linux*coff*)
9675 # This must be Linux ELF.
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 shlibpath_overrides_runpath=no
9685 # This implies no fast_install, which is unacceptable.
9686 # Some rework will be needed to allow for fast_install
9687 # before this can be enabled.
9688 hardcode_into_libs=yes
9690 # Append ld.so.conf contents to the search path
9691 if test -f /etc/ld.so.conf; then
9692 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' ' '`
9693 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9696 # We used to test for /lib/ld.so.1 and disable shared libraries on
9697 # powerpc, because MkLinux only supported shared libraries with the
9698 # GNU dynamic linker. Since this was broken with cross compilers,
9699 # most powerpc-linux boxes support dynamic linking these days and
9700 # people can always --disable-shared, the test was removed, and we
9701 # assume the GNU/Linux dynamic linker is in use.
9702 dynamic_linker='GNU/Linux ld.so'
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9714 dynamic_linker='GNU ld.so'
9721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9724 dynamic_linker='NetBSD (a.out) ld.so'
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 dynamic_linker='NetBSD ld.elf_so'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 hardcode_into_libs=yes
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes
9754 sys_lib_dlsearch_path_spec="/usr/lib"
9756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9759 *) need_version=no ;;
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9766 openbsd2.[89] | openbsd2.[89].*)
9767 shlibpath_overrides_runpath=no
9770 shlibpath_overrides_runpath=yes
9774 shlibpath_overrides_runpath=yes
9779 libname_spec='$name'
9782 library_names_spec='$libname${shared_ext} $libname.a'
9783 dynamic_linker='OS/2 ld.exe'
9784 shlibpath_var=LIBPATH
9787 osf3* | osf4* | osf5*)
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9806 hardcode_into_libs=yes
9807 # ldd complains unless libraries are executable
9808 postinstall_cmds='chmod +x $lib'
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 shlibpath_overrides_runpath=yes
9817 if test "$with_gnu_ld" = yes; then
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 case $host_vendor in
9830 shlibpath_overrides_runpath=no
9832 export_dynamic_flag_spec='${wl}-Blargedynsym'
9833 runpath_var=LD_RUN_PATH
9841 shlibpath_overrides_runpath=no
9842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9848 if test -d /usr/nec ;then
9850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9851 soname_spec='$libname${shared_ext}.$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9857 version_type=freebsd-elf
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 hardcode_into_libs=yes
9864 if test "$with_gnu_ld" = yes; then
9865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9866 shlibpath_overrides_runpath=no
9868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9869 shlibpath_overrides_runpath=yes
9872 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9876 sys_lib_dlsearch_path_spec='/usr/lib'
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9890 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9891 echo "${ECHO_T}$dynamic_linker" >&6; }
9892 test "$dynamic_linker" = no && can_build_shared=no
9894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9895 if test "$GCC" = yes; then
9896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9900 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9901 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9902 if test "${libltdl_cv_shlibext+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 eval libltdl_cv_shlibext=$shrext_cmds
9910 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9911 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9912 if test -n "$libltdl_cv_shlibext"; then
9914 cat >>confdefs.h <<_ACEOF
9915 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9921 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9922 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9923 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 libltdl_cv_shlibpath_var="$shlibpath_var"
9928 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9929 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9930 if test -n "$libltdl_cv_shlibpath_var"; then
9932 cat >>confdefs.h <<_ACEOF
9933 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9939 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9940 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9941 if test "${libltdl_cv_sys_search_path+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9946 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9947 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9948 if test -n "$libltdl_cv_sys_search_path"; then
9950 for dir in $libltdl_cv_sys_search_path; do
9951 if test -z "$sys_search_path"; then
9952 sys_search_path="$dir"
9954 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9958 cat >>confdefs.h <<_ACEOF
9959 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9964 { echo "$as_me:$LINENO: checking for objdir" >&5
9965 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9966 if test "${libltdl_cv_objdir+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 libltdl_cv_objdir="$objdir"
9970 if test -n "$objdir"; then
9973 rm -f .libs 2>/dev/null
9974 mkdir .libs 2>/dev/null
9975 if test -d .libs; then
9976 libltdl_cv_objdir=.libs
9978 # MS-DOS does not allow filenames that begin with a dot.
9979 libltdl_cv_objdir=_libs
9981 rmdir .libs 2>/dev/null
9985 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9986 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9988 cat >>confdefs.h <<_ACEOF
9989 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9997 # Check for command to grab the raw symbol name followed by C symbol from nm.
9998 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9999 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10000 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 # These are sane defaults that work on at least a few old systems.
10005 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10007 # Character class describing NM global symbol codes.
10008 symcode='[BCDEGRST]'
10010 # Regexp to match symbols that can be accessed directly from C.
10011 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10013 # Transform an extracted symbol line into a proper C declaration
10014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10016 # Transform an extracted symbol line into symbol name and symbol address
10017 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'"
10019 # Define system-specific variables.
10024 cygwin* | mingw* | pw32*)
10025 symcode='[ABCDGISTW]'
10027 hpux*) # Its linker distinguishes data from code symbols
10028 if test "$host_cpu" = ia64; then
10029 symcode='[ABCDEGRST]'
10031 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10032 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'"
10035 if test "$host_cpu" = ia64; then
10036 symcode='[ABCDGIRSTW]'
10037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10038 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'"
10041 irix* | nonstopux*)
10042 symcode='[BCDEGRST]'
10045 symcode='[BCDEGQRST]'
10056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10064 # Handle CRLF in mingw tool chain
10068 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10072 # If we're using GNU nm, then use its standard symbol codes.
10073 case `$NM -V 2>&1` in
10074 *GNU* | *'with BFD'*)
10075 symcode='[ABCDGIRSTW]' ;;
10078 # Try without a prefix undercore, then with it.
10079 for ac_symprfx in "" "_"; do
10081 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10082 symxfrm="\\1 $ac_symprfx\\2 \\2"
10084 # Write the raw and C identifiers.
10085 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10087 # Check to see that the pipe works correctly.
10091 cat > conftest.$ac_ext <<EOF
10096 void nm_test_func(){}
10100 int main(){nm_test_var='a';nm_test_func();return(0);}
10103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104 (eval $ac_compile) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; then
10108 # Now try to grab the symbols.
10110 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10111 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && test -s "$nlist"; then
10115 # Try sorting and uniquifying the output.
10116 if sort "$nlist" | uniq > "$nlist"T; then
10117 mv -f "$nlist"T "$nlist"
10122 # Make sure that we snagged all the symbols we need.
10123 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10124 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10125 cat <<EOF > conftest.$ac_ext
10131 # Now generate the symbol file.
10132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10134 cat <<EOF >> conftest.$ac_ext
10135 #if defined (__STDC__) && __STDC__
10136 # define lt_ptr_t void *
10138 # define lt_ptr_t char *
10142 /* The mapping between symbol names and symbols. */
10147 lt_preloaded_symbols[] =
10150 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10151 cat <<\EOF >> conftest.$ac_ext
10159 # Now try linking the two files.
10160 mv conftest.$ac_objext conftstm.$ac_objext
10161 lt_save_LIBS="$LIBS"
10162 lt_save_CFLAGS="$CFLAGS"
10163 LIBS="conftstm.$ac_objext"
10164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10172 LIBS="$lt_save_LIBS"
10173 CFLAGS="$lt_save_CFLAGS"
10175 echo "cannot find nm_test_func in $nlist" >&5
10178 echo "cannot find nm_test_var in $nlist" >&5
10181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10184 echo "$progname: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 rm -f conftest* conftst*
10189 # Do not use the global_symbol_pipe unless it works.
10190 if test "$pipe_works" = yes; then
10193 lt_cv_sys_global_symbol_pipe=
10199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10200 lt_cv_sys_global_symbol_to_cdecl=
10202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10203 { echo "$as_me:$LINENO: result: failed" >&5
10204 echo "${ECHO_T}failed" >&6; }
10206 { echo "$as_me:$LINENO: result: ok" >&5
10207 echo "${ECHO_T}ok" >&6; }
10211 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10212 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10213 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10217 libltdl_cv_preloaded_symbols=yes
10219 libltdl_cv_preloaded_symbols=no
10223 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10224 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10225 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10227 cat >>confdefs.h <<\_ACEOF
10228 #define HAVE_PRELOADED_SYMBOLS 1
10236 ac_cpp='$CPP $CPPFLAGS'
10237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242 { echo "$as_me:$LINENO: checking for shl_load" >&5
10243 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10244 if test "${ac_cv_func_shl_load+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10255 #define shl_load innocuous_shl_load
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char shl_load (); below.
10259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10260 <limits.h> exists even on freestanding compilers. */
10263 # include <limits.h>
10265 # include <assert.h>
10270 /* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10277 /* The GNU C library defines this for functions which it implements
10278 to always fail with ENOSYS. Some functions are actually named
10279 something starting with __ and the normal name is an alias. */
10280 #if defined __stub_shl_load || defined __stub___shl_load
10287 return shl_load ();
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10307 { (case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_try") 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_func_shl_load=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_cv_func_shl_load=no
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10338 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10339 if test $ac_cv_func_shl_load = yes; then
10341 cat >>confdefs.h <<\_ACEOF
10342 #define HAVE_SHL_LOAD 1
10346 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10347 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 ac_check_lib_save_LIBS=$LIBS
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10370 return shl_load ();
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_dld_shl_load=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_dld_shl_load=no
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10423 if test $ac_cv_lib_dld_shl_load = yes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_SHL_LOAD 1
10429 LIBADD_DL="$LIBADD_DL -ldld"
10431 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 ac_check_lib_save_LIBS=$LIBS
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10445 /* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_lib_dl_dlopen=yes
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_cv_lib_dl_dlopen=no
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10504 LIBS=$ac_check_lib_save_LIBS
10506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10508 if test $ac_cv_lib_dl_dlopen = yes; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_LIBDL 1
10514 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 # include <dlfcn.h>
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10569 cat >>confdefs.h <<\_ACEOF
10570 #define HAVE_LIBDL 1
10572 libltdl_cv_func_dlopen="yes"
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lsvld $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_lib_svld_dlopen=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_svld_dlopen=no
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10653 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10654 if test $ac_cv_lib_svld_dlopen = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_LIBDL 1
10660 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10662 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10663 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10664 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 ac_check_lib_save_LIBS=$LIBS
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10686 return dld_link ();
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_link") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_lib_dld_dld_link=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_lib_dld_dld_link=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10739 if test $ac_cv_lib_dld_dld_link = yes; then
10741 cat >>confdefs.h <<\_ACEOF
10745 LIBADD_DL="$LIBADD_DL -ldld"
10747 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10748 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10749 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760 #define _dyld_func_lookup innocuous__dyld_func_lookup
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char _dyld_func_lookup (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
10768 # include <limits.h>
10770 # include <assert.h>
10773 #undef _dyld_func_lookup
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10781 char _dyld_func_lookup ();
10782 /* The GNU C library defines this for functions which it implements
10783 to always fail with ENOSYS. Some functions are actually named
10784 something starting with __ and the normal name is an alias. */
10785 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10792 return _dyld_func_lookup ();
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_func__dyld_func_lookup=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_func__dyld_func_lookup=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10843 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10844 if test $ac_cv_func__dyld_func_lookup = yes; then
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_DYLD 1
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10873 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10875 lt_save_LIBS="$LIBS"
10876 LIBS="$LIBS $LIBADD_DL"
10878 for ac_func in dlerror
10880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10894 #define $ac_func innocuous_$ac_func
10896 /* System header to define __stub macros and hopefully few prototypes,
10897 which can conflict with char $ac_func (); below.
10898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10899 <limits.h> exists even on freestanding compilers. */
10902 # include <limits.h>
10904 # include <assert.h>
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10916 /* The GNU C library defines this for functions which it implements
10917 to always fail with ENOSYS. Some functions are actually named
10918 something starting with __ and the normal name is an alias. */
10919 #if defined __stub_$ac_func || defined __stub___$ac_func
10926 return $ac_func ();
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_link") 2>conftest.er1
10940 grep -v '^ *+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 eval "$as_ac_var=yes"
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 eval "$as_ac_var=no"
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10976 ac_res=`eval echo '${'$as_ac_var'}'`
10977 { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10979 if test `eval echo '${'$as_ac_var'}'` = yes; then
10980 cat >>confdefs.h <<_ACEOF
10981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10987 LIBS="$lt_save_LIBS"
10990 ac_cpp='$CPP $CPPFLAGS'
10991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10997 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10998 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10999 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 ac_cv_sys_symbol_underscore=no
11003 cat > conftest.$ac_ext <<EOF
11004 void nm_test_func(){}
11005 int main(){nm_test_func;return 0;}
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; then
11012 # Now try to grab the symbols.
11013 ac_nlist=conftest.nm
11014 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11015 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && test -s "$ac_nlist"; then
11019 # See whether the symbols have a leading underscore.
11020 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11021 ac_cv_sys_symbol_underscore=yes
11023 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11026 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11030 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11033 echo "configure: failed program was:" >&5
11039 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11040 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11043 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11044 if test x"$libltdl_cv_func_dlopen" = xyes ||
11045 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11046 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11047 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11048 if test "${libltdl_cv_need_uscore+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 libltdl_cv_need_uscore=unknown
11053 LIBS="$LIBS $LIBADD_DL"
11054 if test "$cross_compiling" = yes; then :
11055 libltdl_cv_need_uscore=cross
11057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11058 lt_status=$lt_dlunknown
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11060 "configure"
11061 #include "confdefs.h"
11070 # define LT_DLGLOBAL RTLD_GLOBAL
11073 # define LT_DLGLOBAL DL_GLOBAL
11075 # define LT_DLGLOBAL 0
11079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11080 find out it does not work in some platform. */
11081 #ifndef LT_DLLAZY_OR_NOW
11083 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11086 # define LT_DLLAZY_OR_NOW DL_LAZY
11089 # define LT_DLLAZY_OR_NOW RTLD_NOW
11092 # define LT_DLLAZY_OR_NOW DL_NOW
11094 # define LT_DLLAZY_OR_NOW 0
11102 extern "C" void exit (int);
11105 void fnord() { int i=42;}
11108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11109 int status = $lt_dlunknown;
11113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11115 /* dlclose (self); */
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11128 (./conftest; exit; ) >&5 2>/dev/null
11130 case x$lt_status in
11131 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11132 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11133 x$lt_dlunknown|x*) ;;
11136 # compilation failed
11145 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11146 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11150 if test x"$libltdl_cv_need_uscore" = xyes; then
11152 cat >>confdefs.h <<\_ACEOF
11153 #define NEED_USCORE 1
11159 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11160 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11161 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 # PORTME does your system automatically load deplibs for dlopen?
11165 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11166 # For now, we just catch OSes we know something about -- in the
11167 # future, we'll try test this programmatically.
11168 libltdl_cv_sys_dlopen_deplibs=unknown
11170 aix3*|aix4.1.*|aix4.2.*)
11171 # Unknown whether this is true for these versions of AIX, but
11172 # we want this `case' here to explicitly catch those versions.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11176 libltdl_cv_sys_dlopen_deplibs=yes
11179 # Assuming the user has installed a libdl from somewhere, this is true
11180 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11181 libltdl_cv_sys_dlopen_deplibs=yes
11183 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11184 # GNU and its variants, using gnu ld.so (Glibc)
11185 libltdl_cv_sys_dlopen_deplibs=yes
11188 libltdl_cv_sys_dlopen_deplibs=yes
11191 libltdl_cv_sys_dlopen_deplibs=yes
11193 irix[12345]*|irix6.[01]*)
11194 # Catch all versions of IRIX before 6.2, and indicate that we don't
11195 # know how it worked for any of those versions.
11196 libltdl_cv_sys_dlopen_deplibs=unknown
11199 # The case above catches anything before 6.2, and it's known that
11200 # at 6.2 and later dlopen does load deplibs.
11201 libltdl_cv_sys_dlopen_deplibs=yes
11204 libltdl_cv_sys_dlopen_deplibs=yes
11207 libltdl_cv_sys_dlopen_deplibs=yes
11210 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11211 # it did *not* use an RPATH in a shared library to find objects the
11212 # library depends on, so we explictly say `no'.
11213 libltdl_cv_sys_dlopen_deplibs=no
11215 osf5.0|osf5.0a|osf5.1)
11216 # dlopen *does* load deplibs and with the right loader patch applied
11217 # it even uses RPATH in a shared library to search for shared objects
11218 # that the library depends on, but there's no easy way to know if that
11219 # patch is installed. Since this is the case, all we can really
11220 # say is unknown -- it depends on the patch being installed. If
11221 # it is, this changes to `yes'. Without it, it would be `no'.
11222 libltdl_cv_sys_dlopen_deplibs=unknown
11225 # the two cases above should catch all versions of osf <= 5.1. Read
11226 # the comments above for what we know about them.
11227 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11228 # is used to find them so we can finally say `yes'.
11229 libltdl_cv_sys_dlopen_deplibs=yes
11232 libltdl_cv_sys_dlopen_deplibs=yes
11234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235 libltdl_cv_sys_dlopen_deplibs=yes
11240 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11241 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11242 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11244 cat >>confdefs.h <<\_ACEOF
11245 #define LTDL_DLOPEN_DEPLIBS 1
11251 for ac_header in argz.h
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11264 # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <$ac_header>
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_preproc=no
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368 # So? What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ## ----------------------------------- ##
11392 ## Report this to llvmbugs@cs.uiuc.edu ##
11393 ## ----------------------------------- ##
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 eval "$as_ac_Header=\$ac_header_preproc"
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 { echo "$as_me:$LINENO: checking for error_t" >&5
11421 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11422 if test "${ac_cv_type_error_t+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11435 typedef error_t ac__type_new_;
11439 if ((ac__type_new_ *) 0)
11441 if (sizeof (ac__type_new_))
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
11472 { (case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_try") 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_cv_type_error_t=yes
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_cv_type_error_t=no
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11492 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11493 if test $ac_cv_type_error_t = yes; then
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_ERROR_T 1
11502 cat >>confdefs.h <<\_ACEOF
11503 #define error_t int
11514 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11530 #define $ac_func innocuous_$ac_func
11532 /* System header to define __stub macros and hopefully few prototypes,
11533 which can conflict with char $ac_func (); below.
11534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11535 <limits.h> exists even on freestanding compilers. */
11538 # include <limits.h>
11540 # include <assert.h>
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11552 /* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555 #if defined __stub_$ac_func || defined __stub___$ac_func
11562 return $ac_func ();
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (ac_try="$ac_link"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_link") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11582 { (case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_try") 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_try") 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 eval "$as_ac_var=yes"
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 eval "$as_ac_var=no"
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11612 ac_res=`eval echo '${'$as_ac_var'}'`
11613 { echo "$as_me:$LINENO: result: $ac_res" >&5
11614 echo "${ECHO_T}$ac_res" >&6; }
11615 if test `eval echo '${'$as_ac_var'}'` = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11664 # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 $ac_includes_default
11674 #include <$ac_header>
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_header_compiler=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 ac_header_compiler=no
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11720 echo "${ECHO_T}$ac_header_compiler" >&6; }
11722 # Is the header present?
11723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 #include <$ac_header>
11733 if { (ac_try="$ac_cpp conftest.$ac_ext"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } >/dev/null; then
11746 if test -s conftest.err; then
11747 ac_cpp_err=$ac_c_preproc_warn_flag
11748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11755 if test -z "$ac_cpp_err"; then
11756 ac_header_preproc=yes
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_header_preproc=no
11764 rm -f conftest.err conftest.$ac_ext
11765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11766 echo "${ECHO_T}$ac_header_preproc" >&6; }
11768 # So? What about this header?
11769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11775 ac_header_preproc=yes
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11791 ## ----------------------------------- ##
11792 ## Report this to llvmbugs@cs.uiuc.edu ##
11793 ## ----------------------------------- ##
11795 ) | sed "s/^/$as_me: WARNING: /" >&2
11798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 eval "$as_ac_Header=\$ac_header_preproc"
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 ac_res=`eval echo '${'$as_ac_Header'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11836 # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 #include <$ac_header>
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_header_compiler=yes
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_header_compiler=no
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 echo "${ECHO_T}$ac_header_compiler" >&6; }
11894 # Is the header present?
11895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <$ac_header>
11905 if { (ac_try="$ac_cpp conftest.$ac_ext"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } >/dev/null; then
11918 if test -s conftest.err; then
11919 ac_cpp_err=$ac_c_preproc_warn_flag
11920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11927 if test -z "$ac_cpp_err"; then
11928 ac_header_preproc=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_preproc=no
11936 rm -f conftest.err conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11938 echo "${ECHO_T}$ac_header_preproc" >&6; }
11940 # So? What about this header?
11941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11947 ac_header_preproc=yes
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11963 ## ----------------------------------- ##
11964 ## Report this to llvmbugs@cs.uiuc.edu ##
11965 ## ----------------------------------- ##
11967 ) | sed "s/^/$as_me: WARNING: /" >&2
11970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 eval "$as_ac_Header=\$ac_header_preproc"
11977 ac_res=`eval echo '${'$as_ac_Header'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993 for ac_header in string.h strings.h
11995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 ac_res=`eval echo '${'$as_ac_Header'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12006 # Is the header compilable?
12007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12016 #include <$ac_header>
12018 rm -f conftest.$ac_objext
12019 if { (ac_try="$ac_compile"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_compile") 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_header_compiler=yes
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_header_compiler=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 echo "${ECHO_T}$ac_header_compiler" >&6; }
12064 # Is the header present?
12065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <$ac_header>
12075 if { (ac_try="$ac_cpp conftest.$ac_ext"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1 >conftest.err
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } >/dev/null; then
12088 if test -s conftest.err; then
12089 ac_cpp_err=$ac_c_preproc_warn_flag
12090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12097 if test -z "$ac_cpp_err"; then
12098 ac_header_preproc=yes
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ac_header_preproc=no
12106 rm -f conftest.err conftest.$ac_ext
12107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12108 echo "${ECHO_T}$ac_header_preproc" >&6; }
12110 # So? What about this header?
12111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12117 ac_header_preproc=yes
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12133 ## ----------------------------------- ##
12134 ## Report this to llvmbugs@cs.uiuc.edu ##
12135 ## ----------------------------------- ##
12137 ) | sed "s/^/$as_me: WARNING: /" >&2
12140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 eval "$as_ac_Header=\$ac_header_preproc"
12147 ac_res=`eval echo '${'$as_ac_Header'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12164 for ac_func in strchr index
12166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180 #define $ac_func innocuous_$ac_func
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12188 # include <limits.h>
12190 # include <assert.h>
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12202 /* The GNU C library defines this for functions which it implements
12203 to always fail with ENOSYS. Some functions are actually named
12204 something starting with __ and the normal name is an alias. */
12205 #if defined __stub_$ac_func || defined __stub___$ac_func
12212 return $ac_func ();
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (ac_try="$ac_link"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_link") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12232 { (case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_try") 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest$ac_exeext'
12242 { (case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_try") 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 eval "$as_ac_var=yes"
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 eval "$as_ac_var=no"
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12262 ac_res=`eval echo '${'$as_ac_var'}'`
12263 { echo "$as_me:$LINENO: result: $ac_res" >&5
12264 echo "${ECHO_T}$ac_res" >&6; }
12265 if test `eval echo '${'$as_ac_var'}'` = yes; then
12266 cat >>confdefs.h <<_ACEOF
12267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12275 for ac_func in strrchr rindex
12277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291 #define $ac_func innocuous_$ac_func
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12299 # include <limits.h>
12301 # include <assert.h>
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12313 /* The GNU C library defines this for functions which it implements
12314 to always fail with ENOSYS. Some functions are actually named
12315 something starting with __ and the normal name is an alias. */
12316 #if defined __stub_$ac_func || defined __stub___$ac_func
12323 return $ac_func ();
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_link") 2>conftest.er1
12337 grep -v '^ *+' conftest.er1 >conftest.err
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 eval "$as_ac_var=yes"
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 eval "$as_ac_var=no"
12370 rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12373 ac_res=`eval echo '${'$as_ac_var'}'`
12374 { echo "$as_me:$LINENO: result: $ac_res" >&5
12375 echo "${ECHO_T}$ac_res" >&6; }
12376 if test `eval echo '${'$as_ac_var'}'` = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12386 for ac_func in memcpy bcopy
12388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12402 #define $ac_func innocuous_$ac_func
12404 /* System header to define __stub macros and hopefully few prototypes,
12405 which can conflict with char $ac_func (); below.
12406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12407 <limits.h> exists even on freestanding compilers. */
12410 # include <limits.h>
12412 # include <assert.h>
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12424 /* The GNU C library defines this for functions which it implements
12425 to always fail with ENOSYS. Some functions are actually named
12426 something starting with __ and the normal name is an alias. */
12427 #if defined __stub_$ac_func || defined __stub___$ac_func
12434 return $ac_func ();
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_link") 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 eval "$as_ac_var=yes"
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 eval "$as_ac_var=no"
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12484 ac_res=`eval echo '${'$as_ac_var'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12487 if test `eval echo '${'$as_ac_var'}'` = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 for ac_func in memmove strcmp
12499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12513 #define $ac_func innocuous_$ac_func
12515 /* System header to define __stub macros and hopefully few prototypes,
12516 which can conflict with char $ac_func (); below.
12517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518 <limits.h> exists even on freestanding compilers. */
12521 # include <limits.h>
12523 # include <assert.h>
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined __stub_$ac_func || defined __stub___$ac_func
12545 return $ac_func ();
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12559 grep -v '^ *+' conftest.er1 >conftest.err
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_try") 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 eval "$as_ac_var=yes"
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 eval "$as_ac_var=no"
12592 rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12595 ac_res=`eval echo '${'$as_ac_var'}'`
12596 { echo "$as_me:$LINENO: result: $ac_res" >&5
12597 echo "${ECHO_T}$ac_res" >&6; }
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12609 for ac_func in closedir opendir readdir
12611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12625 #define $ac_func innocuous_$ac_func
12627 /* System header to define __stub macros and hopefully few prototypes,
12628 which can conflict with char $ac_func (); below.
12629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12630 <limits.h> exists even on freestanding compilers. */
12633 # include <limits.h>
12635 # include <assert.h>
12640 /* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
12647 /* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650 #if defined __stub_$ac_func || defined __stub___$ac_func
12657 return $ac_func ();
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (ac_try="$ac_link"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 eval "$as_ac_var=no"
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12720 if test "$WITH_LLVMGCCDIR" = "default" ; then
12721 LLVMGCC="llvm-gcc${EXEEXT}"
12722 LLVMGXX="llvm-g++${EXEEXT}"
12723 LLVMGCCCOMMAND="$LLVMGCC"
12724 LLVMGXXCOMMAND="$LLVMGXX"
12725 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12727 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12729 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12730 set dummy $LLVMGCC; ac_word=$2
12731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12733 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 LLVMGCC=$ac_cv_path_LLVMGCC
12760 if test -n "$LLVMGCC"; then
12761 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12762 echo "${ECHO_T}$LLVMGCC" >&6; }
12764 { echo "$as_me:$LINENO: result: no" >&5
12765 echo "${ECHO_T}no" >&6; }
12769 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12770 set dummy $LLVMGXX; ac_word=$2
12771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12773 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 LLVMGXX=$ac_cv_path_LLVMGXX
12800 if test -n "$LLVMGXX"; then
12801 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12802 echo "${ECHO_T}$LLVMGXX" >&6; }
12804 { echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6; }
12810 if test -z "$LLVMGCC"; then
12811 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12812 LLVMGCCCOMMAND="$LLVMGCC"
12814 if test -z "$LLVMGXX"; then
12815 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12816 LLVMGXXCOMMAND="$LLVMGXX"
12823 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12825 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12830 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12831 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12844 if test "$GCC" != "yes" && test "$ICC" != "yes"
12846 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12847 echo "$as_me: error: gcc|icc required but not found" >&2;}
12848 { (exit 1); exit 1; }; }
12851 if test "$GXX" != "yes" && test "$IXX" != "yes"
12853 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12854 echo "$as_me: error: g++|icc required but not found" >&2;}
12855 { (exit 1); exit 1; }; }
12858 if test "$GCC" = "yes"
12860 cat >conftest.$ac_ext <<_ACEOF
12861 #if !defined(__GNUC__) || __GNUC__ < 3
12862 #error Unsupported GCC version
12866 rm -f conftest.$ac_objext
12867 if { (ac_try="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12906 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12907 { (exit 1); exit 1; }; }
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 if test -z "$llvm_cv_gnu_make_command"
12915 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12916 echo "$as_me: error: GNU Make required but not found" >&2;}
12917 { (exit 1); exit 1; }; }
12920 { echo "$as_me:$LINENO: result: ok" >&5
12921 echo "${ECHO_T}ok" >&6; }
12923 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12924 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12925 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12927 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12929 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12930 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12934 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12935 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12936 if test "${ac_cv_lib_m_sin+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_check_lib_save_LIBS=$LIBS
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (ac_try="$ac_link"
12965 case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_link") 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_lib_m_sin=yes
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13005 rm -f core conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13007 LIBS=$ac_check_lib_save_LIBS
13009 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13010 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13011 if test $ac_cv_lib_m_sin = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013 #define HAVE_LIBM 1
13020 if test "$llvm_cv_os_type" = "MingW" ; then
13022 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13023 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13024 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-limagehlp $LIBS"
13029 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_link") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_lib_imagehlp_main=yes
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_cv_lib_imagehlp_main=no
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13091 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13092 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13093 if test $ac_cv_lib_imagehlp_main = yes; then
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_LIBIMAGEHLP 1
13098 LIBS="-limagehlp $LIBS"
13103 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13104 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13105 if test "${ac_cv_lib_psapi_main+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 ac_check_lib_save_LIBS=$LIBS
13109 LIBS="-lpsapi $LIBS"
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_link") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_lib_psapi_main=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_lib_psapi_main=no
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13173 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13174 if test $ac_cv_lib_psapi_main = yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_LIBPSAPI 1
13179 LIBS="-lpsapi $LIBS"
13185 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13186 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_dlopen+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13213 for ac_lib in '' dl; do
13214 if test -z "$ac_lib"; then
13215 ac_res="none required"
13218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_link") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest$ac_exeext'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_search_dlopen=$ac_res
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f core conftest.err conftest.$ac_objext \
13264 if test "${ac_cv_search_dlopen+set}" = set; then
13268 if test "${ac_cv_search_dlopen+set}" = set; then
13271 ac_cv_search_dlopen=no
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13277 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13278 ac_res=$ac_cv_search_dlopen
13279 if test "$ac_res" != no; then
13280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_DLOPEN 1
13287 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13288 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13292 if test "$llvm_cv_enable_libffi" = "yes" ; then
13293 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13294 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13295 if test "${ac_cv_search_ffi_call+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 ac_func_search_save_LIBS=$LIBS
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13316 return ffi_call ();
13321 for ac_lib in '' ffi; do
13322 if test -z "$ac_lib"; then
13323 ac_res="none required"
13326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13328 rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (ac_try="$ac_link"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_link") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_search_ffi_call=$ac_res
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13370 rm -f core conftest.err conftest.$ac_objext \
13372 if test "${ac_cv_search_ffi_call+set}" = set; then
13376 if test "${ac_cv_search_ffi_call+set}" = set; then
13379 ac_cv_search_ffi_call=no
13381 rm conftest.$ac_ext
13382 LIBS=$ac_func_search_save_LIBS
13384 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13385 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13386 ac_res=$ac_cv_search_ffi_call
13387 if test "$ac_res" != no; then
13388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_FFI_CALL 1
13395 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13396 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13397 { (exit 1); exit 1; }; }
13402 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13403 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13404 if test "${ac_cv_search_mallinfo+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 ac_func_search_save_LIBS=$LIBS
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13425 return mallinfo ();
13430 for ac_lib in '' malloc; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_search_mallinfo=$ac_res
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13479 rm -f core conftest.err conftest.$ac_objext \
13481 if test "${ac_cv_search_mallinfo+set}" = set; then
13485 if test "${ac_cv_search_mallinfo+set}" = set; then
13488 ac_cv_search_mallinfo=no
13490 rm conftest.$ac_ext
13491 LIBS=$ac_func_search_save_LIBS
13493 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13494 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13495 ac_res=$ac_cv_search_mallinfo
13496 if test "$ac_res" != no; then
13497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_MALLINFO 1
13506 if test "$ENABLE_THREADS" -eq 1 ; then
13508 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13509 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13510 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 ac_check_lib_save_LIBS=$LIBS
13514 LIBS="-lpthread $LIBS"
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13522 /* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13528 char pthread_mutex_init ();
13532 return pthread_mutex_init ();
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (ac_try="$ac_link"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1 >conftest.err
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_lib_pthread_pthread_mutex_init=yes
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_cv_lib_pthread_pthread_mutex_init=no
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13581 LIBS=$ac_check_lib_save_LIBS
13583 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13584 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13585 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_LIBPTHREAD 1
13590 LIBS="-lpthread $LIBS"
13594 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13595 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13596 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 ac_func_search_save_LIBS=$LIBS
13600 cat >conftest.$ac_ext <<_ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13607 /* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
13613 char pthread_mutex_lock ();
13617 return pthread_mutex_lock ();
13622 for ac_lib in '' pthread; do
13623 if test -z "$ac_lib"; then
13624 ac_res="none required"
13627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (ac_try="$ac_link"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_link") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } &&
13653 { ac_try='test -s conftest$ac_exeext'
13654 { (case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_try") 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_search_pthread_mutex_lock=$ac_res
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13671 rm -f core conftest.err conftest.$ac_objext \
13673 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13677 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13680 ac_cv_search_pthread_mutex_lock=no
13682 rm conftest.$ac_ext
13683 LIBS=$ac_func_search_save_LIBS
13685 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13686 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13687 ac_res=$ac_cv_search_pthread_mutex_lock
13688 if test "$ac_res" != no; then
13689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13691 cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_PTHREAD_MUTEX_LOCK 1
13697 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13698 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13716 char pthread_rwlock_init ();
13720 return pthread_rwlock_init ();
13725 for ac_lib in '' pthread; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_search_pthread_rwlock_init=$ac_res
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13774 rm -f core conftest.err conftest.$ac_objext \
13776 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13780 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13783 ac_cv_search_pthread_rwlock_init=no
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13789 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13790 ac_res=$ac_cv_search_pthread_rwlock_init
13791 if test "$ac_res" != no; then
13792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_PTHREAD_RWLOCK_INIT 1
13800 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13801 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13813 /* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13819 char pthread_getspecific ();
13823 return pthread_getspecific ();
13828 for ac_lib in '' pthread; do
13829 if test -z "$ac_lib"; then
13830 ac_res="none required"
13833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_try") 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_search_pthread_getspecific=$ac_res
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f core conftest.err conftest.$ac_objext \
13879 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13883 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13886 ac_cv_search_pthread_getspecific=no
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13892 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13893 ac_res=$ac_cv_search_pthread_getspecific
13894 if test "$ac_res" != no; then
13895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13897 cat >>confdefs.h <<\_ACEOF
13898 #define HAVE_PTHREAD_GETSPECIFIC 1
13906 # Check whether --with-udis86 was given.
13907 if test "${with_udis86+set}" = set; then
13908 withval=$with_udis86;
13913 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13916 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13917 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-ludis86 $LIBS"
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13954 grep -v '^ *+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest$ac_exeext'
13970 { (case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_try") 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_lib_udis86_ud_init=yes
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_cv_lib_udis86_ud_init=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13991 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13992 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13993 if test $ac_cv_lib_udis86_ud_init = yes; then
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_LIBUDIS86 1
13998 LIBS="-ludis86 $LIBS"
14002 echo "Error! You need to have libudis86 around."
14014 cat >>confdefs.h <<_ACEOF
14015 #define USE_UDIS86 $USE_UDIS86
14020 # Check whether --with-oprofile was given.
14021 if test "${with_oprofile+set}" = set; then
14022 withval=$with_oprofile;
14026 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14027 no) llvm_cv_oppath=
14030 *) llvm_cv_oppath="${withval}/lib/oprofile"
14031 CPPFLAGS="-I${withval}/include";;
14033 if test -n "$llvm_cv_oppath" ; then
14034 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14035 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14036 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14037 if test "${ac_cv_search_bfd_init+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_func_search_save_LIBS=$LIBS
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14058 return bfd_init ();
14063 for ac_lib in '' bfd; do
14064 if test -z "$ac_lib"; then
14065 ac_res="none required"
14068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (ac_try="$ac_link"
14072 case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_link") 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest$ac_exeext'
14095 { (case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_try") 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_search_bfd_init=$ac_res
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14112 rm -f core conftest.err conftest.$ac_objext \
14114 if test "${ac_cv_search_bfd_init+set}" = set; then
14118 if test "${ac_cv_search_bfd_init+set}" = set; then
14121 ac_cv_search_bfd_init=no
14123 rm conftest.$ac_ext
14124 LIBS=$ac_func_search_save_LIBS
14126 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14127 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14128 ac_res=$ac_cv_search_bfd_init
14129 if test "$ac_res" != no; then
14130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14134 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14135 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14136 if test "${ac_cv_search_op_open_agent+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 ac_func_search_save_LIBS=$LIBS
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14153 char op_open_agent ();
14157 return op_open_agent ();
14162 for ac_lib in '' opagent; do
14163 if test -z "$ac_lib"; then
14164 ac_res="none required"
14167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest$ac_exeext'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_search_op_open_agent=$ac_res
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14211 rm -f core conftest.err conftest.$ac_objext \
14213 if test "${ac_cv_search_op_open_agent+set}" = set; then
14217 if test "${ac_cv_search_op_open_agent+set}" = set; then
14220 ac_cv_search_op_open_agent=no
14222 rm conftest.$ac_ext
14223 LIBS=$ac_func_search_save_LIBS
14225 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14226 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14227 ac_res=$ac_cv_search_op_open_agent
14228 if test "$ac_res" != no; then
14229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14233 echo "Error! You need to have libopagent around."
14238 if test "${ac_cv_header_opagent_h+set}" = set; then
14239 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14240 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14241 if test "${ac_cv_header_opagent_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14247 # Is the header compilable?
14248 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14249 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 $ac_includes_default
14257 #include <opagent.h>
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_header_compiler=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_header_compiler=no
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303 echo "${ECHO_T}$ac_header_compiler" >&6; }
14305 # Is the header present?
14306 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14307 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 #include <opagent.h>
14316 if { (ac_try="$ac_cpp conftest.$ac_ext"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null; then
14329 if test -s conftest.err; then
14330 ac_cpp_err=$ac_c_preproc_warn_flag
14331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14338 if test -z "$ac_cpp_err"; then
14339 ac_header_preproc=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_header_preproc=no
14347 rm -f conftest.err conftest.$ac_ext
14348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14349 echo "${ECHO_T}$ac_header_preproc" >&6; }
14351 # So? What about this header?
14352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14354 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14355 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14357 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14358 ac_header_preproc=yes
14361 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14362 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14364 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14366 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14368 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14370 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14372 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14374 ## ----------------------------------- ##
14375 ## Report this to llvmbugs@cs.uiuc.edu ##
14376 ## ----------------------------------- ##
14378 ) | sed "s/^/$as_me: WARNING: /" >&2
14381 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14382 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14383 if test "${ac_cv_header_opagent_h+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 ac_cv_header_opagent_h=$ac_header_preproc
14388 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14389 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14392 if test $ac_cv_header_opagent_h = yes; then
14396 echo "Error! You need to have opagent.h around."
14412 cat >>confdefs.h <<_ACEOF
14413 #define USE_OPROFILE $USE_OPROFILE
14423 ac_header_dirent=no
14424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14425 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14426 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14427 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <sys/types.h>
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_compile") 2>conftest.er1
14458 grep -v '^ *+' conftest.er1 >conftest.err
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_try") 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 eval "$as_ac_Header=yes"
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 eval "$as_ac_Header=no"
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 ac_res=`eval echo '${'$as_ac_Header'}'`
14494 { echo "$as_me:$LINENO: result: $ac_res" >&5
14495 echo "${ECHO_T}$ac_res" >&6; }
14496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14497 cat >>confdefs.h <<_ACEOF
14498 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14501 ac_header_dirent=$ac_hdr; break
14505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14506 if test $ac_header_dirent = dirent.h; then
14507 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14508 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14509 if test "${ac_cv_search_opendir+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_func_search_save_LIBS=$LIBS
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14520 /* Override any GCC internal prototype to avoid an error.
14521 Use char because int might match the return type of a GCC
14522 builtin and then its argument prototype would still apply. */
14535 for ac_lib in '' dir; do
14536 if test -z "$ac_lib"; then
14537 ac_res="none required"
14540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest$ac_exeext'
14567 { (case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_try") 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_cv_search_opendir=$ac_res
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14584 rm -f core conftest.err conftest.$ac_objext \
14586 if test "${ac_cv_search_opendir+set}" = set; then
14590 if test "${ac_cv_search_opendir+set}" = set; then
14593 ac_cv_search_opendir=no
14595 rm conftest.$ac_ext
14596 LIBS=$ac_func_search_save_LIBS
14598 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14599 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14600 ac_res=$ac_cv_search_opendir
14601 if test "$ac_res" != no; then
14602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14607 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609 if test "${ac_cv_search_opendir+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 ac_func_search_save_LIBS=$LIBS
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14620 /* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14635 for ac_lib in '' x; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_search_opendir=$ac_res
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14684 rm -f core conftest.err conftest.$ac_objext \
14686 if test "${ac_cv_search_opendir+set}" = set; then
14690 if test "${ac_cv_search_opendir+set}" = set; then
14693 ac_cv_search_opendir=no
14695 rm conftest.$ac_ext
14696 LIBS=$ac_func_search_save_LIBS
14698 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14700 ac_res=$ac_cv_search_opendir
14701 if test "$ac_res" != no; then
14702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14708 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14709 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14710 if test "${ac_cv_header_mmap_anon+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 ac_cpp='$CPP $CPPFLAGS'
14715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <sys/mman.h>
14726 #include <unistd.h>
14731 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_cv_header_mmap_anon=yes
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_cv_header_mmap_anon=no
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 ac_cpp='$CPP $CPPFLAGS'
14781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14788 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14789 if test "$ac_cv_header_mmap_anon" = yes; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_MMAP_ANONYMOUS 1
14797 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14798 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14799 if test "${ac_cv_header_stat_broken+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/types.h>
14809 #include <sys/stat.h>
14811 #if defined S_ISBLK && defined S_IFDIR
14812 # if S_ISBLK (S_IFDIR)
14817 #if defined S_ISBLK && defined S_IFCHR
14818 # if S_ISBLK (S_IFCHR)
14823 #if defined S_ISLNK && defined S_IFREG
14824 # if S_ISLNK (S_IFREG)
14829 #if defined S_ISSOCK && defined S_IFREG
14830 # if S_ISSOCK (S_IFREG)
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "You lose" >/dev/null 2>&1; then
14838 ac_cv_header_stat_broken=yes
14840 ac_cv_header_stat_broken=no
14845 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14847 if test $ac_cv_header_stat_broken = yes; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define STAT_MACROS_BROKEN 1
14855 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14857 if test "${ac_cv_header_stdc+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <stdlib.h>
14867 #include <stdarg.h>
14868 #include <string.h>
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14894 { (case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_try") 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_cv_header_stdc=yes
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ac_cv_header_stdc=no
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 if test $ac_cv_header_stdc = yes; then
14924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <string.h>
14934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14935 $EGREP "memchr" >/dev/null 2>&1; then
14938 ac_cv_header_stdc=no
14944 if test $ac_cv_header_stdc = yes; then
14945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <stdlib.h>
14955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14956 $EGREP "free" >/dev/null 2>&1; then
14959 ac_cv_header_stdc=no
14965 if test $ac_cv_header_stdc = yes; then
14966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14967 if test "$cross_compiling" = yes; then
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14977 #include <stdlib.h>
14978 #if ((' ' & 0x0FF) == 0x020)
14979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14982 # define ISLOWER(c) \
14983 (('a' <= (c) && (c) <= 'i') \
14984 || ('j' <= (c) && (c) <= 'r') \
14985 || ('s' <= (c) && (c) <= 'z'))
14986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14994 for (i = 0; i < 256; i++)
14995 if (XOR (islower (i), ISLOWER (i))
14996 || toupper (i) != TOUPPER (i))
15001 rm -f conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15023 echo "$as_me: program exited with status $ac_status" >&5
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ( exit $ac_status )
15028 ac_cv_header_stdc=no
15030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15038 if test $ac_cv_header_stdc = yes; then
15040 cat >>confdefs.h <<\_ACEOF
15041 #define STDC_HEADERS 1
15046 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15047 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15048 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
15058 #include <sys/wait.h>
15059 #ifndef WEXITSTATUS
15060 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15063 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15071 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_header_sys_wait_h=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_cv_header_sys_wait_h=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15121 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15122 if test $ac_cv_header_sys_wait_h = yes; then
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_SYS_WAIT_H 1
15130 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15131 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15132 if test "${ac_cv_header_time+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <sys/types.h>
15142 #include <sys/time.h>
15148 if ((struct tm *) 0)
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_header_time=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_cv_header_time=no
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15199 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15200 if test $ac_cv_header_time = yes; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define TIME_WITH_SYS_TIME 1
15215 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15228 # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ## ----------------------------------- ##
15356 ## Report this to llvmbugs@cs.uiuc.edu ##
15357 ## ----------------------------------- ##
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 eval "$as_ac_Header=\$ac_header_preproc"
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15389 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15402 # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <$ac_header>
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_preproc=no
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15506 # So? What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529 ## ----------------------------------- ##
15530 ## Report this to llvmbugs@cs.uiuc.edu ##
15531 ## ----------------------------------- ##
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 eval "$as_ac_Header=\$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15559 for ac_header in utime.h windows.h
15561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569 { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15572 # Is the header compilable?
15573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 $ac_includes_default
15582 #include <$ac_header>
15584 rm -f conftest.$ac_objext
15585 if { (ac_try="$ac_compile"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_try") 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler=yes
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_header_compiler=no
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628 echo "${ECHO_T}$ac_header_compiler" >&6; }
15630 # Is the header present?
15631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <$ac_header>
15641 if { (ac_try="$ac_cpp conftest.$ac_ext"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev/null; then
15654 if test -s conftest.err; then
15655 ac_cpp_err=$ac_c_preproc_warn_flag
15656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15663 if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_header_preproc=no
15672 rm -f conftest.err conftest.$ac_ext
15673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674 echo "${ECHO_T}$ac_header_preproc" >&6; }
15676 # So? What about this header?
15677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683 ac_header_preproc=yes
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699 ## ----------------------------------- ##
15700 ## Report this to llvmbugs@cs.uiuc.edu ##
15701 ## ----------------------------------- ##
15703 ) | sed "s/^/$as_me: WARNING: /" >&2
15706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 eval "$as_ac_Header=\$ac_header_preproc"
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15744 # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <$ac_header>
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_compiler=no
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <$ac_header>
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15835 if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_preproc=no
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15848 # So? What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15871 ## ----------------------------------- ##
15872 ## Report this to llvmbugs@cs.uiuc.edu ##
15873 ## ----------------------------------- ##
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 eval "$as_ac_Header=\$ac_header_preproc"
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15903 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 ac_res=`eval echo '${'$as_ac_Header'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15916 # Is the header compilable?
15917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15919 cat >conftest.$ac_ext <<_ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 $ac_includes_default
15926 #include <$ac_header>
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_header_compiler=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_header_compiler=no
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972 echo "${ECHO_T}$ac_header_compiler" >&6; }
15974 # Is the header present?
15975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <$ac_header>
15985 if { (ac_try="$ac_cpp conftest.$ac_ext"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } >/dev/null; then
15998 if test -s conftest.err; then
15999 ac_cpp_err=$ac_c_preproc_warn_flag
16000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16007 if test -z "$ac_cpp_err"; then
16008 ac_header_preproc=yes
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_header_preproc=no
16016 rm -f conftest.err conftest.$ac_ext
16017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16018 echo "${ECHO_T}$ac_header_preproc" >&6; }
16020 # So? What about this header?
16021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16027 ac_header_preproc=yes
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16043 ## ----------------------------------- ##
16044 ## Report this to llvmbugs@cs.uiuc.edu ##
16045 ## ----------------------------------- ##
16047 ) | sed "s/^/$as_me: WARNING: /" >&2
16050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 eval "$as_ac_Header=\$ac_header_preproc"
16057 ac_res=`eval echo '${'$as_ac_Header'}'`
16058 { echo "$as_me:$LINENO: result: $ac_res" >&5
16059 echo "${ECHO_T}$ac_res" >&6; }
16062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16063 cat >>confdefs.h <<_ACEOF
16064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071 if test "$ENABLE_THREADS" -eq 1 ; then
16073 for ac_header in pthread.h
16075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 ac_res=`eval echo '${'$as_ac_Header'}'`
16083 { echo "$as_me:$LINENO: result: $ac_res" >&5
16084 echo "${ECHO_T}$ac_res" >&6; }
16086 # Is the header compilable?
16087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 $ac_includes_default
16096 #include <$ac_header>
16098 rm -f conftest.$ac_objext
16099 if { (ac_try="$ac_compile"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_compile") 2>conftest.er1
16107 grep -v '^ *+' conftest.er1 >conftest.err
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16113 { (case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_try") 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_try") 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_header_compiler=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_compiler=no
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16142 echo "${ECHO_T}$ac_header_compiler" >&6; }
16144 # Is the header present?
16145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 #include <$ac_header>
16155 if { (ac_try="$ac_cpp conftest.$ac_ext"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } >/dev/null; then
16168 if test -s conftest.err; then
16169 ac_cpp_err=$ac_c_preproc_warn_flag
16170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16177 if test -z "$ac_cpp_err"; then
16178 ac_header_preproc=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_header_preproc=no
16186 rm -f conftest.err conftest.$ac_ext
16187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16188 echo "${ECHO_T}$ac_header_preproc" >&6; }
16190 # So? What about this header?
16191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16197 ac_header_preproc=yes
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16213 ## ----------------------------------- ##
16214 ## Report this to llvmbugs@cs.uiuc.edu ##
16215 ## ----------------------------------- ##
16217 ) | sed "s/^/$as_me: WARNING: /" >&2
16220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 eval "$as_ac_Header=\$ac_header_preproc"
16227 ac_res=`eval echo '${'$as_ac_Header'}'`
16228 { echo "$as_me:$LINENO: result: $ac_res" >&5
16229 echo "${ECHO_T}$ac_res" >&6; }
16232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16250 if test "$llvm_cv_enable_libffi" = "yes" ; then
16253 for ac_header in ffi.h ffi/ffi.h
16255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 ac_res=`eval echo '${'$as_ac_Header'}'`
16263 { echo "$as_me:$LINENO: result: $ac_res" >&5
16264 echo "${ECHO_T}$ac_res" >&6; }
16266 # Is the header compilable?
16267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16269 cat >conftest.$ac_ext <<_ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16275 $ac_includes_default
16276 #include <$ac_header>
16278 rm -f conftest.$ac_objext
16279 if { (ac_try="$ac_compile"
16280 case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest.$ac_objext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler=yes
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_compiler=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324 # Is the header present?
16325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <$ac_header>
16335 if { (ac_try="$ac_cpp conftest.$ac_ext"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1 >conftest.err
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev/null; then
16348 if test -s conftest.err; then
16349 ac_cpp_err=$ac_c_preproc_warn_flag
16350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16357 if test -z "$ac_cpp_err"; then
16358 ac_header_preproc=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_header_preproc=no
16366 rm -f conftest.err conftest.$ac_ext
16367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16370 # So? What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc=yes
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16393 ## ----------------------------------- ##
16394 ## Report this to llvmbugs@cs.uiuc.edu ##
16395 ## ----------------------------------- ##
16397 ) | sed "s/^/$as_me: WARNING: /" >&2
16400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 eval "$as_ac_Header=\$ac_header_preproc"
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16426 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16427 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16428 if test "${ac_cv_huge_val_sanity+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 ac_cpp='$CXXCPP $CPPFLAGS'
16434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16439 if test "$cross_compiling" = yes; then
16440 ac_cv_huge_val_sanity=yes
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16452 double x = HUGE_VAL; return x != x;
16457 rm -f conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_cv_huge_val_sanity=yes
16479 echo "$as_me: program exited with status $ac_status" >&5
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ( exit $ac_status )
16484 ac_cv_huge_val_sanity=no
16486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16498 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16499 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16500 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16503 { echo "$as_me:$LINENO: checking for pid_t" >&5
16504 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16505 if test "${ac_cv_type_pid_t+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 $ac_includes_default
16515 typedef pid_t ac__type_new_;
16519 if ((ac__type_new_ *) 0)
16521 if (sizeof (ac__type_new_))
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_compile") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest.$ac_objext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_type_pid_t=yes
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_type_pid_t=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16572 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16573 if test $ac_cv_type_pid_t = yes; then
16577 cat >>confdefs.h <<_ACEOF
16583 { echo "$as_me:$LINENO: checking for size_t" >&5
16584 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16585 if test "${ac_cv_type_size_t+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 typedef size_t ac__type_new_;
16599 if ((ac__type_new_ *) 0)
16601 if (sizeof (ac__type_new_))
16607 rm -f conftest.$ac_objext
16608 if { (ac_try="$ac_compile"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_type_size_t=yes
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_cv_type_size_t=no
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16653 if test $ac_cv_type_size_t = yes; then
16657 cat >>confdefs.h <<_ACEOF
16658 #define size_t unsigned int
16664 cat >>confdefs.h <<_ACEOF
16665 #define RETSIGTYPE void
16668 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16670 if test "${ac_cv_struct_tm+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <sys/types.h>
16685 struct tm *tp; tp->tm_sec;
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_struct_tm=time.h
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_struct_tm=sys/time.h
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16735 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16736 if test $ac_cv_struct_tm = sys/time.h; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define TM_IN_SYS_TIME 1
16744 { echo "$as_me:$LINENO: checking for int64_t" >&5
16745 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16746 if test "${ac_cv_type_int64_t+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 typedef int64_t ac__type_new_;
16760 if ((ac__type_new_ *) 0)
16762 if (sizeof (ac__type_new_))
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_type_int64_t=yes
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_type_int64_t=no
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16813 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16814 if test $ac_cv_type_int64_t = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_INT64_T 1
16822 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16823 echo "$as_me: error: Type int64_t required but not found" >&2;}
16824 { (exit 1); exit 1; }; }
16827 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16828 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16829 if test "${ac_cv_type_uint64_t+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 $ac_includes_default
16839 typedef uint64_t ac__type_new_;
16843 if ((ac__type_new_ *) 0)
16845 if (sizeof (ac__type_new_))
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_uint64_t=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_cv_type_uint64_t=no
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16896 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16897 if test $ac_cv_type_uint64_t = yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_UINT64_T 1
16905 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16906 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16907 if test "${ac_cv_type_u_int64_t+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $ac_includes_default
16917 typedef u_int64_t ac__type_new_;
16921 if ((ac__type_new_ *) 0)
16923 if (sizeof (ac__type_new_))
16929 rm -f conftest.$ac_objext
16930 if { (ac_try="$ac_compile"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_compile") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_type_u_int64_t=yes
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_cv_type_u_int64_t=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16974 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16975 if test $ac_cv_type_u_int64_t = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_U_INT64_T 1
16983 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16984 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16985 { (exit 1); exit 1; }; }
16999 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17015 #define $ac_func innocuous_$ac_func
17017 /* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char $ac_func (); below.
17019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020 <limits.h> exists even on freestanding compilers. */
17023 # include <limits.h>
17025 # include <assert.h>
17030 /* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
17037 /* The GNU C library defines this for functions which it implements
17038 to always fail with ENOSYS. Some functions are actually named
17039 something starting with __ and the normal name is an alias. */
17040 #if defined __stub_$ac_func || defined __stub___$ac_func
17047 return $ac_func ();
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>conftest.er1
17061 grep -v '^ *+' conftest.er1 >conftest.err
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; } &&
17076 { ac_try='test -s conftest$ac_exeext'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 eval "$as_ac_var=yes"
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 eval "$as_ac_var=no"
17094 rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17097 ac_res=`eval echo '${'$as_ac_var'}'`
17098 { echo "$as_me:$LINENO: result: $ac_res" >&5
17099 echo "${ECHO_T}$ac_res" >&6; }
17100 if test `eval echo '${'$as_ac_var'}'` = yes; then
17101 cat >>confdefs.h <<_ACEOF
17102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17112 for ac_func in powf fmodf strtof round
17114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 cat >conftest.$ac_ext <<_ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17128 #define $ac_func innocuous_$ac_func
17130 /* System header to define __stub macros and hopefully few prototypes,
17131 which can conflict with char $ac_func (); below.
17132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133 <limits.h> exists even on freestanding compilers. */
17136 # include <limits.h>
17138 # include <assert.h>
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17150 /* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153 #if defined __stub_$ac_func || defined __stub___$ac_func
17160 return $ac_func ();
17165 rm -f conftest.$ac_objext conftest$ac_exeext
17166 if { (ac_try="$ac_link"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_link") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 eval "$as_ac_var=yes"
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 eval "$as_ac_var=no"
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17210 ac_res=`eval echo '${'$as_ac_var'}'`
17211 { echo "$as_me:$LINENO: result: $ac_res" >&5
17212 echo "${ECHO_T}$ac_res" >&6; }
17213 if test `eval echo '${'$as_ac_var'}'` = yes; then
17214 cat >>confdefs.h <<_ACEOF
17215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17226 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17242 #define $ac_func innocuous_$ac_func
17244 /* System header to define __stub macros and hopefully few prototypes,
17245 which can conflict with char $ac_func (); below.
17246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17247 <limits.h> exists even on freestanding compilers. */
17250 # include <limits.h>
17252 # include <assert.h>
17257 /* Override any GCC internal prototype to avoid an error.
17258 Use char because int might match the return type of a GCC
17259 builtin and then its argument prototype would still apply. */
17264 /* The GNU C library defines this for functions which it implements
17265 to always fail with ENOSYS. Some functions are actually named
17266 something starting with __ and the normal name is an alias. */
17267 #if defined __stub_$ac_func || defined __stub___$ac_func
17274 return $ac_func ();
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (ac_try="$ac_link"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_link") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
17304 { (case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_try") 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 eval "$as_ac_var=yes"
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 eval "$as_ac_var=no"
17321 rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17324 ac_res=`eval echo '${'$as_ac_var'}'`
17325 { echo "$as_me:$LINENO: result: $ac_res" >&5
17326 echo "${ECHO_T}$ac_res" >&6; }
17327 if test `eval echo '${'$as_ac_var'}'` = yes; then
17328 cat >>confdefs.h <<_ACEOF
17329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17338 for ac_func in isatty mkdtemp mkstemp
17340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17354 #define $ac_func innocuous_$ac_func
17356 /* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func (); below.
17358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17359 <limits.h> exists even on freestanding compilers. */
17362 # include <limits.h>
17364 # include <assert.h>
17369 /* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17376 /* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379 #if defined __stub_$ac_func || defined __stub___$ac_func
17386 return $ac_func ();
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (ac_try="$ac_link"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_link") 2>conftest.er1
17400 grep -v '^ *+' conftest.er1 >conftest.err
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 eval "$as_ac_var=yes"
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 eval "$as_ac_var=no"
17433 rm -f core conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
17436 ac_res=`eval echo '${'$as_ac_var'}'`
17437 { echo "$as_me:$LINENO: result: $ac_res" >&5
17438 echo "${ECHO_T}$ac_res" >&6; }
17439 if test `eval echo '${'$as_ac_var'}'` = yes; then
17440 cat >>confdefs.h <<_ACEOF
17441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17452 for ac_func in mktemp realpath sbrk setrlimit strdup
17454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define $ac_func innocuous_$ac_func
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char $ac_func (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17476 # include <limits.h>
17478 # include <assert.h>
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17490 /* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493 #if defined __stub_$ac_func || defined __stub___$ac_func
17500 return $ac_func ();
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 eval "$as_ac_var=yes"
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 eval "$as_ac_var=no"
17547 rm -f core conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17550 ac_res=`eval echo '${'$as_ac_var'}'`
17551 { echo "$as_me:$LINENO: result: $ac_res" >&5
17552 echo "${ECHO_T}$ac_res" >&6; }
17553 if test `eval echo '${'$as_ac_var'}'` = yes; then
17554 cat >>confdefs.h <<_ACEOF
17555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17565 for ac_func in strerror strerror_r strerror_s setenv
17567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581 #define $ac_func innocuous_$ac_func
17583 /* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char $ac_func (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17589 # include <limits.h>
17591 # include <assert.h>
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17603 /* The GNU C library defines this for functions which it implements
17604 to always fail with ENOSYS. Some functions are actually named
17605 something starting with __ and the normal name is an alias. */
17606 #if defined __stub_$ac_func || defined __stub___$ac_func
17613 return $ac_func ();
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (ac_try="$ac_link"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_link") 2>conftest.er1
17627 grep -v '^ *+' conftest.er1 >conftest.err
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
17643 { (case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_try") 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 eval "$as_ac_var=yes"
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 eval "$as_ac_var=no"
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17663 ac_res=`eval echo '${'$as_ac_var'}'`
17664 { echo "$as_me:$LINENO: result: $ac_res" >&5
17665 echo "${ECHO_T}$ac_res" >&6; }
17666 if test `eval echo '${'$as_ac_var'}'` = yes; then
17667 cat >>confdefs.h <<_ACEOF
17668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17678 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define $ac_func innocuous_$ac_func
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17702 # include <limits.h>
17704 # include <assert.h>
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17726 return $ac_func ();
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 eval "$as_ac_var=yes"
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 eval "$as_ac_var=no"
17773 rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17776 ac_res=`eval echo '${'$as_ac_var'}'`
17777 { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_var'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17791 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17807 #define $ac_func innocuous_$ac_func
17809 /* System header to define __stub macros and hopefully few prototypes,
17810 which can conflict with char $ac_func (); below.
17811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812 <limits.h> exists even on freestanding compilers. */
17815 # include <limits.h>
17817 # include <assert.h>
17822 /* Override any GCC internal prototype to avoid an error.
17823 Use char because int might match the return type of a GCC
17824 builtin and then its argument prototype would still apply. */
17829 /* The GNU C library defines this for functions which it implements
17830 to always fail with ENOSYS. Some functions are actually named
17831 something starting with __ and the normal name is an alias. */
17832 #if defined __stub_$ac_func || defined __stub___$ac_func
17839 return $ac_func ();
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (ac_try="$ac_link"
17846 case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_link") 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
17858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest$ac_exeext'
17869 { (case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_try") 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 eval "$as_ac_var=yes"
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 eval "$as_ac_var=no"
17886 rm -f core conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17889 ac_res=`eval echo '${'$as_ac_var'}'`
17890 { echo "$as_me:$LINENO: result: $ac_res" >&5
17891 echo "${ECHO_T}$ac_res" >&6; }
17892 if test `eval echo '${'$as_ac_var'}'` = yes; then
17893 cat >>confdefs.h <<_ACEOF
17894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17900 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17901 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17902 if test "${llvm_cv_c_printf_a+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 ac_cpp='$CPP $CPPFLAGS'
17907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17911 if test "$cross_compiling" = yes; then
17912 llvmac_cv_c_printf_a=no
17914 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17923 #include <stdlib.h>
17929 volatile double A, B;
17933 sprintf(Buffer, "%a", A);
17937 if (A != 0x1.999999999999ap-4)
17944 rm -f conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_link") 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17955 { (case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_try") 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 llvm_cv_c_printf_a=yes
17966 echo "$as_me: program exited with status $ac_status" >&5
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ( exit $ac_status )
17971 llvmac_cv_c_printf_a=no
17973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17978 ac_cpp='$CPP $CPPFLAGS'
17979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17984 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17985 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17986 if test "$llvm_cv_c_printf_a" = "yes"; then
17988 cat >>confdefs.h <<\_ACEOF
17989 #define HAVE_PRINTF_A 1
17995 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17996 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17997 if test "${ac_cv_func_rand48+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 ac_cpp='$CXXCPP $CPPFLAGS'
18002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <stdlib.h>
18016 srand48(0);lrand48();drand48();
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_func_rand48=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_func_rand48=no
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18071 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18072 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18074 if test "$ac_cv_func_rand48" = "yes" ; then
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_RAND48 1
18084 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18085 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18086 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_compile") 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18125 { (case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_try") 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_try") 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_cv_func_isnan_in_math_h=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_cv_func_isnan_in_math_h=no
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154 ac_cpp='$CPP $CPPFLAGS'
18155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18160 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18161 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18164 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_ISNAN_IN_MATH_H 1
18172 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18173 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18174 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 ac_cpp='$CXXCPP $CPPFLAGS'
18179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18198 rm -f conftest.$ac_objext
18199 if { (ac_try="$ac_compile"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_compile") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1 >conftest.err
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 ac_cv_func_isnan_in_cmath=yes
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 ac_cv_func_isnan_in_cmath=no
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18242 ac_cpp='$CPP $CPPFLAGS'
18243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18249 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18251 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18253 cat >>confdefs.h <<\_ACEOF
18254 #define HAVE_ISNAN_IN_CMATH 1
18259 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18260 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18261 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 ac_cpp='$CXXCPP $CPPFLAGS'
18266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18280 float f; std::isnan(f);
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_func_std_isnan_in_cmath=yes
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_cv_func_std_isnan_in_cmath=no
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18335 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18336 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18338 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18340 cat >>confdefs.h <<\_ACEOF
18341 #define HAVE_STD_ISNAN_IN_CMATH 1
18347 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18348 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18349 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18358 cat >conftest.$ac_ext <<_ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18373 rm -f conftest.$ac_objext
18374 if { (ac_try="$ac_compile"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_compile") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_func_isinf_in_math_h=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_func_isinf_in_math_h=no
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 ac_cpp='$CPP $CPPFLAGS'
18418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18423 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18424 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18426 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE_ISINF_IN_MATH_H 1
18434 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18435 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18436 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 ac_cpp='$CXXCPP $CPPFLAGS'
18441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18460 rm -f conftest.$ac_objext
18461 if { (ac_try="$ac_compile"
18462 case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_compile") 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18475 { (case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_try") 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest.$ac_objext'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 ac_cv_func_isinf_in_cmath=yes
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ac_cv_func_isinf_in_cmath=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 ac_cpp='$CPP $CPPFLAGS'
18505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18511 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18513 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18515 cat >>confdefs.h <<\_ACEOF
18516 #define HAVE_ISINF_IN_CMATH 1
18521 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18522 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18523 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 ac_cpp='$CXXCPP $CPPFLAGS'
18528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18542 float f; std::isinf(f)}
18547 rm -f conftest.$ac_objext
18548 if { (ac_try="$ac_compile"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_func_std_isinf_in_cmath=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_func_std_isinf_in_cmath=no
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18597 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18598 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18600 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18602 cat >>confdefs.h <<\_ACEOF
18603 #define HAVE_STD_ISINF_IN_CMATH 1
18608 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18609 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18610 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 ac_cpp='$CXXCPP $CPPFLAGS'
18615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <ieeefp.h>
18629 float f; finite(f);
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_compile") 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest.$ac_objext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_func_finite_in_ieeefp_h=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 ac_cv_func_finite_in_ieeefp_h=no
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678 ac_cpp='$CPP $CPPFLAGS'
18679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18684 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18685 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18687 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18689 cat >>confdefs.h <<\_ACEOF
18690 #define HAVE_FINITE_IN_IEEEFP_H 1
18697 if test "$llvm_cv_platform_type" = "Unix" ; then
18700 for ac_header in stdlib.h unistd.h
18702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 ac_res=`eval echo '${'$as_ac_Header'}'`
18710 { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18713 # Is the header compilable?
18714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 $ac_includes_default
18723 #include <$ac_header>
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_header_compiler=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_header_compiler=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18769 echo "${ECHO_T}$ac_header_compiler" >&6; }
18771 # Is the header present?
18772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <$ac_header>
18782 if { (ac_try="$ac_cpp conftest.$ac_ext"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null; then
18795 if test -s conftest.err; then
18796 ac_cpp_err=$ac_c_preproc_warn_flag
18797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18804 if test -z "$ac_cpp_err"; then
18805 ac_header_preproc=yes
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_header_preproc=no
18813 rm -f conftest.err conftest.$ac_ext
18814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18815 echo "${ECHO_T}$ac_header_preproc" >&6; }
18817 # So? What about this header?
18818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18824 ac_header_preproc=yes
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18840 ## ----------------------------------- ##
18841 ## Report this to llvmbugs@cs.uiuc.edu ##
18842 ## ----------------------------------- ##
18844 ) | sed "s/^/$as_me: WARNING: /" >&2
18847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 eval "$as_ac_Header=\$ac_header_preproc"
18854 ac_res=`eval echo '${'$as_ac_Header'}'`
18855 { echo "$as_me:$LINENO: result: $ac_res" >&5
18856 echo "${ECHO_T}$ac_res" >&6; }
18859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18860 cat >>confdefs.h <<_ACEOF
18861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18869 for ac_func in getpagesize
18871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18893 # include <limits.h>
18895 # include <assert.h>
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18917 return $ac_func ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_try") 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest$ac_exeext'
18947 { (case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_try") 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 eval "$as_ac_var=yes"
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 eval "$as_ac_var=no"
18964 rm -f core conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext conftest.$ac_ext
18967 ac_res=`eval echo '${'$as_ac_var'}'`
18968 { echo "$as_me:$LINENO: result: $ac_res" >&5
18969 echo "${ECHO_T}$ac_res" >&6; }
18970 if test `eval echo '${'$as_ac_var'}'` = yes; then
18971 cat >>confdefs.h <<_ACEOF
18972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18978 { echo "$as_me:$LINENO: checking for working mmap" >&5
18979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 if test "$cross_compiling" = yes; then
18984 ac_cv_func_mmap_fixed_mapped=no
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18993 /* malloc might have been renamed as rpl_malloc. */
18996 /* Thanks to Mike Haertel and Jim Avera for this test.
18997 Here is a matrix of mmap possibilities:
18998 mmap private not fixed
18999 mmap private fixed at somewhere currently unmapped
19000 mmap private fixed at somewhere already mapped
19001 mmap shared not fixed
19002 mmap shared fixed at somewhere currently unmapped
19003 mmap shared fixed at somewhere already mapped
19004 For private mappings, we should verify that changes cannot be read()
19005 back from the file, nor mmap's back from the file at a different
19006 address. (There have been systems where private was not correctly
19007 implemented like the infamous i386 svr4.0, and systems where the
19008 VM page cache was not coherent with the file system buffer cache
19009 like early versions of FreeBSD and possibly contemporary NetBSD.)
19010 For shared mappings, we should conversely verify that changes get
19011 propagated back to all the places they're supposed to be.
19013 Grep wants private fixed already mapped.
19014 The main things grep needs to know about mmap are:
19015 * does it exist and is it safe to write into the mmap'd area
19016 * how to use it (BSD variants) */
19019 #include <sys/mman.h>
19021 #if !STDC_HEADERS && !HAVE_STDLIB_H
19025 /* This mess was copied from the GNU getpagesize.h. */
19026 #if !HAVE_GETPAGESIZE
19027 /* Assume that all systems that can run configure have sys/param.h. */
19028 # if !HAVE_SYS_PARAM_H
19029 # define HAVE_SYS_PARAM_H 1
19032 # ifdef _SC_PAGESIZE
19033 # define getpagesize() sysconf(_SC_PAGESIZE)
19034 # else /* no _SC_PAGESIZE */
19035 # if HAVE_SYS_PARAM_H
19036 # include <sys/param.h>
19037 # ifdef EXEC_PAGESIZE
19038 # define getpagesize() EXEC_PAGESIZE
19039 # else /* no EXEC_PAGESIZE */
19041 # define getpagesize() NBPG * CLSIZE
19044 # endif /* no CLSIZE */
19045 # else /* no NBPG */
19047 # define getpagesize() NBPC
19048 # else /* no NBPC */
19050 # define getpagesize() PAGESIZE
19051 # endif /* PAGESIZE */
19052 # endif /* no NBPC */
19053 # endif /* no NBPG */
19054 # endif /* no EXEC_PAGESIZE */
19055 # else /* no HAVE_SYS_PARAM_H */
19056 # define getpagesize() 8192 /* punt totally */
19057 # endif /* no HAVE_SYS_PARAM_H */
19058 # endif /* no _SC_PAGESIZE */
19060 #endif /* no HAVE_GETPAGESIZE */
19065 char *data, *data2, *data3;
19069 pagesize = getpagesize ();
19071 /* First, make a file with some known garbage in it. */
19072 data = (char *) malloc (pagesize);
19075 for (i = 0; i < pagesize; ++i)
19076 *(data + i) = rand ();
19078 fd = creat ("conftest.mmap", 0600);
19081 if (write (fd, data, pagesize) != pagesize)
19085 /* Next, try to mmap the file at a fixed address which already has
19086 something else allocated at it. If we can, also make sure that
19087 we see the same garbage. */
19088 fd = open ("conftest.mmap", O_RDWR);
19091 data2 = (char *) malloc (2 * pagesize);
19094 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19098 for (i = 0; i < pagesize; ++i)
19099 if (*(data + i) != *(data2 + i))
19102 /* Finally, make sure that changes to the mapped area do not
19103 percolate back to the file as seen by read(). (This is a bug on
19104 some variants of i386 svr4.0.) */
19105 for (i = 0; i < pagesize; ++i)
19106 *(data2 + i) = *(data2 + i) + 1;
19107 data3 = (char *) malloc (pagesize);
19110 if (read (fd, data3, pagesize) != pagesize)
19112 for (i = 0; i < pagesize; ++i)
19113 if (*(data + i) != *(data3 + i))
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_cv_func_mmap_fixed_mapped=yes
19141 echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ( exit $ac_status )
19146 ac_cv_func_mmap_fixed_mapped=no
19148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19153 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19154 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_MMAP 1
19162 rm -f conftest.mmap
19164 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19165 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19166 if test "${ac_cv_func_mmap_file+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 ac_cpp='$CPP $CPPFLAGS'
19171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19175 if test "$cross_compiling" = yes; then
19176 ac_cv_func_mmap_file=no
19178 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19186 #include <sys/types.h>
19187 #include <sys/mman.h>
19195 fd = creat ("foo",0777);
19196 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19198 return (fd != (int) MAP_FAILED);
19203 rm -f conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_cv_func_mmap_file=yes
19225 echo "$as_me: program exited with status $ac_status" >&5
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ( exit $ac_status )
19230 ac_cv_func_mmap_file=no
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19237 ac_cpp='$CPP $CPPFLAGS'
19238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19245 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19246 if test "$ac_cv_func_mmap_file" = yes; then
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_MMAP_FILE
19256 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19257 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19258 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 if test "$llvm_cv_os_type" = "Interix" ; then
19262 ac_cv_need_dev_zero_for_mmap=yes
19264 ac_cv_need_dev_zero_for_mmap=no
19268 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19269 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19270 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19272 cat >>confdefs.h <<\_ACEOF
19273 #define NEED_DEV_ZERO_FOR_MMAP 1
19278 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19280 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19281 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19283 if test "$ac_cv_func_mmap_file" = "no"
19285 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19286 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19290 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19291 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19299 volatile unsigned long val = 1;
19300 __sync_synchronize();
19301 __sync_val_compare_and_swap(&val, 1, 0);
19302 __sync_add_and_fetch(&val, 1);
19303 __sync_sub_and_fetch(&val, 1);
19308 rm -f conftest.$ac_objext 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>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 { echo "$as_me:$LINENO: result: yes" >&5
19343 echo "${ECHO_T}yes" >&6; }
19345 cat >>confdefs.h <<\_ACEOF
19346 #define LLVM_MULTITHREADED 1
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 { echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6; }
19356 cat >>confdefs.h <<\_ACEOF
19357 #define LLVM_MULTITHREADED 0
19360 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19361 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19364 rm -f core conftest.err conftest.$ac_objext \
19365 conftest$ac_exeext conftest.$ac_ext
19369 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19370 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19371 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19372 if test "${llvm_cv_linux_mixed+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 ac_cpp='$CPP $CPPFLAGS'
19377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 error: Not x86-64 even if uname says so!
19399 rm -f conftest.$ac_objext
19400 if { (ac_try="$ac_compile"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_compile") 2>conftest.er1
19408 grep -v '^ *+' conftest.er1 >conftest.err
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19414 { (case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest.$ac_objext'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 llvm_cv_linux_mixed=no
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 llvm_cv_linux_mixed=yes
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19450 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19451 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19453 if test "$llvm_cv_linux_mixed" = "yes"; then
19454 llvm_cv_target_arch="x86"
19460 for ac_func in __dso_handle
19462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19476 #define $ac_func innocuous_$ac_func
19478 /* System header to define __stub macros and hopefully few prototypes,
19479 which can conflict with char $ac_func (); below.
19480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19481 <limits.h> exists even on freestanding compilers. */
19484 # include <limits.h>
19486 # include <assert.h>
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19498 /* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501 #if defined __stub_$ac_func || defined __stub___$ac_func
19508 return $ac_func ();
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (ac_try="$ac_link"
19515 case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_link") 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest$ac_exeext'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 eval "$as_ac_var=yes"
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 eval "$as_ac_var=no"
19555 rm -f core conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19558 ac_res=`eval echo '${'$as_ac_var'}'`
19559 { echo "$as_me:$LINENO: result: $ac_res" >&5
19560 echo "${ECHO_T}$ac_res" >&6; }
19561 if test `eval echo '${'$as_ac_var'}'` = yes; then
19562 cat >>confdefs.h <<_ACEOF
19563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19570 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19571 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19572 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 llvm_cv_llvmgcc_sanity="no"
19576 if test -x "$LLVMGCC" ; then
19577 cp /dev/null conftest.c
19578 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19579 grep 'target datalayout =' > /dev/null 2>&1
19580 if test $? -eq 0 ; then
19581 llvm_cv_llvmgcc_sanity="yes"
19586 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19587 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19589 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19590 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19591 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19592 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19593 LLVMCC1=$llvmcc1path
19595 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19596 LLVMCC1PLUS=$llvmcc1pluspath
19598 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19599 LLVMGCCDIR=$llvmgccdir
19601 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19602 LLVMGCCLIBEXEC=$llvmgcclibexec
19604 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
19605 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19606 LLVMGCC_VERSION=$llvmgccversion
19608 LLVMGCC_MAJVERS=$llvmgccmajvers
19610 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19611 LLVMGCC_LANGS=$llvmgcclangs
19613 { echo "$as_me:$LINENO: result: ok" >&5
19614 echo "${ECHO_T}ok" >&6; }
19617 SHLIBEXT=$libltdl_cv_shlibext
19620 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19623 # Translate the various configuration directories and other basic
19624 # information into substitutions that will end up in Makefile.config.in
19625 # that these configured values can be used by the makefiles
19626 if test "${prefix}" = "NONE" ; then
19627 prefix="/usr/local"
19629 eval LLVM_PREFIX="${prefix}";
19630 eval LLVM_BINDIR="${prefix}/bin";
19631 eval LLVM_LIBDIR="${prefix}/lib";
19632 eval LLVM_DATADIR="${prefix}/share/llvm";
19633 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19634 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19635 eval LLVM_INCLUDEDIR="${prefix}/include";
19636 eval LLVM_INFODIR="${prefix}/info";
19637 eval LLVM_MANDIR="${prefix}/man";
19638 LLVM_CONFIGTIME=`date`
19650 # Place the various directores into the config.h file as #defines so that we
19651 # can know about the installation paths within LLVM.
19653 cat >>confdefs.h <<_ACEOF
19654 #define LLVM_PREFIX "$LLVM_PREFIX"
19658 cat >>confdefs.h <<_ACEOF
19659 #define LLVM_BINDIR "$LLVM_BINDIR"
19663 cat >>confdefs.h <<_ACEOF
19664 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19668 cat >>confdefs.h <<_ACEOF
19669 #define LLVM_DATADIR "$LLVM_DATADIR"
19673 cat >>confdefs.h <<_ACEOF
19674 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19678 cat >>confdefs.h <<_ACEOF
19679 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19683 cat >>confdefs.h <<_ACEOF
19684 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19688 cat >>confdefs.h <<_ACEOF
19689 #define LLVM_INFODIR "$LLVM_INFODIR"
19693 cat >>confdefs.h <<_ACEOF
19694 #define LLVM_MANDIR "$LLVM_MANDIR"
19698 cat >>confdefs.h <<_ACEOF
19699 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19703 cat >>confdefs.h <<_ACEOF
19704 #define LLVM_HOSTTRIPLE "$host"
19708 # Determine which bindings to build.
19709 if test "$BINDINGS_TO_BUILD" = auto ; then
19710 BINDINGS_TO_BUILD=""
19711 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19712 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19715 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19718 # This isn't really configurey, but it avoids having to repeat the list in
19723 # Do any work necessary to ensure that bindings have what they need.
19724 binding_prereqs_failed=0
19725 for a_binding in $BINDINGS_TO_BUILD ; do
19726 case "$a_binding" in
19728 if test "x$OCAMLC" = x ; then
19729 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19730 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19731 binding_prereqs_failed=1
19733 if test "x$OCAMLDEP" = x ; then
19734 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19735 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19736 binding_prereqs_failed=1
19738 if test "x$OCAMLOPT" = x ; then
19739 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19740 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19742 if test "x$with_ocaml_libdir" != xauto ; then
19743 OCAML_LIBDIR=$with_ocaml_libdir
19746 ocaml_stdlib="`"$OCAMLC" -where`"
19747 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19749 # ocaml stdlib is beneath our prefix; use stdlib
19750 OCAML_LIBDIR=$ocaml_stdlib
19753 # ocaml stdlib is outside our prefix; use libdir/ocaml
19754 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19761 if test "$binding_prereqs_failed" = 1 ; then
19762 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19763 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19764 { (exit 1); exit 1; }; }
19767 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19768 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19769 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778 oldcxxflags="$CXXFLAGS"
19779 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 llvm_cv_cxx_visibility_inlines_hidden=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 llvm_cv_cxx_visibility_inlines_hidden=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 CXXFLAGS="$oldcxxflags"
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19848 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19849 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19850 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19853 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19858 if test "$llvm_cv_link_use_r" = "yes" ; then
19865 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19866 RDYNAMIC="-Wl,-export-dynamic"
19873 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19875 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19877 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19879 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19881 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19883 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19886 ac_config_files="$ac_config_files Makefile.config"
19889 ac_config_files="$ac_config_files llvm.spec"
19892 ac_config_files="$ac_config_files docs/doxygen.cfg"
19895 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19898 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19901 ac_config_commands="$ac_config_commands setup"
19903 ac_config_commands="$ac_config_commands Makefile"
19906 ac_config_commands="$ac_config_commands Makefile.common"
19909 ac_config_commands="$ac_config_commands examples/Makefile"
19912 ac_config_commands="$ac_config_commands lib/Makefile"
19915 ac_config_commands="$ac_config_commands runtime/Makefile"
19918 ac_config_commands="$ac_config_commands test/Makefile"
19921 ac_config_commands="$ac_config_commands test/Makefile.tests"
19924 ac_config_commands="$ac_config_commands unittests/Makefile"
19927 ac_config_commands="$ac_config_commands tools/Makefile"
19930 ac_config_commands="$ac_config_commands utils/Makefile"
19933 ac_config_commands="$ac_config_commands projects/Makefile"
19936 ac_config_commands="$ac_config_commands bindings/Makefile"
19939 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19943 cat >confcache <<\_ACEOF
19944 # This file is a shell script that caches the results of configure
19945 # tests run on this system so they can be shared between configure
19946 # scripts and configure runs, see configure's option --config-cache.
19947 # It is not useful on other systems. If it contains results you don't
19948 # want to keep, you may remove or edit it.
19950 # config.status only pays attention to the cache file if you give it
19951 # the --recheck option to rerun configure.
19953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19955 # following values.
19959 # The following way of writing the cache mishandles newlines in values,
19960 # but we know of no workaround that is simple, portable, and efficient.
19961 # So, we kill variables containing newlines.
19962 # Ultrix sh set writes to stderr and can't be redirected directly,
19963 # and sets the high bit in the cache file unless we assign to the vars.
19965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19966 eval ac_val=\$$ac_var
19970 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19971 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19974 _ | IFS | as_nl) ;; #(
19975 *) $as_unset $ac_var ;;
19981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19982 *${as_nl}ac_space=\ *)
19983 # `set' does not quote correctly, so add quotes (double-quote
19984 # substitution turns \\\\ into \\, and sed turns \\ into \).
19987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19990 # `set' quotes correctly as required by POSIX, so do not add quotes.
19991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20005 if test -w "$cache_file"; then
20006 test "x$cache_file" != "x/dev/null" &&
20007 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20008 echo "$as_me: updating cache $cache_file" >&6;}
20009 cat confcache >$cache_file
20011 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20012 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20018 # Let make expand exec_prefix.
20019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20021 DEFS=-DHAVE_CONFIG_H
20025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20026 # 1. Remove the extension, and $U if already installed.
20027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20028 ac_i=`echo "$ac_i" | sed "$ac_script"`
20029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20030 # will be set to the directory where LIBOBJS objects are built.
20031 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20032 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20034 LIBOBJS=$ac_libobjs
20036 LTLIBOBJS=$ac_ltlibobjs
20039 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20040 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20041 Usually this means the macro was only invoked conditionally." >&5
20042 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20043 Usually this means the macro was only invoked conditionally." >&2;}
20044 { (exit 1); exit 1; }; }
20046 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20047 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20048 Usually this means the macro was only invoked conditionally." >&5
20049 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20050 Usually this means the macro was only invoked conditionally." >&2;}
20051 { (exit 1); exit 1; }; }
20054 : ${CONFIG_STATUS=./config.status}
20055 ac_clean_files_save=$ac_clean_files
20056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20059 cat >$CONFIG_STATUS <<_ACEOF
20061 # Generated by $as_me.
20062 # Run this file to recreate the current configuration.
20063 # Compiler output produced by configure, useful for debugging
20064 # configure, is in config.log if it exists.
20067 ac_cs_recheck=false
20069 SHELL=\${CONFIG_SHELL-$SHELL}
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 ## --------------------- ##
20074 ## M4sh Initialization. ##
20075 ## --------------------- ##
20077 # Be Bourne compatible
20078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20082 # is contrary to our usage. Disable this feature.
20083 alias -g '${1+"$@"}'='"$@"'
20084 setopt NO_GLOB_SUBST
20086 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20088 BIN_SH=xpg4; export BIN_SH # for Tru64
20089 DUALCASE=1; export DUALCASE # for MKS sh
20093 # Avoid depending upon Character Ranges.
20094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20097 as_cr_digits='0123456789'
20098 as_cr_alnum=$as_cr_Letters$as_cr_digits
20100 # The user is always right.
20101 if test "${PATH_SEPARATOR+set}" != set; then
20102 echo "#! /bin/sh" >conf$$.sh
20103 echo "exit 0" >>conf$$.sh
20105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20113 # Support unset when possible.
20114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20122 # We need space, tab and new line, in precisely that order. Quoting is
20123 # there to prevent editors from complaining about space-tab.
20124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20125 # splitting by setting IFS to empty value.)
20130 # Find who we are. Look in the path if we contain no directory separator.
20132 *[\\/]* ) as_myself=$0 ;;
20133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20134 for as_dir in $PATH
20137 test -z "$as_dir" && as_dir=.
20138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20144 # We did not find ourselves, most probably we were run as `sh COMMAND'
20145 # in which case we are not to be found in the path.
20146 if test "x$as_myself" = x; then
20149 if test ! -f "$as_myself"; then
20150 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20151 { (exit 1); exit 1; }
20154 # Work around bugs in pre-3.0 UWIN ksh.
20155 for as_var in ENV MAIL MAILPATH
20156 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20164 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20165 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20166 LC_TELEPHONE LC_TIME
20168 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20169 eval $as_var=C; export $as_var
20171 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20175 # Required to use basename.
20176 if expr a : '\(a\)' >/dev/null 2>&1 &&
20177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20184 as_basename=basename
20190 # Name of the executable.
20191 as_me=`$as_basename -- "$0" ||
20192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20193 X"$0" : 'X\(//\)$' \| \
20194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20196 sed '/^.*\/\([^/][^/]*\)\/*$/{
20215 as_lineno_1=$LINENO
20216 as_lineno_2=$LINENO
20217 test "x$as_lineno_1" != "x$as_lineno_2" &&
20218 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20221 # uniformly replaced by the line number. The first 'sed' inserts a
20222 # line-number line after each line using $LINENO; the second 'sed'
20223 # does the real work. The second script uses 'N' to pair each
20224 # line-number line with the line containing $LINENO, and appends
20225 # trailing '-' during substitution so that $LINENO is not a special
20226 # case at line end.
20227 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20228 # scripts with optimization help from Paolo Bonzini. Blame Lee
20229 # E. McMahon (1931-1989) for sed's syntax. :-)
20241 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20244 ' >$as_me.lineno &&
20245 chmod +x "$as_me.lineno" ||
20246 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20247 { (exit 1); exit 1; }; }
20249 # Don't try to exec as it changes $[0], causing all sort of problems
20250 # (the dirname of $[0] is not the place where we might find the
20251 # original and so on. Autoconf is especially sensitive to this).
20252 . "./$as_me.lineno"
20253 # Exit status is that of the last command.
20258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20264 ECHO_C= ECHO_N= ECHO_T=
20265 case `echo -n x` in
20267 case `echo 'x\c'` in
20268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20275 if expr a : '\(a\)' >/dev/null 2>&1 &&
20276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20282 rm -f conf$$ conf$$.exe conf$$.file
20283 if test -d conf$$.dir; then
20284 rm -f conf$$.dir/conf$$.file
20290 if ln -s conf$$.file conf$$ 2>/dev/null; then
20292 # ... but there are two gotchas:
20293 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20294 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20295 # In both cases, we have to default to `cp -p'.
20296 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20304 rmdir conf$$.dir 2>/dev/null
20306 if mkdir -p . 2>/dev/null; then
20309 test -d ./-p && rmdir ./-p
20313 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20314 # systems may use methods other than mode bits to determine executability.
20315 cat >conf$$.file <<_ASEOF
20319 chmod +x conf$$.file
20320 if test -x conf$$.file >/dev/null 2>&1; then
20321 as_executable_p="test -x"
20327 # Sed expression to map a string onto a valid CPP name.
20328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20330 # Sed expression to map a string onto a valid variable name.
20331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20336 # Save the log message, to keep $[0] and so on meaningful, and to
20337 # report actual input values of CONFIG_FILES etc. instead of their
20338 # values after options handling.
20340 This file was extended by llvm $as_me 2.7svn, which was
20341 generated by GNU Autoconf 2.60. Invocation command line was
20343 CONFIG_FILES = $CONFIG_FILES
20344 CONFIG_HEADERS = $CONFIG_HEADERS
20345 CONFIG_LINKS = $CONFIG_LINKS
20346 CONFIG_COMMANDS = $CONFIG_COMMANDS
20349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20354 cat >>$CONFIG_STATUS <<_ACEOF
20355 # Files that config.status was made for.
20356 config_files="$ac_config_files"
20357 config_headers="$ac_config_headers"
20358 config_commands="$ac_config_commands"
20362 cat >>$CONFIG_STATUS <<\_ACEOF
20364 \`$as_me' instantiates files from templates according to the
20365 current configuration.
20367 Usage: $0 [OPTIONS] [FILE]...
20369 -h, --help print this help, then exit
20370 -V, --version print version number, then exit
20371 -q, --quiet do not print progress messages
20372 -d, --debug don't remove temporary files
20373 --recheck update $as_me by reconfiguring in the same conditions
20374 --file=FILE[:TEMPLATE]
20375 instantiate the configuration file FILE
20376 --header=FILE[:TEMPLATE]
20377 instantiate the configuration header FILE
20379 Configuration files:
20382 Configuration headers:
20385 Configuration commands:
20388 Report bugs to <bug-autoconf@gnu.org>."
20391 cat >>$CONFIG_STATUS <<_ACEOF
20393 llvm config.status 2.7svn
20394 configured by $0, generated by GNU Autoconf 2.60,
20395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20397 Copyright (C) 2006 Free Software Foundation, Inc.
20398 This config.status script is free software; the Free Software Foundation
20399 gives unlimited permission to copy, distribute and modify it."
20406 cat >>$CONFIG_STATUS <<\_ACEOF
20407 # If no file are specified by the user, then we need to provide default
20408 # value. By we need to know if files were specified by the user.
20414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20426 # Handling of the options.
20427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20430 echo "$ac_cs_version"; exit ;;
20431 --debug | --debu | --deb | --de | --d | -d )
20433 --file | --fil | --fi | --f )
20435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20436 ac_need_defaults=false;;
20437 --header | --heade | --head | --hea )
20439 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20440 ac_need_defaults=false;;
20442 # Conflict between --help and --header
20443 { echo "$as_me: error: ambiguous option: $1
20444 Try \`$0 --help' for more information." >&2
20445 { (exit 1); exit 1; }; };;
20446 --help | --hel | -h )
20447 echo "$ac_cs_usage"; exit ;;
20448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20452 # This is an error.
20453 -*) { echo "$as_me: error: unrecognized option: $1
20454 Try \`$0 --help' for more information." >&2
20455 { (exit 1); exit 1; }; } ;;
20457 *) ac_config_targets="$ac_config_targets $1"
20458 ac_need_defaults=false ;;
20464 ac_configure_extra_args=
20466 if $ac_cs_silent; then
20468 ac_configure_extra_args="$ac_configure_extra_args --silent"
20472 cat >>$CONFIG_STATUS <<_ACEOF
20473 if \$ac_cs_recheck; then
20474 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20475 CONFIG_SHELL=$SHELL
20476 export CONFIG_SHELL
20477 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20481 cat >>$CONFIG_STATUS <<\_ACEOF
20485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20486 ## Running $as_me. ##
20492 cat >>$CONFIG_STATUS <<_ACEOF
20496 llvm_src="${srcdir}"
20500 cat >>$CONFIG_STATUS <<\_ACEOF
20502 # Handling of arguments.
20503 for ac_config_target in $ac_config_targets
20505 case $ac_config_target in
20506 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20507 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20508 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20509 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20510 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20511 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20512 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20513 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20514 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20515 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20516 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20517 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20518 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20519 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20520 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20521 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20522 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20523 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20524 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20525 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20526 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20527 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20528 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20529 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20530 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20534 { (exit 1); exit 1; }; };;
20539 # If the user did not use the arguments to specify the items to instantiate,
20540 # then the envvar interface is used. Set only those that are not.
20541 # We use the long form for the default assignment because of an extremely
20542 # bizarre bug on SunOS 4.1.3.
20543 if $ac_need_defaults; then
20544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20549 # Have a temporary directory for convenience. Make it in the build tree
20550 # simply because there is no reason against having it here, and in addition,
20551 # creating and moving files from /tmp can sometimes cause problems.
20552 # Hook for its removal unless debugging.
20553 # Note that there is a small window in which the directory will not be cleaned:
20554 # after its creation but before its name has been assigned to `$tmp'.
20558 trap 'exit_status=$?
20559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20561 trap '{ (exit 1); exit 1; }' 1 2 13 15
20563 # Create a (secure) tmp directory for tmp files.
20566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20567 test -n "$tmp" && test -d "$tmp"
20570 tmp=./conf$$-$RANDOM
20571 (umask 077 && mkdir "$tmp")
20574 echo "$me: cannot create a temporary directory in ." >&2
20575 { (exit 1); exit 1; }
20579 # Set up the sed scripts for CONFIG_FILES section.
20582 # No need to generate the scripts if there are no CONFIG_FILES.
20583 # This happens for instance when ./config.status config.h
20584 if test -n "$CONFIG_FILES"; then
20591 for ac_last_try in false false false false false :; do
20592 cat >conf$$subs.sed <<_ACEOF
20593 SHELL!$SHELL$ac_delim
20594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20600 exec_prefix!$exec_prefix$ac_delim
20601 prefix!$prefix$ac_delim
20602 program_transform_name!$program_transform_name$ac_delim
20603 bindir!$bindir$ac_delim
20604 sbindir!$sbindir$ac_delim
20605 libexecdir!$libexecdir$ac_delim
20606 datarootdir!$datarootdir$ac_delim
20607 datadir!$datadir$ac_delim
20608 sysconfdir!$sysconfdir$ac_delim
20609 sharedstatedir!$sharedstatedir$ac_delim
20610 localstatedir!$localstatedir$ac_delim
20611 includedir!$includedir$ac_delim
20612 oldincludedir!$oldincludedir$ac_delim
20613 docdir!$docdir$ac_delim
20614 infodir!$infodir$ac_delim
20615 htmldir!$htmldir$ac_delim
20616 dvidir!$dvidir$ac_delim
20617 pdfdir!$pdfdir$ac_delim
20618 psdir!$psdir$ac_delim
20619 libdir!$libdir$ac_delim
20620 localedir!$localedir$ac_delim
20621 mandir!$mandir$ac_delim
20622 DEFS!$DEFS$ac_delim
20623 ECHO_C!$ECHO_C$ac_delim
20624 ECHO_N!$ECHO_N$ac_delim
20625 ECHO_T!$ECHO_T$ac_delim
20626 LIBS!$LIBS$ac_delim
20627 build_alias!$build_alias$ac_delim
20628 host_alias!$host_alias$ac_delim
20629 target_alias!$target_alias$ac_delim
20630 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20631 subdirs!$subdirs$ac_delim
20632 build!$build$ac_delim
20633 build_cpu!$build_cpu$ac_delim
20634 build_vendor!$build_vendor$ac_delim
20635 build_os!$build_os$ac_delim
20636 host!$host$ac_delim
20637 host_cpu!$host_cpu$ac_delim
20638 host_vendor!$host_vendor$ac_delim
20639 host_os!$host_os$ac_delim
20640 target!$target$ac_delim
20641 target_cpu!$target_cpu$ac_delim
20642 target_vendor!$target_vendor$ac_delim
20643 target_os!$target_os$ac_delim
20645 HOST_OS!$HOST_OS$ac_delim
20646 TARGET_OS!$TARGET_OS$ac_delim
20647 LINKALL!$LINKALL$ac_delim
20648 NOLINKALL!$NOLINKALL$ac_delim
20649 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20650 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20651 ARCH!$ARCH$ac_delim
20652 ENDIAN!$ENDIAN$ac_delim
20654 CFLAGS!$CFLAGS$ac_delim
20655 LDFLAGS!$LDFLAGS$ac_delim
20656 CPPFLAGS!$CPPFLAGS$ac_delim
20657 ac_ct_CC!$ac_ct_CC$ac_delim
20658 EXEEXT!$EXEEXT$ac_delim
20659 OBJEXT!$OBJEXT$ac_delim
20661 GREP!$GREP$ac_delim
20662 EGREP!$EGREP$ac_delim
20663 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20664 BUILD_CC!$BUILD_CC$ac_delim
20665 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20666 BUILD_CXX!$BUILD_CXX$ac_delim
20667 CVSBUILD!$CVSBUILD$ac_delim
20668 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20669 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20670 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20671 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20672 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20673 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20674 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20676 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20677 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20678 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20679 ENABLE_PIC!$ENABLE_PIC$ac_delim
20680 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20681 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20682 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20683 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20684 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20685 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20686 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20687 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20688 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20689 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20694 elif $ac_last_try; then
20695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20697 { (exit 1); exit 1; }; }
20699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20704 if test -n "$ac_eof"; then
20705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20706 ac_eof=`expr $ac_eof + 1`
20709 cat >>$CONFIG_STATUS <<_ACEOF
20710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20715 s/^/s,@/; s/!/@,|#_!!_#|/
20718 s/'"$ac_delim"'$/,g/; t
20720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20721 ' >>$CONFIG_STATUS <conf$$subs.sed
20722 rm -f conf$$subs.sed
20723 cat >>$CONFIG_STATUS <<_ACEOF
20729 for ac_last_try in false false false false false :; do
20730 cat >conf$$subs.sed <<_ACEOF
20731 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20732 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20734 CXXFLAGS!$CXXFLAGS$ac_delim
20735 ac_ct_CXX!$ac_ct_CXX$ac_delim
20737 ifGNUmake!$ifGNUmake$ac_delim
20738 LN_S!$LN_S$ac_delim
20741 DATE!$DATE$ac_delim
20742 FIND!$FIND$ac_delim
20743 MKDIR!$MKDIR$ac_delim
20745 RANLIB!$RANLIB$ac_delim
20750 BINPWD!$BINPWD$ac_delim
20751 GRAPHVIZ!$GRAPHVIZ$ac_delim
20754 NEATO!$NEATO$ac_delim
20755 TWOPI!$TWOPI$ac_delim
20756 CIRCO!$CIRCO$ac_delim
20758 DOTTY!$DOTTY$ac_delim
20759 PERL!$PERL$ac_delim
20760 HAVE_PERL!$HAVE_PERL$ac_delim
20761 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20762 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20763 INSTALL_DATA!$INSTALL_DATA$ac_delim
20764 BZIP2!$BZIP2$ac_delim
20765 DOXYGEN!$DOXYGEN$ac_delim
20766 GROFF!$GROFF$ac_delim
20767 GZIP!$GZIP$ac_delim
20768 POD2HTML!$POD2HTML$ac_delim
20769 POD2MAN!$POD2MAN$ac_delim
20770 RUNTEST!$RUNTEST$ac_delim
20771 TCLSH!$TCLSH$ac_delim
20773 OCAMLC!$OCAMLC$ac_delim
20774 OCAMLOPT!$OCAMLOPT$ac_delim
20775 OCAMLDEP!$OCAMLDEP$ac_delim
20776 OCAMLDOC!$OCAMLDOC$ac_delim
20778 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20779 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20780 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20781 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20782 LIBADD_DL!$LIBADD_DL$ac_delim
20783 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20784 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20785 LLVMGCC!$LLVMGCC$ac_delim
20786 LLVMGXX!$LLVMGXX$ac_delim
20787 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20788 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20789 USE_UDIS86!$USE_UDIS86$ac_delim
20790 USE_OPROFILE!$USE_OPROFILE$ac_delim
20791 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20792 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20793 MMAP_FILE!$MMAP_FILE$ac_delim
20794 LLVMCC1!$LLVMCC1$ac_delim
20795 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20796 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20797 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20798 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20799 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
20800 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20801 SHLIBEXT!$SHLIBEXT$ac_delim
20802 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20803 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20804 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20805 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20806 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20807 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20808 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20809 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20810 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20811 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20812 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20813 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20814 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20815 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20816 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20817 RPATH!$RPATH$ac_delim
20818 RDYNAMIC!$RDYNAMIC$ac_delim
20819 LIBOBJS!$LIBOBJS$ac_delim
20820 LTLIBOBJS!$LTLIBOBJS$ac_delim
20823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
20825 elif $ac_last_try; then
20826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20828 { (exit 1); exit 1; }; }
20830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20834 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20835 if test -n "$ac_eof"; then
20836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20837 ac_eof=`expr $ac_eof + 1`
20840 cat >>$CONFIG_STATUS <<_ACEOF
20841 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20846 s/^/s,@/; s/!/@,|#_!!_#|/
20849 s/'"$ac_delim"'$/,g/; t
20851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20852 ' >>$CONFIG_STATUS <conf$$subs.sed
20853 rm -f conf$$subs.sed
20854 cat >>$CONFIG_STATUS <<_ACEOF
20861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20863 # trailing colons and then remove the whole line if VPATH becomes empty
20864 # (actually we leave an empty line to preserve line numbers).
20865 if test "x$srcdir" = x.; then
20866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20867 s/:*\$(srcdir):*/:/
20868 s/:*\${srcdir}:*/:/
20870 s/^\([^=]*=[ ]*\):*/\1/
20876 cat >>$CONFIG_STATUS <<\_ACEOF
20877 fi # test -n "$CONFIG_FILES"
20880 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20883 :[FHLC]) ac_mode=$ac_tag; continue;;
20885 case $ac_mode$ac_tag in
20887 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20888 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20889 { (exit 1); exit 1; }; };;
20890 :[FH]-) ac_tag=-:-;;
20891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20908 -) ac_f="$tmp/stdin";;
20909 *) # Look for the file first in the build tree, then in the source tree
20910 # (if the path is not absolute). The absolute path cannot be DOS-style,
20911 # because $ac_f cannot contain `:'.
20915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20917 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20918 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20919 { (exit 1); exit 1; }; };;
20921 ac_file_inputs="$ac_file_inputs $ac_f"
20924 # Let's still pretend it is `configure' which instantiates (i.e., don't
20925 # use $as_me), people would be surprised to read:
20926 # /* config.h. Generated by config.status. */
20927 configure_input="Generated from "`IFS=:
20928 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20929 if test x"$ac_file" != x-; then
20930 configure_input="$ac_file. $configure_input"
20931 { echo "$as_me:$LINENO: creating $ac_file" >&5
20932 echo "$as_me: creating $ac_file" >&6;}
20936 *:-:* | *:-) cat >"$tmp/stdin";;
20941 ac_dir=`$as_dirname -- "$ac_file" ||
20942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20943 X"$ac_file" : 'X\(//\)[^/]' \| \
20944 X"$ac_file" : 'X\(//\)$' \| \
20945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20951 /^X\(\/\/\)[^/].*/{
20966 -*) as_dir=./$as_dir;;
20968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20973 *) as_qdir=$as_dir;;
20975 as_dirs="'$as_qdir' $as_dirs"
20976 as_dir=`$as_dirname -- "$as_dir" ||
20977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978 X"$as_dir" : 'X\(//\)[^/]' \| \
20979 X"$as_dir" : 'X\(//\)$' \| \
20980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20986 /^X\(\/\/\)[^/].*/{
20999 test -d "$as_dir" && break
21001 test -z "$as_dirs" || eval "mkdir $as_dirs"
21002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21003 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21004 { (exit 1); exit 1; }; }; }
21008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21011 # A ".." for each directory in $ac_dir_suffix.
21012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21013 case $ac_top_builddir_sub in
21014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21018 ac_abs_top_builddir=$ac_pwd
21019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21020 # for backward compatibility:
21021 ac_top_builddir=$ac_top_build_prefix
21024 .) # We are building in place.
21026 ac_top_srcdir=$ac_top_builddir_sub
21027 ac_abs_top_srcdir=$ac_pwd ;;
21028 [\\/]* | ?:[\\/]* ) # Absolute name.
21029 ac_srcdir=$srcdir$ac_dir_suffix;
21030 ac_top_srcdir=$srcdir
21031 ac_abs_top_srcdir=$srcdir ;;
21032 *) # Relative name.
21033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21034 ac_top_srcdir=$ac_top_build_prefix$srcdir
21035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21052 cat >>$CONFIG_STATUS <<\_ACEOF
21053 # If the template does not know about datarootdir, expand it.
21054 # FIXME: This hack should be removed a few years after 2.60.
21055 ac_datarootdir_hack=; ac_datarootdir_seen=
21057 case `sed -n '/datarootdir/ {
21066 ' $ac_file_inputs` in
21067 *datarootdir*) ac_datarootdir_seen=yes;;
21068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21069 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21070 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21072 cat >>$CONFIG_STATUS <<_ACEOF
21073 ac_datarootdir_hack='
21074 s&@datadir@&$datadir&g
21075 s&@docdir@&$docdir&g
21076 s&@infodir@&$infodir&g
21077 s&@localedir@&$localedir&g
21078 s&@mandir@&$mandir&g
21079 s&\\\${datarootdir}&$datarootdir&g' ;;
21083 # Neutralize VPATH when `$srcdir' = `.'.
21084 # Shell code in configure.ac might set extrasub.
21085 # FIXME: do we really want to maintain this feature?
21086 cat >>$CONFIG_STATUS <<_ACEOF
21090 cat >>$CONFIG_STATUS <<\_ACEOF
21092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21093 s&@configure_input@&$configure_input&;t t
21094 s&@top_builddir@&$ac_top_builddir_sub&;t t
21095 s&@srcdir@&$ac_srcdir&;t t
21096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21097 s&@top_srcdir@&$ac_top_srcdir&;t t
21098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21099 s&@builddir@&$ac_builddir&;t t
21100 s&@abs_builddir@&$ac_abs_builddir&;t t
21101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21102 s&@INSTALL@&$ac_INSTALL&;t t
21103 $ac_datarootdir_hack
21104 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21109 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21110 which seems to be undefined. Please make sure it is defined." >&5
21111 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21112 which seems to be undefined. Please make sure it is defined." >&2;}
21116 -) cat "$tmp/out"; rm -f "$tmp/out";;
21117 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21126 # Transform confdefs.h into a sed script `conftest.defines', that
21127 # substitutes the proper values into config.h.in to produce config.h.
21128 rm -f conftest.defines conftest.tail
21129 # First, append a space to every undef/define line, to ease matching.
21130 echo 's/$/ /' >conftest.defines
21131 # Then, protect against being on the right side of a sed subst, or in
21132 # an unquoted here document, in config.status. If some macros were
21133 # called several times there might be several #defines for the same
21134 # symbol, which is useless. But do not sort them, since the last
21135 # AC_DEFINE must be honored.
21136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21137 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21138 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21139 # PARAMS is the parameter list in the macro definition--in most cases, it's
21140 # just an empty string.
21141 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21142 ac_dB='\\)[ (].*,\\1define\\2'
21150 s/^[ ]*#[ ]*define[ ][ ]*//
21155 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21156 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21157 ' >>conftest.defines
21159 # Remove the space that was appended to ease matching.
21160 # Then replace #undef with comments. This is necessary, for
21161 # example, in the case of _POSIX_SOURCE, which is predefined and required
21162 # on some systems where configure will not decide to define it.
21163 # (The regexp can be short, since the line contains either #define or #undef.)
21165 s,^[ #]*u.*,/* & */,' >>conftest.defines
21167 # Break up conftest.defines:
21168 ac_max_sed_lines=50
21170 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21171 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21172 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21174 ac_in='$ac_file_inputs'
21175 ac_out='"$tmp/out1"'
21176 ac_nxt='"$tmp/out2"'
21180 # Write a here document:
21181 cat >>$CONFIG_STATUS <<_ACEOF
21182 # First, check the format of the line:
21183 cat >"\$tmp/defines.sed" <<\\CEOF
21184 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21185 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21189 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21191 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21192 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21193 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21194 grep . conftest.tail >/dev/null || break
21195 rm -f conftest.defines
21196 mv conftest.tail conftest.defines
21198 rm -f conftest.defines conftest.tail
21200 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21202 if test x"$ac_file" != x-; then
21203 echo "/* $configure_input */" >"$tmp/config.h"
21204 cat "$ac_result" >>"$tmp/config.h"
21205 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21206 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21207 echo "$as_me: $ac_file is unchanged" >&6;}
21210 mv "$tmp/config.h" $ac_file
21213 echo "/* $configure_input */"
21219 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21220 echo "$as_me: executing $ac_file commands" >&6;}
21225 case $ac_file$ac_mode in
21226 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21227 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21228 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21229 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21230 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21231 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21232 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21233 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21234 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21235 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21236 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21237 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21238 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21239 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21240 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21241 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21242 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21243 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21244 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21245 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21246 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21247 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21248 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21249 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21250 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21251 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21257 { (exit 0); exit 0; }
21259 chmod +x $CONFIG_STATUS
21260 ac_clean_files=$ac_clean_files_save
21263 # configure is writing to config.log, and then calls config.status.
21264 # config.status does its own redirection, appending to config.log.
21265 # Unfortunately, on DOS this fails, as config.log is still kept open
21266 # by configure, so config.status won't be able to write to it; its
21267 # output is simply discarded. So we exec the FD to /dev/null,
21268 # effectively closing config.log, so it can be properly (re)opened and
21269 # appended to by config.status. When coming back to configure, we
21270 # need to make the FD available again.
21271 if test "$no_create" != yes; then
21273 ac_config_status_args=
21274 test "$silent" = yes &&
21275 ac_config_status_args="$ac_config_status_args --quiet"
21277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21280 # would make configure fail if this is the last instruction.
21281 $ac_cs_success || { (exit 1); exit 1; }
21285 # CONFIG_SUBDIRS section.
21287 if test "$no_recursion" != yes; then
21289 # Remove --cache-file and --srcdir arguments so they do not pile up.
21290 ac_sub_configure_args=
21292 eval "set x $ac_configure_args"
21296 if test -n "$ac_prev"; then
21301 -cache-file | --cache-file | --cache-fil | --cache-fi \
21302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21303 ac_prev=cache_file ;;
21304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21308 --config-cache | -C)
21310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21320 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21322 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21326 # Always prepend --prefix to ensure using the same prefix
21327 # in subdir configurations.
21328 ac_arg="--prefix=$prefix"
21330 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21332 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21335 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21337 # Do not complain, so a configure script can configure whichever
21338 # parts of a large source tree are present.
21339 test -d "$srcdir/$ac_dir" || continue
21341 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21342 echo "$as_me:$LINENO: $ac_msg" >&5
21346 -*) as_dir=./$as_dir;;
21348 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21352 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21353 *) as_qdir=$as_dir;;
21355 as_dirs="'$as_qdir' $as_dirs"
21356 as_dir=`$as_dirname -- "$as_dir" ||
21357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21358 X"$as_dir" : 'X\(//\)[^/]' \| \
21359 X"$as_dir" : 'X\(//\)$' \| \
21360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21366 /^X\(\/\/\)[^/].*/{
21379 test -d "$as_dir" && break
21381 test -z "$as_dirs" || eval "mkdir $as_dirs"
21382 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21383 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21384 { (exit 1); exit 1; }; }; }
21388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21391 # A ".." for each directory in $ac_dir_suffix.
21392 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21393 case $ac_top_builddir_sub in
21394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21398 ac_abs_top_builddir=$ac_pwd
21399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21400 # for backward compatibility:
21401 ac_top_builddir=$ac_top_build_prefix
21404 .) # We are building in place.
21406 ac_top_srcdir=$ac_top_builddir_sub
21407 ac_abs_top_srcdir=$ac_pwd ;;
21408 [\\/]* | ?:[\\/]* ) # Absolute name.
21409 ac_srcdir=$srcdir$ac_dir_suffix;
21410 ac_top_srcdir=$srcdir
21411 ac_abs_top_srcdir=$srcdir ;;
21412 *) # Relative name.
21413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21414 ac_top_srcdir=$ac_top_build_prefix$srcdir
21415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21422 # Check for guested configure; otherwise get Cygnus style configure.
21423 if test -f "$ac_srcdir/configure.gnu"; then
21424 ac_sub_configure=$ac_srcdir/configure.gnu
21425 elif test -f "$ac_srcdir/configure"; then
21426 ac_sub_configure=$ac_srcdir/configure
21427 elif test -f "$ac_srcdir/configure.in"; then
21428 # This should be Cygnus configure.
21429 ac_sub_configure=$ac_aux_dir/configure
21431 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21436 # The recursion is here.
21437 if test -n "$ac_sub_configure"; then
21438 # Make the cache file name correct relative to the subdirectory.
21439 case $cache_file in
21440 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21441 *) # Relative name.
21442 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21445 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21446 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21447 # The eval makes quoting arguments work.
21448 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21449 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21450 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21451 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21452 { (exit 1); exit 1; }; }