2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
702 ENABLE_LLVMC_DYNAMIC_PLUGINS
750 CONVENIENCE_LTDL_TRUE
751 CONVENIENCE_LTDL_FALSE
758 NO_MISSING_FIELD_INITIALIZERS
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='projects/sample
804 projects/llvm-stacker
811 projects/llvm-poolalloc
813 projects/llvm-kernel'
815 # Initialize some variables set by options.
817 ac_init_version=false
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
827 program_transform_name=s,x,x,
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920 { (exit 1); exit 1; }; }
921 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
922 eval enable_$ac_feature=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1105 -site=* | --site=* | --sit=*)
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1132 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid package name: $ac_package" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_package=`echo $ac_package| sed 's/-/_/g'`
1138 eval with_$ac_package=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package | sed 's/-/_/g'`
1147 eval with_$ac_package=no ;;
1150 # Obsolete; use --with-x.
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1167 -*) { echo "$as_me: error: unrecognized option: $ac_option
1168 Try \`$0 --help' for more information." >&2
1169 { (exit 1); exit 1; }; }
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1176 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1177 { (exit 1); exit 1; }; }
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 { echo "$as_me: error: missing argument to $ac_option" >&2
1195 { (exit 1); exit 1; }; }
1198 # Be sure to have absolute directory names.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1210 { (exit 1); exit 1; }; }
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 { echo "$as_me: error: Working directory cannot be determined" >&2
1241 { (exit 1); exit 1; }; }
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 { echo "$as_me: error: pwd does not report name of working directory" >&2
1244 { (exit 1); exit 1; }; }
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$0" ||
1252 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$0" : 'X\(//\)[^/]' \| \
1254 X"$0" : 'X\(//\)$' \| \
1255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1284 { (exit 1); exit 1; }; }
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1289 { (exit 1); exit 1; }; }
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-optimized Compile with optimizations enabled (default is NO)
1389 --enable-profiling Compile with profiling enabled (default is NO)
1390 --enable-assertions Compile with assertion checks enabled (default is
1392 --enable-expensive-checks
1393 Compile with expensive debug checks enabled (default
1395 --enable-debug-runtime Build runtime libs with debug symbols (default is
1397 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1398 optimization is on and YES if it's off)
1399 --enable-jit Enable Just In Time Compiling (default is YES)
1400 --enable-doxygen Build doxygen documentation (default is NO)
1401 --enable-threads Use threads if available (default is YES)
1402 --enable-pic Build LLVM with Position Independent Code (default
1404 --enable-targets Build specific host targets: all or
1405 target1,target2,... Valid targets are: host, x86,
1406 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1407 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1408 and cpp (default=all)
1409 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1411 --enable-bindings Build specific language bindings:
1412 all,auto,none,{binding-name} (default=auto)
1413 --enable-libffi Check for the presence of libffi (default is NO)
1414 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1416 --enable-llvmc-dynamic-plugins
1417 Enable dynamic LLVMC plugins (default is YES)
1418 --enable-ltdl-install install libltdl
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1425 --with-llvmgcc Specify location of llvm-gcc driver (default
1427 --with-llvmgxx Specify location of llvm-g++ driver (default
1429 --with-optimize-option Select the compiler options to use for optimized
1431 --with-extra-options Specify additional options to compile LLVM with
1432 --with-ocaml-libdir Specify install location for ocaml bindings (default
1434 --with-c-include-dirs Colon separated list of directories clang will
1436 --with-cxx-include-root Directory with the libstdc++ headers.
1437 --with-cxx-include-arch Architecture of the libstdc++ headers.
1438 --with-cxx-include-32bit-dir
1439 32 bit multilib dir.
1440 --with-cxx-include-64bit-dir
1441 64 bit multilib directory.
1442 --with-binutils-include Specify path to binutils/include/ containing
1443 plugin-api.h file for gold plugin.
1444 --with-tclinclude directory where tcl headers are
1445 --with-udis86=<path> Use udis86 external x86 disassembler library
1446 --with-oprofile=<prefix>
1447 Tell OProfile >= 0.9.4 how to symbolize JIT output
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1457 CXX C++ compiler command
1458 CXXFLAGS C++ compiler flags
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <llvmbugs@cs.uiuc.edu>.
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" || continue
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1491 .) # We are building in place.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1515 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1524 llvm configure 2.7svn
1525 generated by GNU Autoconf 2.60
1527 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1528 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1532 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1536 cat >config.log <<_ACEOF
1537 This file contains any messages produced by compilers while
1538 running configure, to aid debugging if configure makes a mistake.
1540 It was created by llvm $as_me 2.7svn, which was
1541 generated by GNU Autoconf 2.60. Invocation command line was
1553 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1554 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1555 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1556 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1557 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1559 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1560 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1562 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1563 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1564 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1565 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1566 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1567 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1568 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 echo "PATH: $as_dir"
1593 # Keep a trace of the command line.
1594 # Strip out --no-create and --no-recursion so they do not pile up.
1595 # Strip out --silent because we don't want to record it for future runs.
1596 # Also quote any args containing shell meta-characters.
1597 # Make two passes to allow for proper duplicate-argument suppression.
1601 ac_must_keep_next=false
1607 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1612 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1615 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1617 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1618 if test $ac_must_keep_next = true; then
1619 ac_must_keep_next=false # Got value, back to normal.
1622 *=* | --config-cache | -C | -disable-* | --disable-* \
1623 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1624 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1625 | -with-* | --with-* | -without-* | --without-* | --x)
1626 case "$ac_configure_args0 " in
1627 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1630 -* ) ac_must_keep_next=true ;;
1633 ac_configure_args="$ac_configure_args '$ac_arg'"
1638 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1639 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1641 # When interrupted or exit'd, cleanup temporary files, and complete
1642 # config.log. We remove comments because anyway the quotes in there
1643 # would cause problems or look ugly.
1644 # WARNING: Use '\'' to represent an apostrophe within the trap.
1645 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1646 trap 'exit_status=$?
1647 # Save into config.log some information that might help in debugging.
1652 ## ---------------- ##
1653 ## Cache variables. ##
1654 ## ---------------- ##
1657 # The following way of writing the cache mishandles newlines in values,
1659 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1660 eval ac_val=\$$ac_var
1664 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1665 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1668 _ | IFS | as_nl) ;; #(
1669 *) $as_unset $ac_var ;;
1674 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1675 *${as_nl}ac_space=\ *)
1677 "s/'\''/'\''\\\\'\'''\''/g;
1678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689 ## ----------------- ##
1690 ## Output variables. ##
1691 ## ----------------- ##
1694 for ac_var in $ac_subst_vars
1696 eval ac_val=\$$ac_var
1698 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1700 echo "$ac_var='\''$ac_val'\''"
1704 if test -n "$ac_subst_files"; then
1706 ## ------------------- ##
1707 ## File substitutions. ##
1708 ## ------------------- ##
1711 for ac_var in $ac_subst_files
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 echo "$ac_var='\''$ac_val'\''"
1722 if test -s confdefs.h; then
1732 test "$ac_signal" != 0 &&
1733 echo "$as_me: caught signal $ac_signal"
1734 echo "$as_me: exit $exit_status"
1736 rm -f core *.core core.conftest.* &&
1737 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1740 for ac_signal in 1 2 13 15; do
1741 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1745 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1746 rm -f -r conftest* confdefs.h
1748 # Predefined preprocessor variables.
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_NAME "$PACKAGE_NAME"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_STRING "$PACKAGE_STRING"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1775 # Let the site file select an alternate cache file if it wants to.
1776 # Prefer explicitly selected file to automatically selected ones.
1777 if test -n "$CONFIG_SITE"; then
1778 set x "$CONFIG_SITE"
1779 elif test "x$prefix" != xNONE; then
1780 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1782 set x "$ac_default_prefix/share/config.site" \
1783 "$ac_default_prefix/etc/config.site"
1788 if test -r "$ac_site_file"; then
1789 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790 echo "$as_me: loading site script $ac_site_file" >&6;}
1791 sed 's/^/| /' "$ac_site_file" >&5
1796 if test -r "$cache_file"; then
1797 # Some versions of bash will fail to source /dev/null (special
1798 # files actually), so we avoid doing that.
1799 if test -f "$cache_file"; then
1800 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801 echo "$as_me: loading cache $cache_file" >&6;}
1803 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804 *) . "./$cache_file";;
1808 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809 echo "$as_me: creating cache $cache_file" >&6;}
1813 # Check that the precious variables saved in the cache have kept the same
1815 ac_cache_corrupted=false
1816 for ac_var in $ac_precious_vars; do
1817 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1818 eval ac_new_set=\$ac_env_${ac_var}_set
1819 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1820 eval ac_new_val=\$ac_env_${ac_var}_value
1821 case $ac_old_set,$ac_new_set in
1823 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1824 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1825 ac_cache_corrupted=: ;;
1827 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1828 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1829 ac_cache_corrupted=: ;;
1832 if test "x$ac_old_val" != "x$ac_new_val"; then
1833 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1834 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1835 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1836 echo "$as_me: former value: $ac_old_val" >&2;}
1837 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1838 echo "$as_me: current value: $ac_new_val" >&2;}
1839 ac_cache_corrupted=:
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1845 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 *) ac_arg=$ac_var=$ac_new_val ;;
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1850 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1854 if $ac_cache_corrupted; then
1855 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1856 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1857 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1858 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1859 { (exit 1); exit 1; }; }
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1894 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1903 for ac_dir in autoconf "$srcdir"/autoconf; do
1904 if test -f "$ac_dir/install-sh"; then
1906 ac_install_sh="$ac_aux_dir/install-sh -c"
1908 elif test -f "$ac_dir/install.sh"; then
1910 ac_install_sh="$ac_aux_dir/install.sh -c"
1912 elif test -f "$ac_dir/shtool"; then
1914 ac_install_sh="$ac_aux_dir/shtool install -c"
1918 if test -z "$ac_aux_dir"; then
1919 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1920 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1921 { (exit 1); exit 1; }; }
1924 # These three variables are undocumented and unsupported,
1925 # and are intended to be withdrawn in a future Autoconf release.
1926 # They can cause serious problems if a builder's source tree is in a directory
1927 # whose full name contains unusual characters.
1928 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1929 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1930 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1934 if test ${srcdir} != "." ; then
1935 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1936 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1937 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1938 { (exit 1); exit 1; }; }
1942 for i in `ls ${srcdir}/projects`
1944 if test -d ${srcdir}/projects/${i} ; then
1947 sample) subdirs="$subdirs projects/sample"
1949 privbracket) subdirs="$subdirs projects/privbracket"
1951 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1953 # llvm-test is the old name of the test-suite, kept here for backwards
1955 llvm-test) subdirs="$subdirs projects/llvm-test"
1957 test-suite) subdirs="$subdirs projects/test-suite"
1959 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1961 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1963 llvm-java) subdirs="$subdirs projects/llvm-java"
1965 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1967 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1969 poolalloc) subdirs="$subdirs projects/poolalloc"
1971 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1974 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1975 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1982 # Make sure we can run config.sub.
1983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1984 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1985 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1986 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: checking build system type" >&5
1989 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1990 if test "${ac_cv_build+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 ac_build_alias=$build_alias
1994 test "x$ac_build_alias" = x &&
1995 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1996 test "x$ac_build_alias" = x &&
1997 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1999 { (exit 1); exit 1; }; }
2000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2003 { (exit 1); exit 1; }; }
2006 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2007 echo "${ECHO_T}$ac_cv_build" >&6; }
2008 case $ac_cv_build in
2010 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2011 echo "$as_me: error: invalid value of canonical build" >&2;}
2012 { (exit 1); exit 1; }; };;
2015 ac_save_IFS=$IFS; IFS='-'
2021 # Remember, the first character of IFS is used to create $*,
2022 # except with old shells:
2025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2028 { echo "$as_me:$LINENO: checking host system type" >&5
2029 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2030 if test "${ac_cv_host+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test "x$host_alias" = x; then
2034 ac_cv_host=$ac_cv_build
2036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2037 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2038 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2039 { (exit 1); exit 1; }; }
2043 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2044 echo "${ECHO_T}$ac_cv_host" >&6; }
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2048 echo "$as_me: error: invalid value of canonical host" >&2;}
2049 { (exit 1); exit 1; }; };;
2052 ac_save_IFS=$IFS; IFS='-'
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2065 { echo "$as_me:$LINENO: checking target system type" >&5
2066 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_target+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test "x$target_alias" = x; then
2071 ac_cv_target=$ac_cv_host
2073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2081 echo "${ECHO_T}$ac_cv_target" >&6; }
2082 case $ac_cv_target in
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2085 echo "$as_me: error: invalid value of canonical target" >&2;}
2086 { (exit 1); exit 1; }; };;
2088 target=$ac_cv_target
2089 ac_save_IFS=$IFS; IFS='-'
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2102 # The aliases save the names the user supplied, while $host etc.
2103 # will get canonicalized.
2104 test -n "$target_alias" &&
2105 test "$program_prefix$program_suffix$program_transform_name" = \
2107 program_prefix=${target_alias}-
2109 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2110 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2111 if test "${llvm_cv_os_type+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 llvm_cv_link_all_option="-Wl,--whole-archive"
2117 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2118 llvm_cv_os_type="AIX"
2119 llvm_cv_platform_type="Unix" ;;
2121 llvm_cv_link_all_option="-Wl,--whole-archive"
2122 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2123 llvm_cv_os_type="IRIX"
2124 llvm_cv_platform_type="Unix" ;;
2126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128 llvm_cv_os_type="Cygwin"
2129 llvm_cv_platform_type="Unix" ;;
2131 llvm_cv_link_all_option="-Wl,-all_load"
2132 llvm_cv_no_link_all_option="-Wl,-noall_load"
2133 llvm_cv_os_type="Darwin"
2134 llvm_cv_platform_type="Unix" ;;
2136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138 llvm_cv_os_type="FreeBSD"
2139 llvm_cv_platform_type="Unix" ;;
2141 llvm_cv_link_all_option="-Wl,--whole-archive"
2142 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2143 llvm_cv_os_type="OpenBSD"
2144 llvm_cv_platform_type="Unix" ;;
2146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148 llvm_cv_os_type="NetBSD"
2149 llvm_cv_platform_type="Unix" ;;
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="DragonFly"
2154 llvm_cv_platform_type="Unix" ;;
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="HP-UX"
2159 llvm_cv_platform_type="Unix" ;;
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="Interix"
2164 llvm_cv_platform_type="Unix" ;;
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="Linux"
2169 llvm_cv_platform_type="Unix" ;;
2171 llvm_cv_link_all_option="-Wl,-z,allextract"
2172 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2173 llvm_cv_os_type="SunOS"
2174 llvm_cv_platform_type="Unix" ;;
2176 llvm_cv_link_all_option="-Wl,-z,allextract"
2177 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2178 llvm_cv_os_type="AuroraUX"
2179 llvm_cv_platform_type="Unix" ;;
2181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183 llvm_cv_os_type="Win32"
2184 llvm_cv_platform_type="Win32" ;;
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="MingW"
2189 llvm_cv_platform_type="Win32" ;;
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="Haiku"
2194 llvm_cv_platform_type="Unix" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="Freestanding"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Freestanding"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option=""
2207 llvm_cv_no_link_all_option=""
2208 llvm_cv_os_type="Unknown"
2209 llvm_cv_platform_type="Unknown" ;;
2212 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2213 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2215 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2216 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2217 if test "${llvm_cv_target_os_type+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 llvm_cv_target_os_type="AIX" ;;
2224 llvm_cv_target_os_type="IRIX" ;;
2226 llvm_cv_target_os_type="Cygwin" ;;
2228 llvm_cv_target_os_type="Darwin" ;;
2230 llvm_cv_target_os_type="FreeBSD" ;;
2232 llvm_cv_target_os_type="OpenBSD" ;;
2234 llvm_cv_target_os_type="NetBSD" ;;
2236 llvm_cv_target_os_type="DragonFly" ;;
2238 llvm_cv_target_os_type="HP-UX" ;;
2240 llvm_cv_target_os_type="Interix" ;;
2242 llvm_cv_target_os_type="Linux" ;;
2244 llvm_cv_target_os_type="SunOS" ;;
2246 llvm_cv_target_os_type="AuroraUX" ;;
2248 llvm_cv_target_os_type="Win32" ;;
2250 llvm_cv_target_os_type="MingW" ;;
2252 llvm_cv_target_os_type="Haiku" ;;
2254 llvm_cv_target_os_type="Freestanding" ;;
2256 llvm_cv_target_os_type="Unknown" ;;
2259 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2260 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2262 if test "$llvm_cv_os_type" = "Unknown" ; then
2263 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2264 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2265 { (exit 1); exit 1; }; }
2270 HOST_OS=$llvm_cv_os_type
2272 TARGET_OS=$llvm_cv_target_os_type
2275 LINKALL=$llvm_cv_link_all_option
2277 NOLINKALL=$llvm_cv_no_link_all_option
2280 case $llvm_cv_platform_type in
2283 cat >>confdefs.h <<\_ACEOF
2284 #define LLVM_ON_UNIX 1
2294 cat >>confdefs.h <<\_ACEOF
2295 #define LLVM_ON_WIN32 1
2305 { echo "$as_me:$LINENO: checking target architecture" >&5
2306 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2307 if test "${llvm_cv_target_arch+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 i?86-*) llvm_cv_target_arch="x86" ;;
2312 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2313 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2314 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2315 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2316 arm*-*) llvm_cv_target_arch="ARM" ;;
2317 mips-*) llvm_cv_target_arch="Mips" ;;
2318 pic16-*) llvm_cv_target_arch="PIC16" ;;
2319 xcore-*) llvm_cv_target_arch="XCore" ;;
2320 msp430-*) llvm_cv_target_arch="MSP430" ;;
2321 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2322 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2323 *) llvm_cv_target_arch="Unknown" ;;
2326 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2327 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2329 if test "$llvm_cv_target_arch" = "Unknown" ; then
2330 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2331 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2334 # Determine the LLVM native architecture for the target
2335 case "$llvm_cv_target_arch" in
2336 x86) LLVM_NATIVE_ARCH="X86" ;;
2337 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2338 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2341 ARCH=$llvm_cv_target_arch
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 if test -n "$CC"; then
2379 { echo "$as_me:$LINENO: result: $CC" >&5
2380 echo "${ECHO_T}$CC" >&6; }
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2388 if test -z "$ac_cv_prog_CC"; then
2390 # Extract the first word of "gcc", so it can be a program name with args.
2391 set dummy gcc; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_ac_ct_CC="gcc"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2418 if test -n "$ac_ct_CC"; then
2419 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2420 echo "${ECHO_T}$ac_ct_CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2426 if test "x$ac_ct_CC" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: 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." >&2;}
2437 ac_tool_warned=yes ;;
2445 if test -z "$CC"; then
2446 if test -n "$ac_tool_prefix"; then
2447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2448 set dummy ${ac_tool_prefix}cc; ac_word=$2
2449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_CC+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_CC="${ac_tool_prefix}cc"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 if test -n "$CC"; then
2476 { echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6; }
2479 { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2486 if test -z "$CC"; then
2487 # Extract the first word of "cc", so it can be a program name with args.
2488 set dummy cc; ac_word=$2
2489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491 if test "${ac_cv_prog_CC+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2506 ac_prog_rejected=yes
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test $ac_prog_rejected = yes; then
2518 # We found a bogon in the path, so make sure we never use it.
2519 set dummy $ac_cv_prog_CC
2521 if test $# != 0; then
2522 # We chose a different compiler from the bogus one.
2523 # However, it has the same basename, so the bogon will be chosen
2524 # first if we set CC to just the basename; use the full file name.
2526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2532 if test -n "$CC"; then
2533 { echo "$as_me:$LINENO: result: $CC" >&5
2534 echo "${ECHO_T}$CC" >&6; }
2536 { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2542 if test -z "$CC"; then
2543 if test -n "$ac_tool_prefix"; then
2544 for ac_prog in cl.exe
2546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2583 test -n "$CC" && break
2586 if test -z "$CC"; then
2588 for ac_prog in cl.exe
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$ac_ct_CC"; then
2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_ac_ct_CC="$ac_prog"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618 if test -n "$ac_ct_CC"; then
2619 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2620 echo "${ECHO_T}$ac_ct_CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2627 test -n "$ac_ct_CC" && break
2630 if test "x$ac_ct_CC" = x; then
2633 case $cross_compiling:$ac_tool_warned in
2635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&5
2638 echo "$as_me: 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." >&2;}
2641 ac_tool_warned=yes ;;
2650 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&5
2652 echo "$as_me: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&2;}
2654 { (exit 1); exit 1; }; }
2656 # Provide some information about the compiler.
2657 echo "$as_me:$LINENO: checking for C compiler version" >&5
2658 ac_compiler=`set X $ac_compile; echo $2`
2659 { (ac_try="$ac_compiler --version >&5"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compiler --version >&5") 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2669 { (ac_try="$ac_compiler -v >&5"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler -v >&5") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (ac_try="$ac_compiler -V >&5"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -V >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 ac_clean_files_save=$ac_clean_files
2706 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2707 # Try to create an executable without -o first, disregard a.out.
2708 # It will help us diagnose broken compilers, and finding out an intuition
2710 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2711 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2712 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2714 # List of possible output files, starting from the most likely.
2715 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2716 # only as a last resort. b.out is created by i960 compilers.
2717 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2719 # The IRIX 6 linker writes into existing files which may not be
2720 # executable, retaining their permissions. Remove them first so a
2721 # subsequent execution test works.
2723 for ac_file in $ac_files
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732 if { (ac_try="$ac_link_default"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_link_default") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; then
2742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2745 # so that the user can short-circuit this test for compilers unknown to
2747 for ac_file in $ac_files
2749 test -f "$ac_file" || continue
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2754 # We found the default executable, but exeext='' is most
2758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 # We set ac_cv_exeext here because the later test for it is not
2763 # safe: cross compilers may not add the suffix if given an `-o'
2764 # argument, so we may need to know it at that point already.
2765 # Even if this section looks crufty: it has the advantage of
2772 test "$ac_cv_exeext" = no && ac_cv_exeext=
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: C compiler cannot create executables
2781 See \`config.log' for more details." >&2;}
2782 { (exit 77); exit 77; }; }
2785 ac_exeext=$ac_cv_exeext
2786 { echo "$as_me:$LINENO: result: $ac_file" >&5
2787 echo "${ECHO_T}$ac_file" >&6; }
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2792 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2793 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2794 # If not cross compiling, check that we can run a simple program.
2795 if test "$cross_compiling" != yes; then
2796 if { ac_try='./$ac_file'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 if test "$cross_compiling" = maybe; then
2811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2821 { echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6; }
2824 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2825 ac_clean_files=$ac_clean_files_save
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2829 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2830 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2831 echo "${ECHO_T}$cross_compiling" >&6; }
2833 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2834 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2835 if { (ac_try="$ac_link"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_link") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2847 # work properly (i.e., refer to `conftest.exe'), while it won't with
2849 for ac_file in conftest.exe conftest conftest.*; do
2850 test -f "$ac_file" || continue
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }
2866 rm -f conftest$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2870 rm -f conftest.$ac_ext
2871 EXEEXT=$ac_cv_exeext
2873 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2875 if test "${ac_cv_objext+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2893 rm -f conftest.o conftest.obj
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 for ac_file in conftest.o conftest.obj conftest.*; do
2905 test -f "$ac_file" || continue;
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2925 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2926 echo "${ECHO_T}$ac_cv_objext" >&6; }
2927 OBJEXT=$ac_cv_objext
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000 GCC=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CFLAGS=${CFLAGS+set}
3002 ac_save_CFLAGS=$CFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3004 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 ac_c_werror_flag=$ac_save_c_werror_flag
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3191 if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193 elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3200 if test "$GCC" = yes; then
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_prog_cc_c89=no
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3289 { (case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_try") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_cv_prog_cc_c89=$ac_arg
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3316 rm -f core conftest.err conftest.$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 rm -f conftest.$ac_ext
3324 case "x$ac_cv_prog_cc_c89" in
3326 { echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6; } ;;
3329 { echo "$as_me:$LINENO: result: unsupported" >&5
3330 echo "${ECHO_T}unsupported" >&6; } ;;
3332 CC="$CC $ac_cv_prog_cc_c89"
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3356 if test -z "$CPP"; then
3357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 # Double quotes because CPP needs to be expanded
3361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3379 # include <limits.h>
3381 # include <assert.h>
3385 if { (ac_try="$ac_cpp conftest.$ac_ext"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407 if test -z "$ac_cpp_err"; then
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3417 rm -f conftest.err conftest.$ac_ext
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3452 # Broken: success on invalid input.
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Passes both tests.
3463 rm -f conftest.err conftest.$ac_ext
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3480 { echo "$as_me:$LINENO: result: $CPP" >&5
3481 echo "${ECHO_T}$CPP" >&6; }
3483 for ac_c_preproc_warn_flag in '' yes
3485 # Use a header file that comes with gcc, so configuring glibc
3486 # with a fresh cross-compiler works.
3487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3488 # <limits.h> exists even on freestanding compilers.
3489 # On the NeXT, cc -E runs the code through the compiler's parser,
3490 # not just through cpp. "Syntax error" is here to catch this case.
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3498 # include <limits.h>
3500 # include <assert.h>
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null; then
3517 if test -s conftest.err; then
3518 ac_cpp_err=$ac_c_preproc_warn_flag
3519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3526 if test -z "$ac_cpp_err"; then
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 # Broken: fails on valid input.
3536 rm -f conftest.err conftest.$ac_ext
3538 # OK, works on sane cases. Now check whether nonexistent headers
3539 # can be detected and how.
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <ac_nonexistent.h>
3548 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } >/dev/null; then
3561 if test -s conftest.err; then
3562 ac_cpp_err=$ac_c_preproc_warn_flag
3563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3570 if test -z "$ac_cpp_err"; then
3571 # Broken: success on invalid input.
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 # Passes both tests.
3582 rm -f conftest.err conftest.$ac_ext
3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586 rm -f conftest.err conftest.$ac_ext
3587 if $ac_preproc_ok; then
3590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&5
3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&2;}
3594 { (exit 1); exit 1; }; }
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3605 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3606 if test "${ac_cv_path_GREP+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 # Extract the first word of "grep ggrep" to use in msg output
3610 if test -z "$GREP"; then
3611 set dummy grep ggrep; ac_prog_name=$2
3612 if test "${ac_cv_path_GREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 ac_path_GREP_found=false
3616 # Loop through the user's path and test for each of PROGNAME-LIST
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 test -z "$as_dir" && as_dir=.
3622 for ac_prog in grep ggrep; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3625 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3626 # Check for GNU ac_path_GREP and select it if it is found.
3627 # Check for GNU $ac_path_GREP
3628 case `"$ac_path_GREP" --version 2>&1` in
3630 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3636 cat "conftest.in" "conftest.in" >"conftest.tmp"
3637 mv "conftest.tmp" "conftest.in"
3638 cp "conftest.in" "conftest.nl"
3639 echo 'GREP' >> "conftest.nl"
3640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642 ac_count=`expr $ac_count + 1`
3643 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3644 # Best one so far, save it but keep looking for a better one
3645 ac_cv_path_GREP="$ac_path_GREP"
3646 ac_path_GREP_max=$ac_count
3648 # 10*(2^10) chars as input seems more than enough
3649 test $ac_count -gt 10 && break
3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655 $ac_path_GREP_found && break 3
3665 GREP="$ac_cv_path_GREP"
3666 if test -z "$GREP"; then
3667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3669 { (exit 1); exit 1; }; }
3673 ac_cv_path_GREP=$GREP
3678 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3679 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3680 GREP="$ac_cv_path_GREP"
3683 { echo "$as_me:$LINENO: checking for egrep" >&5
3684 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3685 if test "${ac_cv_path_EGREP+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689 then ac_cv_path_EGREP="$GREP -E"
3691 # Extract the first word of "egrep" to use in msg output
3692 if test -z "$EGREP"; then
3693 set dummy egrep; ac_prog_name=$2
3694 if test "${ac_cv_path_EGREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_path_EGREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in egrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3707 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3708 # Check for GNU ac_path_EGREP and select it if it is found.
3709 # Check for GNU $ac_path_EGREP
3710 case `"$ac_path_EGREP" --version 2>&1` in
3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 echo 'EGREP' >> "conftest.nl"
3722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 ac_count=`expr $ac_count + 1`
3725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_EGREP="$ac_path_EGREP"
3728 ac_path_EGREP_max=$ac_count
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 $ac_path_EGREP_found && break 3
3747 EGREP="$ac_cv_path_EGREP"
3748 if test -z "$EGREP"; then
3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3750 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3751 { (exit 1); exit 1; }; }
3755 ac_cv_path_EGREP=$EGREP
3761 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3762 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3763 EGREP="$ac_cv_path_EGREP"
3766 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3767 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3768 if test "${ac_cv_header_stdc+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3805 { (case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_try") 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_header_stdc=yes
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 ac_cv_header_stdc=no
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 if test $ac_cv_header_stdc = yes; then
3835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 $EGREP "memchr" >/dev/null 2>&1; then
3849 ac_cv_header_stdc=no
3855 if test $ac_cv_header_stdc = yes; then
3856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867 $EGREP "free" >/dev/null 2>&1; then
3870 ac_cv_header_stdc=no
3876 if test $ac_cv_header_stdc = yes; then
3877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3878 if test "$cross_compiling" = yes; then
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3889 #if ((' ' & 0x0FF) == 0x020)
3890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3893 # define ISLOWER(c) \
3894 (('a' <= (c) && (c) <= 'i') \
3895 || ('j' <= (c) && (c) <= 'r') \
3896 || ('s' <= (c) && (c) <= 'z'))
3897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3905 for (i = 0; i < 256; i++)
3906 if (XOR (islower (i), ISLOWER (i))
3907 || toupper (i) != TOUPPER (i))
3912 rm -f conftest$ac_exeext
3913 if { (ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_link") 2>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3923 { (case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_try") 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3934 echo "$as_me: program exited with status $ac_status" >&5
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_header_stdc=no
3941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3947 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3948 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3949 if test $ac_cv_header_stdc = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define STDC_HEADERS 1
3957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3967 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3968 inttypes.h stdint.h unistd.h
3970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 $ac_includes_default
3984 #include <$ac_header>
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try='test -s conftest.$ac_objext'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 eval "$as_ac_Header=yes"
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 eval "$as_ac_Header=no"
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_res=`eval echo '${'$as_ac_Header'}'`
4031 { echo "$as_me:$LINENO: result: $ac_res" >&5
4032 echo "${ECHO_T}$ac_res" >&6; }
4033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4034 cat >>confdefs.h <<_ACEOF
4035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4043 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4044 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4045 if test "${ac_cv_c_bigendian+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 # See if sys/param.h defines the BYTE_ORDER macro.
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <sys/types.h>
4056 #include <sys/param.h>
4061 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 # It does; now see whether it defined to BIG_ENDIAN or not.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <sys/types.h>
4111 #include <sys/param.h>
4116 #if BYTE_ORDER != BIG_ENDIAN
4124 rm -f conftest.$ac_objext
4125 if { (ac_try="$ac_compile"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_c_bigendian=yes
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_cv_c_bigendian=no
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 # It does not; compile a test program.
4172 if test "$cross_compiling" = yes; then
4173 # try to guess the endianness by grepping values into an object file
4174 ac_cv_c_bigendian=unknown
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4182 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4183 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4184 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4185 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4186 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4190 _ascii (); _ebcdic ();
4195 rm -f conftest.$ac_objext
4196 if { (ac_try="$ac_compile"
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compile") 2>conftest.er1
4204 grep -v '^ *+' conftest.er1 >conftest.err
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4210 { (case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_try") 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4230 ac_cv_c_bigendian=yes
4232 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4233 if test "$ac_cv_c_bigendian" = unknown; then
4234 ac_cv_c_bigendian=no
4236 # finding both strings is unlikely to happen, but who knows?
4237 ac_cv_c_bigendian=unknown
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4260 /* Are we little or big endian? From Harbison&Steele. */
4264 char c[sizeof (long int)];
4267 return u.c[sizeof (long int) - 1] == 1;
4273 rm -f conftest$ac_exeext
4274 if { (ac_try="$ac_link"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_link") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_c_bigendian=no
4295 echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_cv_c_bigendian=yes
4302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4311 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4312 case $ac_cv_c_bigendian in
4320 { { echo "$as_me:$LINENO: error: unknown endianness
4321 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4322 echo "$as_me: error: unknown endianness
4323 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4324 { (exit 1); exit 1; }; } ;;
4328 if test "$cross_compiling" = yes; then
4329 LLVM_CROSS_COMPILING=1
4332 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4333 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4334 if test "${ac_cv_build_exeext+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4338 ac_cv_build_exeext=.exe
4340 ac_build_prefix=${build_alias}-
4342 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4343 set dummy ${ac_build_prefix}gcc; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$BUILD_CC"; then
4350 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 BUILD_CC=$ac_cv_prog_BUILD_CC
4370 if test -n "$BUILD_CC"; then
4371 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4372 echo "${ECHO_T}$BUILD_CC" >&6; }
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 if test -z "$BUILD_CC"; then
4380 # Extract the first word of "gcc", so it can be a program name with args.
4381 set dummy gcc; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$BUILD_CC"; then
4388 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_BUILD_CC="gcc"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 BUILD_CC=$ac_cv_prog_BUILD_CC
4408 if test -n "$BUILD_CC"; then
4409 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4410 echo "${ECHO_T}$BUILD_CC" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4417 if test -z "$BUILD_CC"; then
4418 # Extract the first word of "cc", so it can be a program name with args.
4419 set dummy cc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$BUILD_CC"; then
4426 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4437 ac_prog_rejected=yes
4440 ac_cv_prog_BUILD_CC="cc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 if test $ac_prog_rejected = yes; then
4449 # We found a bogon in the path, so make sure we never use it.
4450 set dummy $ac_cv_prog_BUILD_CC
4452 if test $# != 0; then
4453 # We chose a different compiler from the bogus one.
4454 # However, it has the same basename, so the bogon will be chosen
4455 # first if we set BUILD_CC to just the basename; use the full file name.
4457 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4462 BUILD_CC=$ac_cv_prog_BUILD_CC
4463 if test -n "$BUILD_CC"; then
4464 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4465 echo "${ECHO_T}$BUILD_CC" >&6; }
4467 { echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6; }
4474 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4475 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4476 { (exit 1); exit 1; }; }
4477 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4479 echo 'int main () { return 0; }' > conftest.$ac_ext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4482 (eval $ac_build_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; then
4486 for file in conftest.*; do
4488 *.c | *.o | *.obj | *.dSYM) ;;
4489 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4493 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4494 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4495 { (exit 1); exit 1; }; }
4498 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4503 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4504 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4505 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4506 ac_build_exeext=$BUILD_EXEEXT
4508 ac_build_prefix=${build_alias}-
4509 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4510 set dummy ${ac_build_prefix}g++; ac_word=$2
4511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4513 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 if test -n "$BUILD_CXX"; then
4517 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4537 if test -n "$BUILD_CXX"; then
4538 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4539 echo "${ECHO_T}$BUILD_CXX" >&6; }
4541 { echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6; }
4546 if test -z "$BUILD_CXX"; then
4547 # Extract the first word of "g++", so it can be a program name with args.
4548 set dummy g++; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test -n "$BUILD_CXX"; then
4555 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_BUILD_CXX="g++"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4575 if test -n "$BUILD_CXX"; then
4576 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4577 echo "${ECHO_T}$BUILD_CXX" >&6; }
4579 { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4584 if test -z "$BUILD_CXX"; then
4585 # Extract the first word of "c++", so it can be a program name with args.
4586 set dummy c++; ac_word=$2
4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 if test -n "$BUILD_CXX"; then
4593 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4604 ac_prog_rejected=yes
4607 ac_cv_prog_BUILD_CXX="c++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 if test $ac_prog_rejected = yes; then
4616 # We found a bogon in the path, so make sure we never use it.
4617 set dummy $ac_cv_prog_BUILD_CXX
4619 if test $# != 0; then
4620 # We chose a different compiler from the bogus one.
4621 # However, it has the same basename, so the bogon will be chosen
4622 # first if we set BUILD_CXX to just the basename; use the full file name.
4624 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4629 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4630 if test -n "$BUILD_CXX"; then
4631 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4632 echo "${ECHO_T}$BUILD_CXX" >&6; }
4634 { echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6; }
4642 LLVM_CROSS_COMPILING=0
4646 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4657 # Check whether --enable-optimized was given.
4658 if test "${enable_optimized+set}" = set; then
4659 enableval=$enable_optimized;
4664 if test ${enableval} = "no" ; then
4668 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4672 # Check whether --enable-profiling was given.
4673 if test "${enable_profiling+set}" = set; then
4674 enableval=$enable_profiling;
4679 if test ${enableval} = "no" ; then
4683 ENABLE_PROFILING=ENABLE_PROFILING=1
4687 # Check whether --enable-assertions was given.
4688 if test "${enable_assertions+set}" = set; then
4689 enableval=$enable_assertions;
4694 if test ${enableval} = "yes" ; then
4698 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4702 # Check whether --enable-expensive-checks was given.
4703 if test "${enable_expensive_checks+set}" = set; then
4704 enableval=$enable_expensive_checks;
4709 if test ${enableval} = "yes" ; then
4710 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4712 EXPENSIVE_CHECKS=yes
4715 ENABLE_EXPENSIVE_CHECKS=
4721 # Check whether --enable-debug-runtime was given.
4722 if test "${enable_debug_runtime+set}" = set; then
4723 enableval=$enable_debug_runtime;
4728 if test ${enableval} = "no" ; then
4732 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4736 # Check whether --enable-debug-symbols was given.
4737 if test "${enable_debug_symbols+set}" = set; then
4738 enableval=$enable_debug_symbols;
4743 if test ${enableval} = "no" ; then
4747 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4751 # Check whether --enable-jit was given.
4752 if test "${enable_jit+set}" = set; then
4753 enableval=$enable_jit;
4758 if test ${enableval} = "no"
4763 case "$llvm_cv_target_arch" in
4764 x86) TARGET_HAS_JIT=1
4766 Sparc) TARGET_HAS_JIT=0
4768 PowerPC) TARGET_HAS_JIT=1
4770 x86_64) TARGET_HAS_JIT=1
4772 Alpha) TARGET_HAS_JIT=1
4774 ARM) TARGET_HAS_JIT=1
4776 Mips) TARGET_HAS_JIT=0
4778 PIC16) TARGET_HAS_JIT=0
4780 XCore) TARGET_HAS_JIT=0
4782 MSP430) TARGET_HAS_JIT=0
4784 SystemZ) TARGET_HAS_JIT=0
4786 Blackfin) TARGET_HAS_JIT=0
4793 # Check whether --enable-doxygen was given.
4794 if test "${enable_doxygen+set}" = set; then
4795 enableval=$enable_doxygen;
4800 case "$enableval" in
4801 yes) ENABLE_DOXYGEN=1
4803 no) ENABLE_DOXYGEN=0
4805 default) ENABLE_DOXYGEN=0
4807 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4808 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4809 { (exit 1); exit 1; }; } ;;
4812 # Check whether --enable-threads was given.
4813 if test "${enable_threads+set}" = set; then
4814 enableval=$enable_threads;
4819 case "$enableval" in
4820 yes) ENABLE_THREADS=1
4822 no) ENABLE_THREADS=0
4824 default) ENABLE_THREADS=1
4826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4827 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
4831 cat >>confdefs.h <<_ACEOF
4832 #define ENABLE_THREADS $ENABLE_THREADS
4836 # Check whether --enable-pic was given.
4837 if test "${enable_pic+set}" = set; then
4838 enableval=$enable_pic;
4843 case "$enableval" in
4848 default) ENABLE_PIC=1
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 cat >>confdefs.h <<_ACEOF
4856 #define ENABLE_PIC $ENABLE_PIC
4861 # Check whether --enable-targets was given.
4862 if test "${enable_targets+set}" = set; then
4863 enableval=$enable_targets;
4868 if test "$enableval" = host-only ; then
4871 case "$enableval" in
4872 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4873 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4875 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4876 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4877 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4878 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4879 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4880 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4881 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4882 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4883 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4884 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4885 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4886 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4887 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4888 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4889 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4890 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4891 host) case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4893 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4897 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4898 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4899 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4900 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4901 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4902 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4903 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4904 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4905 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4906 echo "$as_me: error: Can not set target to build" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4909 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4910 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4911 { (exit 1); exit 1; }; } ;;
4916 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4919 # Determine whether we are building LLVM support for the native architecture.
4920 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4921 for a_target in $TARGETS_TO_BUILD; do
4922 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4923 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4925 cat >>confdefs.h <<_ACEOF
4926 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4932 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4933 # target feature def files.
4934 LLVM_ENUM_TARGETS=""
4935 LLVM_ENUM_ASM_PRINTERS=""
4936 LLVM_ENUM_ASM_PARSERS=""
4937 LLVM_ENUM_DISASSEMBLERS=""
4938 for target_to_build in $TARGETS_TO_BUILD; do
4939 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4940 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4941 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4943 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4944 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4946 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4947 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4955 # Check whether --enable-cbe-printf-a was given.
4956 if test "${enable_cbe_printf_a+set}" = set; then
4957 enableval=$enable_cbe_printf_a;
4962 case "$enableval" in
4963 yes) ENABLE_CBE_PRINTF_A=1
4965 no) ENABLE_CBE_PRINTF_A=0
4967 default) ENABLE_CBE_PRINTF_A=1
4969 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4970 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4974 cat >>confdefs.h <<_ACEOF
4975 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4980 # Check whether --with-llvmgccdir was given.
4981 if test "${with_llvmgccdir+set}" = set; then
4982 withval=$with_llvmgccdir;
4988 default) WITH_LLVMGCCDIR=default ;;
4989 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4990 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4991 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4992 { (exit 1); exit 1; }; } ;;
4996 # Check whether --with-llvmgcc was given.
4997 if test "${with_llvmgcc+set}" = set; then
4998 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5004 # Check whether --with-llvmgxx was given.
5005 if test "${with_llvmgxx+set}" = set; then
5006 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5011 if test -n "$LLVMGCC"; then
5012 LLVMGCCCOMMAND="$LLVMGCC"
5015 if test -n "$LLVMGXX"; then
5016 LLVMGXXCOMMAND="$LLVMGXX"
5019 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5020 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5021 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5022 { (exit 1); exit 1; }; };
5025 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5026 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5027 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5028 { (exit 1); exit 1; }; };
5032 # Check whether --with-optimize-option was given.
5033 if test "${with_optimize_option+set}" = set; then
5034 withval=$with_optimize_option;
5039 { echo "$as_me:$LINENO: checking optimization flags" >&5
5040 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5043 case "$llvm_cv_os_type" in
5044 MingW) optimize_option=-O3 ;;
5045 *) optimize_option=-O2 ;;
5047 *) optimize_option="$withval" ;;
5049 OPTIMIZE_OPTION=$optimize_option
5051 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5052 echo "${ECHO_T}$optimize_option" >&6; }
5055 # Check whether --with-extra-options was given.
5056 if test "${with_extra_options+set}" = set; then
5057 withval=$with_extra_options;
5063 default) EXTRA_OPTIONS= ;;
5064 *) EXTRA_OPTIONS=$withval ;;
5066 EXTRA_OPTIONS=$EXTRA_OPTIONS
5069 # Check whether --enable-bindings was given.
5070 if test "${enable_bindings+set}" = set; then
5071 enableval=$enable_bindings;
5076 BINDINGS_TO_BUILD=""
5077 case "$enableval" in
5078 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5079 all ) BINDINGS_TO_BUILD="ocaml" ;;
5080 none | no) BINDINGS_TO_BUILD="" ;;
5081 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5082 case "$a_binding" in
5083 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5084 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5085 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5093 # Check whether --with-ocaml-libdir was given.
5094 if test "${with_ocaml_libdir+set}" = set; then
5095 withval=$with_ocaml_libdir;
5101 auto) with_ocaml_libdir="$withval" ;;
5102 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5103 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5104 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5109 # Check whether --with-c-include-dirs was given.
5110 if test "${with_c_include_dirs+set}" = set; then
5111 withval=$with_c_include_dirs;
5117 cat >>confdefs.h <<_ACEOF
5118 #define C_INCLUDE_DIRS "$withval"
5123 # Check whether --with-cxx-include-root was given.
5124 if test "${with_cxx_include_root+set}" = set; then
5125 withval=$with_cxx_include_root;
5131 cat >>confdefs.h <<_ACEOF
5132 #define CXX_INCLUDE_ROOT "$withval"
5137 # Check whether --with-cxx-include-arch was given.
5138 if test "${with_cxx_include_arch+set}" = set; then
5139 withval=$with_cxx_include_arch;
5145 cat >>confdefs.h <<_ACEOF
5146 #define CXX_INCLUDE_ARCH "$withval"
5151 # Check whether --with-cxx-include-32bit-dir was given.
5152 if test "${with_cxx_include_32bit_dir+set}" = set; then
5153 withval=$with_cxx_include_32bit_dir;
5159 cat >>confdefs.h <<_ACEOF
5160 #define CXX_INCLUDE_32BIT_DIR "$withval"
5165 # Check whether --with-cxx-include-64bit-dir was given.
5166 if test "${with_cxx_include_64bit_dir+set}" = set; then
5167 withval=$with_cxx_include_64bit_dir;
5173 cat >>confdefs.h <<_ACEOF
5174 #define CXX_INCLUDE_64BIT_DIR "$withval"
5179 # Check whether --with-binutils-include was given.
5180 if test "${with_binutils_include+set}" = set; then
5181 withval=$with_binutils_include;
5187 default) WITH_BINUTILS_INCDIR=default ;;
5188 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5189 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5190 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5193 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5194 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5196 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5197 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5198 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5199 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5200 { (exit 1); exit 1; }; };
5204 # Check whether --enable-libffi was given.
5205 if test "${enable_libffi+set}" = set; then
5206 enableval=$enable_libffi; case "$enableval" in
5207 yes) llvm_cv_enable_libffi="yes" ;;
5208 no) llvm_cv_enable_libffi="no" ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 llvm_cv_enable_libffi=no
5218 if test "$llvm_cv_os_type" = "Win32" ; then
5224 # Check whether --enable-llvmc-dynamic was given.
5225 if test "${enable_llvmc_dynamic+set}" = set; then
5226 enableval=$enable_llvmc_dynamic;
5228 enableval=$llvmc_dynamic
5231 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5232 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5235 ENABLE_LLVMC_DYNAMIC=
5239 # Check whether --enable-llvmc-dynamic-plugins was given.
5240 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5241 enableval=$enable_llvmc_dynamic_plugins;
5246 if test ${enableval} = "yes" ; then
5247 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5250 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5262 # On Suns, sometimes $CPP names a directory.
5263 if test -n "$CPP" && test -d "$CPP"; then
5266 if test -z "$CPP"; then
5267 if test "${ac_cv_prog_CPP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 # Double quotes because CPP needs to be expanded
5271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5274 for ac_c_preproc_warn_flag in '' yes
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5289 # include <limits.h>
5291 # include <assert.h>
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317 if test -z "$ac_cpp_err"; then
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 # Broken: fails on valid input.
5327 rm -f conftest.err conftest.$ac_ext
5329 # OK, works on sane cases. Now check whether nonexistent headers
5330 # can be detected and how.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <ac_nonexistent.h>
5339 if { (ac_try="$ac_cpp conftest.$ac_ext"
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } >/dev/null; then
5352 if test -s conftest.err; then
5353 ac_cpp_err=$ac_c_preproc_warn_flag
5354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5361 if test -z "$ac_cpp_err"; then
5362 # Broken: success on invalid input.
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 # Passes both tests.
5373 rm -f conftest.err conftest.$ac_ext
5376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.err conftest.$ac_ext
5378 if $ac_preproc_ok; then
5390 { echo "$as_me:$LINENO: result: $CPP" >&5
5391 echo "${ECHO_T}$CPP" >&6; }
5393 for ac_c_preproc_warn_flag in '' yes
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5408 # include <limits.h>
5410 # include <assert.h>
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436 if test -z "$ac_cpp_err"; then
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 # Broken: fails on valid input.
5446 rm -f conftest.err conftest.$ac_ext
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <ac_nonexistent.h>
5458 if { (ac_try="$ac_cpp conftest.$ac_ext"
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_c_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5480 if test -z "$ac_cpp_err"; then
5481 # Broken: success on invalid input.
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 # Passes both tests.
5492 rm -f conftest.err conftest.$ac_ext
5495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5496 rm -f conftest.err conftest.$ac_ext
5497 if $ac_preproc_ok; then
5500 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5501 See \`config.log' for more details." >&5
5502 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5503 See \`config.log' for more details." >&2;}
5504 { (exit 1); exit 1; }; }
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514 ac_cpp='$CPP $CPPFLAGS'
5515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518 if test -n "$ac_tool_prefix"; then
5521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_prog_CC+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 if test -n "$CC"; then
5529 ac_cv_prog_CC="$CC" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 if test -n "$CC"; then
5550 { echo "$as_me:$LINENO: result: $CC" >&5
5551 echo "${ECHO_T}$CC" >&6; }
5553 { echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6; }
5558 test -n "$CC" && break
5561 if test -z "$CC"; then
5565 # Extract the first word of "$ac_prog", so it can be a program name with args.
5566 set dummy $ac_prog; ac_word=$2
5567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 if test -n "$ac_ct_CC"; then
5573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_ac_ct_CC="$ac_prog"
5583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5593 if test -n "$ac_ct_CC"; then
5594 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5595 echo "${ECHO_T}$ac_ct_CC" >&6; }
5597 { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5602 test -n "$ac_ct_CC" && break
5605 if test "x$ac_ct_CC" = x; then
5608 case $cross_compiling:$ac_tool_warned in
5610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5611 whose name does not start with the host triplet. If you think this
5612 configuration is useful to you, please write to autoconf@gnu.org." >&5
5613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5614 whose name does not start with the host triplet. If you think this
5615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5616 ac_tool_warned=yes ;;
5623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5624 See \`config.log' for more details." >&5
5625 echo "$as_me: error: no acceptable C compiler found in \$PATH
5626 See \`config.log' for more details." >&2;}
5627 { (exit 1); exit 1; }; }
5629 # Provide some information about the compiler.
5630 echo "$as_me:$LINENO: checking for C compiler version" >&5
5631 ac_compiler=`set X $ac_compile; echo $2`
5632 { (ac_try="$ac_compiler --version >&5"
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compiler --version >&5") 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }
5642 { (ac_try="$ac_compiler -v >&5"
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compiler -v >&5") 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5652 { (ac_try="$ac_compiler -V >&5"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compiler -V >&5") 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }
5663 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5664 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5665 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5701 { (case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_try") 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_try") 2>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5732 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5733 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5734 GCC=`test $ac_compiler_gnu = yes && echo yes`
5735 ac_test_CFLAGS=${CFLAGS+set}
5736 ac_save_CFLAGS=$CFLAGS
5737 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5738 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5739 if test "${ac_cv_prog_cc_g+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 ac_save_c_werror_flag=$ac_c_werror_flag
5743 ac_c_werror_flag=yes
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_try") 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_c_werror_flag=$ac_save_c_werror_flag
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5872 rm -f conftest.$ac_objext
5873 if { (ac_try="$ac_compile"
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5887 { (case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 ac_c_werror_flag=$ac_save_c_werror_flag
5923 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5925 if test "$ac_test_CFLAGS" = set; then
5926 CFLAGS=$ac_save_CFLAGS
5927 elif test $ac_cv_prog_cc_g = yes; then
5928 if test "$GCC" = yes; then
5934 if test "$GCC" = yes; then
5940 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5941 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5942 if test "${ac_cv_prog_cc_c89+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_cv_prog_cc_c89=no
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5955 #include <sys/types.h>
5956 #include <sys/stat.h>
5957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5958 struct buf { int x; };
5959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5960 static char *e (p, i)
5966 static char *f (char * (*g) (char **, int), char **p, ...)
5971 s = g (p, va_arg (v,int));
5976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5977 function prototypes and stuff, but not '\xHH' hex character constants.
5978 These don't provoke an error unfortunately, instead are silently treated
5979 as 'x'. The following induces an error, until -std is added to get
5980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5981 array size at least. It's necessary to write '\x00'==0 to get something
5982 that's true only with -std. */
5983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5986 inside strings and character constants. */
5988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5990 int test (int i, double x);
5991 struct s1 {int (*f) (int a);};
5992 struct s2 {int (*f) (double a);};
5993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6007 CC="$ac_save_CC $ac_arg"
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_try") 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cc_c89=$ac_arg
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6050 rm -f core conftest.err conftest.$ac_objext
6051 test "x$ac_cv_prog_cc_c89" != "xno" && break
6053 rm -f conftest.$ac_ext
6058 case "x$ac_cv_prog_cc_c89" in
6060 { echo "$as_me:$LINENO: result: none needed" >&5
6061 echo "${ECHO_T}none needed" >&6; } ;;
6063 { echo "$as_me:$LINENO: result: unsupported" >&5
6064 echo "${ECHO_T}unsupported" >&6; } ;;
6066 CC="$CC $ac_cv_prog_cc_c89"
6067 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6068 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079 ac_cpp='$CXXCPP $CPPFLAGS'
6080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6083 if test -z "$CXX"; then
6084 if test -n "$CCC"; then
6087 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_CXX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$CXX"; then
6098 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 if test -n "$CXX"; then
6119 { echo "$as_me:$LINENO: result: $CXX" >&5
6120 echo "${ECHO_T}$CXX" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6127 test -n "$CXX" && break
6130 if test -z "$CXX"; then
6134 # Extract the first word of "$ac_prog", so it can be a program name with args.
6135 set dummy $ac_prog; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$ac_ct_CXX"; then
6142 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_CXX="$ac_prog"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6162 if test -n "$ac_ct_CXX"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6164 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6171 test -n "$ac_ct_CXX" && break
6174 if test "x$ac_ct_CXX" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6180 whose name does not start with the host triplet. If you think this
6181 configuration is useful to you, please write to autoconf@gnu.org." >&5
6182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet. If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6185 ac_tool_warned=yes ;;
6193 # Provide some information about the compiler.
6194 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6195 ac_compiler=`set X $ac_compile; echo $2`
6196 { (ac_try="$ac_compiler --version >&5"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compiler --version >&5") 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206 { (ac_try="$ac_compiler -v >&5"
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler -v >&5") 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216 { (ac_try="$ac_compiler -V >&5"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compiler -V >&5") 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }
6227 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6228 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6229 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6296 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6297 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6298 GXX=`test $ac_compiler_gnu = yes && echo yes`
6299 ac_test_CXXFLAGS=${CXXFLAGS+set}
6300 ac_save_CXXFLAGS=$CXXFLAGS
6301 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6302 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_cxx_g+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6307 ac_cxx_werror_flag=yes
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6325 rm -f conftest.$ac_objext
6326 if { (ac_try="$ac_compile"
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_try") 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_prog_cxx_g=yes
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6451 { (case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_prog_cxx_g=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6487 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6488 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6489 if test "$ac_test_CXXFLAGS" = set; then
6490 CXXFLAGS=$ac_save_CXXFLAGS
6491 elif test $ac_cv_prog_cxx_g = yes; then
6492 if test "$GXX" = yes; then
6498 if test "$GXX" = yes; then
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6512 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6513 if test "${lt_cv_path_NM+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$NM"; then
6517 # Let the user override the test.
6520 lt_nm_to_check="${ac_tool_prefix}nm"
6521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6522 lt_nm_to_check="$lt_nm_to_check nm"
6524 for lt_tmp_nm in $lt_nm_to_check; do
6525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6528 test -z "$ac_dir" && ac_dir=.
6529 tmp_nm="$ac_dir/$lt_tmp_nm"
6530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6531 # Check to see if the nm accepts a BSD-compat flag.
6532 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6533 # nm: unknown option "B" ignored
6534 # Tru64's nm complains that /dev/null is an invalid object file
6535 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6536 */dev/null* | *'Invalid file or object type'*)
6537 lt_cv_path_NM="$tmp_nm -B"
6541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6543 lt_cv_path_NM="$tmp_nm -p"
6547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6548 continue # so that we can try to find one that supports BSD flags
6557 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6560 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6561 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6566 { echo "$as_me:$LINENO: checking for GNU make" >&5
6567 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6568 if test "${llvm_cv_gnu_make_command+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 llvm_cv_gnu_make_command=''
6572 for a in "$MAKE" make gmake gnumake ; do
6573 if test -z "$a" ; then continue ; fi ;
6574 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6576 llvm_cv_gnu_make_command=$a ;
6581 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6582 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6583 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6587 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6588 echo "${ECHO_T}\"Not found\"" >&6; };
6592 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6593 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6595 if test "$LN_S" = "ln -s"; then
6596 { echo "$as_me:$LINENO: result: yes" >&5
6597 echo "${ECHO_T}yes" >&6; }
6599 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6600 echo "${ECHO_T}no, using $LN_S" >&6; }
6603 # Extract the first word of "cmp", so it can be a program name with args.
6604 set dummy cmp; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_CMP+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6635 if test -n "$CMP"; then
6636 { echo "$as_me:$LINENO: result: $CMP" >&5
6637 echo "${ECHO_T}$CMP" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6644 # Extract the first word of "cp", so it can be a program name with args.
6645 set dummy cp; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_CP+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6676 if test -n "$CP"; then
6677 { echo "$as_me:$LINENO: result: $CP" >&5
6678 echo "${ECHO_T}$CP" >&6; }
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6685 # Extract the first word of "date", so it can be a program name with args.
6686 set dummy date; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_DATE+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6716 DATE=$ac_cv_path_DATE
6717 if test -n "$DATE"; then
6718 { echo "$as_me:$LINENO: result: $DATE" >&5
6719 echo "${ECHO_T}$DATE" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 # Extract the first word of "find", so it can be a program name with args.
6727 set dummy find; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_FIND+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6757 FIND=$ac_cv_path_FIND
6758 if test -n "$FIND"; then
6759 { echo "$as_me:$LINENO: result: $FIND" >&5
6760 echo "${ECHO_T}$FIND" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 # Extract the first word of "grep", so it can be a program name with args.
6768 set dummy grep; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_GREP+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6798 GREP=$ac_cv_path_GREP
6799 if test -n "$GREP"; then
6800 { echo "$as_me:$LINENO: result: $GREP" >&5
6801 echo "${ECHO_T}$GREP" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6808 # Extract the first word of "mkdir", so it can be a program name with args.
6809 set dummy mkdir; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_path_MKDIR+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6839 MKDIR=$ac_cv_path_MKDIR
6840 if test -n "$MKDIR"; then
6841 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6842 echo "${ECHO_T}$MKDIR" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6849 # Extract the first word of "mv", so it can be a program name with args.
6850 set dummy mv; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_MV+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6881 if test -n "$MV"; then
6882 { echo "$as_me:$LINENO: result: $MV" >&5
6883 echo "${ECHO_T}$MV" >&6; }
6885 { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 if test -n "$RANLIB"; then
6899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 RANLIB=$ac_cv_prog_RANLIB
6919 if test -n "$RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6921 echo "${ECHO_T}$RANLIB" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6929 if test -z "$ac_cv_prog_RANLIB"; then
6930 ac_ct_RANLIB=$RANLIB
6931 # Extract the first word of "ranlib", so it can be a program name with args.
6932 set dummy ranlib; ac_word=$2
6933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 if test -n "$ac_ct_RANLIB"; then
6939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_ac_ct_RANLIB="ranlib"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6959 if test -n "$ac_ct_RANLIB"; then
6960 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6961 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6967 if test "x$ac_ct_RANLIB" = x; then
6970 case $cross_compiling:$ac_tool_warned in
6972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet. If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&5
6975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6976 whose name does not start with the host triplet. If you think this
6977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6978 ac_tool_warned=yes ;;
6980 RANLIB=$ac_ct_RANLIB
6983 RANLIB="$ac_cv_prog_RANLIB"
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ar; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_prog_AR+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 if test -n "$AR"; then
6995 ac_cv_prog_AR="$AR" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_AR="${ac_tool_prefix}ar"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 if test -n "$AR"; then
7016 { echo "$as_me:$LINENO: result: $AR" >&5
7017 echo "${ECHO_T}$AR" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7025 if test -z "$ac_cv_prog_AR"; then
7027 # Extract the first word of "ar", so it can be a program name with args.
7028 set dummy ar; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test -n "$ac_ct_AR"; then
7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_ac_ct_AR="ar"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7055 if test -n "$ac_ct_AR"; then
7056 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7057 echo "${ECHO_T}$ac_ct_AR" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7063 if test "x$ac_ct_AR" = x; then
7066 case $cross_compiling:$ac_tool_warned in
7068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069 whose name does not start with the host triplet. If you think this
7070 configuration is useful to you, please write to autoconf@gnu.org." >&5
7071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072 whose name does not start with the host triplet. If you think this
7073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7074 ac_tool_warned=yes ;;
7082 # Extract the first word of "rm", so it can be a program name with args.
7083 set dummy rm; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_RM+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7114 if test -n "$RM"; then
7115 { echo "$as_me:$LINENO: result: $RM" >&5
7116 echo "${ECHO_T}$RM" >&6; }
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7123 # Extract the first word of "sed", so it can be a program name with args.
7124 set dummy sed; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_SED+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7155 if test -n "$SED"; then
7156 { echo "$as_me:$LINENO: result: $SED" >&5
7157 echo "${ECHO_T}$SED" >&6; }
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7164 # Extract the first word of "tar", so it can be a program name with args.
7165 set dummy tar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_TAR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7196 if test -n "$TAR"; then
7197 { echo "$as_me:$LINENO: result: $TAR" >&5
7198 echo "${ECHO_T}$TAR" >&6; }
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7205 # Extract the first word of "pwd", so it can be a program name with args.
7206 set dummy pwd; ac_word=$2
7207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209 if test "${ac_cv_path_BINPWD+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7236 BINPWD=$ac_cv_path_BINPWD
7237 if test -n "$BINPWD"; then
7238 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7239 echo "${ECHO_T}$BINPWD" >&6; }
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7247 # Extract the first word of "Graphviz", so it can be a program name with args.
7248 set dummy Graphviz; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7278 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7279 if test -n "$GRAPHVIZ"; then
7280 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7281 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_GRAPHVIZ 1
7294 if test "$llvm_cv_os_type" = "MingW" ; then
7295 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7298 cat >>confdefs.h <<_ACEOF
7299 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7303 # Extract the first word of "dot", so it can be a program name with args.
7304 set dummy dot; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_DOT+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7335 if test -n "$DOT"; then
7336 { echo "$as_me:$LINENO: result: $DOT" >&5
7337 echo "${ECHO_T}$DOT" >&6; }
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7344 if test "$DOT" != "echo dot" ; then
7346 cat >>confdefs.h <<\_ACEOF
7350 if test "$llvm_cv_os_type" = "MingW" ; then
7351 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7354 cat >>confdefs.h <<_ACEOF
7355 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7359 # Extract the first word of "fdp", so it can be a program name with args.
7360 set dummy fdp; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_FDP+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7391 if test -n "$FDP"; then
7392 { echo "$as_me:$LINENO: result: $FDP" >&5
7393 echo "${ECHO_T}$FDP" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 if test "$FDP" != "echo fdp" ; then
7402 cat >>confdefs.h <<\_ACEOF
7406 if test "$llvm_cv_os_type" = "MingW" ; then
7407 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7410 cat >>confdefs.h <<_ACEOF
7411 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7415 # Extract the first word of "neato", so it can be a program name with args.
7416 set dummy neato; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_NEATO+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7446 NEATO=$ac_cv_path_NEATO
7447 if test -n "$NEATO"; then
7448 { echo "$as_me:$LINENO: result: $NEATO" >&5
7449 echo "${ECHO_T}$NEATO" >&6; }
7451 { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7456 if test "$NEATO" != "echo neato" ; then
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_NEATO 1
7462 if test "$llvm_cv_os_type" = "MingW" ; then
7463 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7466 cat >>confdefs.h <<_ACEOF
7467 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7471 # Extract the first word of "twopi", so it can be a program name with args.
7472 set dummy twopi; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_path_TWOPI+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7502 TWOPI=$ac_cv_path_TWOPI
7503 if test -n "$TWOPI"; then
7504 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7505 echo "${ECHO_T}$TWOPI" >&6; }
7507 { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7512 if test "$TWOPI" != "echo twopi" ; then
7514 cat >>confdefs.h <<\_ACEOF
7515 #define HAVE_TWOPI 1
7518 if test "$llvm_cv_os_type" = "MingW" ; then
7519 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7522 cat >>confdefs.h <<_ACEOF
7523 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7527 # Extract the first word of "circo", so it can be a program name with args.
7528 set dummy circo; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_CIRCO+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7558 CIRCO=$ac_cv_path_CIRCO
7559 if test -n "$CIRCO"; then
7560 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7561 echo "${ECHO_T}$CIRCO" >&6; }
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7568 if test "$CIRCO" != "echo circo" ; then
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_CIRCO 1
7574 if test "$llvm_cv_os_type" = "MingW" ; then
7575 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578 cat >>confdefs.h <<_ACEOF
7579 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7583 for ac_prog in gv gsview32
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_GV+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 if test -n "$GV"; then
7617 { echo "$as_me:$LINENO: result: $GV" >&5
7618 echo "${ECHO_T}$GV" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$GV" && break
7627 test -n "$GV" || GV="echo gv"
7629 if test "$GV" != "echo gv" ; then
7631 cat >>confdefs.h <<\_ACEOF
7635 if test "$llvm_cv_os_type" = "MingW" ; then
7636 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7639 cat >>confdefs.h <<_ACEOF
7640 #define LLVM_PATH_GV "$GV${EXEEXT}"
7644 # Extract the first word of "dotty", so it can be a program name with args.
7645 set dummy dotty; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_path_DOTTY+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7675 DOTTY=$ac_cv_path_DOTTY
7676 if test -n "$DOTTY"; then
7677 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7678 echo "${ECHO_T}$DOTTY" >&6; }
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7685 if test "$DOTTY" != "echo dotty" ; then
7687 cat >>confdefs.h <<\_ACEOF
7688 #define HAVE_DOTTY 1
7691 if test "$llvm_cv_os_type" = "MingW" ; then
7692 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7695 cat >>confdefs.h <<_ACEOF
7696 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7702 # Extract the first word of "perl", so it can be a program name with args.
7703 set dummy perl; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_PERL+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7733 PERL=$ac_cv_path_PERL
7734 if test -n "$PERL"; then
7735 { echo "$as_me:$LINENO: result: $PERL" >&5
7736 echo "${ECHO_T}$PERL" >&6; }
7738 { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7743 if test "$PERL" != "none"; then
7744 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7745 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7746 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7747 { echo "$as_me:$LINENO: result: yes" >&5
7748 echo "${ECHO_T}yes" >&6; }
7751 { echo "$as_me:$LINENO: result: not found" >&5
7752 echo "${ECHO_T}not found" >&6; }
7757 if test x"$PERL" = xnone; then
7760 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7761 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7762 { (exit 1); exit 1; }; }
7768 # Find a good install program. We prefer a C program (faster),
7769 # so one script is as good as another. But avoid the broken or
7770 # incompatible versions:
7771 # SysV /etc/install, /usr/sbin/install
7772 # SunOS /usr/etc/install
7773 # IRIX /sbin/install
7775 # AmigaOS /C/install, which installs bootblocks on floppy discs
7776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7779 # OS/2's system install, which has a completely different semantic
7780 # ./install, which can be erroneously created by make from ./install.sh.
7781 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7782 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7783 if test -z "$INSTALL"; then
7784 if test "${ac_cv_path_install+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 # Account for people who put trailing slashes in PATH elements.
7794 ./ | .// | /cC/* | \
7795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7796 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7799 # OSF1 and SCO ODT 3.0 have their own names for install.
7800 # Don't use installbsd from OSF since it installs stuff as root
7802 for ac_prog in ginstall scoinst install; do
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7805 if test $ac_prog = install &&
7806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7807 # AIX install. It has an incompatible calling convention.
7809 elif test $ac_prog = install &&
7810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7811 # program-specific install script used by HP pwplus--don't use.
7814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7827 if test "${ac_cv_path_install+set}" = set; then
7828 INSTALL=$ac_cv_path_install
7830 # As a last resort, use the slow shell script. Don't cache a
7831 # value for INSTALL within a source directory, because that will
7832 # break other packages using the cache if that directory is
7833 # removed, or if the value is a relative name.
7834 INSTALL=$ac_install_sh
7837 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7838 echo "${ECHO_T}$INSTALL" >&6; }
7840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7841 # It thinks the first close brace ends the variable substitution.
7842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7849 # Extract the first word of "bzip2", so it can be a program name with args.
7850 set dummy bzip2; ac_word=$2
7851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853 if test "${ac_cv_path_BZIP2+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 BZIP2=$ac_cv_path_BZIP2
7880 if test -n "$BZIP2"; then
7881 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7882 echo "${ECHO_T}$BZIP2" >&6; }
7884 { echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6; }
7889 # Extract the first word of "doxygen", so it can be a program name with args.
7890 set dummy doxygen; ac_word=$2
7891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7893 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 DOXYGEN=$ac_cv_path_DOXYGEN
7920 if test -n "$DOXYGEN"; then
7921 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7922 echo "${ECHO_T}$DOXYGEN" >&6; }
7924 { echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6; }
7929 # Extract the first word of "groff", so it can be a program name with args.
7930 set dummy groff; ac_word=$2
7931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7933 if test "${ac_cv_path_GROFF+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 GROFF=$ac_cv_path_GROFF
7960 if test -n "$GROFF"; then
7961 { echo "$as_me:$LINENO: result: $GROFF" >&5
7962 echo "${ECHO_T}$GROFF" >&6; }
7964 { echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6; }
7969 # Extract the first word of "gzip", so it can be a program name with args.
7970 set dummy gzip; ac_word=$2
7971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7973 if test "${ac_cv_path_GZIP+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 GZIP=$ac_cv_path_GZIP
8000 if test -n "$GZIP"; then
8001 { echo "$as_me:$LINENO: result: $GZIP" >&5
8002 echo "${ECHO_T}$GZIP" >&6; }
8004 { echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6; }
8009 # Extract the first word of "pod2html", so it can be a program name with args.
8010 set dummy pod2html; ac_word=$2
8011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8013 if test "${ac_cv_path_POD2HTML+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 POD2HTML=$ac_cv_path_POD2HTML
8040 if test -n "$POD2HTML"; then
8041 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8042 echo "${ECHO_T}$POD2HTML" >&6; }
8044 { echo "$as_me:$LINENO: result: no" >&5
8045 echo "${ECHO_T}no" >&6; }
8049 # Extract the first word of "pod2man", so it can be a program name with args.
8050 set dummy pod2man; ac_word=$2
8051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8053 if test "${ac_cv_path_POD2MAN+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 POD2MAN=$ac_cv_path_POD2MAN
8080 if test -n "$POD2MAN"; then
8081 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8082 echo "${ECHO_T}$POD2MAN" >&6; }
8084 { echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6; }
8089 # Extract the first word of "runtest", so it can be a program name with args.
8090 set dummy runtest; ac_word=$2
8091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8093 if test "${ac_cv_path_RUNTEST+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 RUNTEST=$ac_cv_path_RUNTEST
8120 if test -n "$RUNTEST"; then
8121 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8122 echo "${ECHO_T}$RUNTEST" >&6; }
8124 { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8131 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8132 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8134 # Check whether --with-tclinclude was given.
8135 if test "${with_tclinclude+set}" = set; then
8136 withval=$with_tclinclude; with_tclinclude=${withval}
8141 if test "${ac_cv_path_tclsh+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 if test x"${with_tclinclude}" != x ; then
8146 if test -f ${with_tclinclude}/tclsh ; then
8147 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8148 elif test -f ${with_tclinclude}/src/tclsh ; then
8149 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8151 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8152 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8153 { (exit 1); exit 1; }; }
8159 if test x"${ac_cv_path_tclsh}" = x ; then
8160 { echo "$as_me:$LINENO: result: none" >&5
8161 echo "${ECHO_T}none" >&6; }
8162 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
8164 # Extract the first word of "$ac_prog", so it can be a program name with args.
8165 set dummy $ac_prog; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_path_TCLSH+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 TCLSH=$ac_cv_path_TCLSH
8195 if test -n "$TCLSH"; then
8196 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8197 echo "${ECHO_T}$TCLSH" >&6; }
8199 { echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6; }
8204 test -n "$TCLSH" && break
8207 if test x"${TCLSH}" = x ; then
8208 ac_cv_path_tclsh='';
8210 ac_cv_path_tclsh="${TCLSH}";
8213 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8214 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8215 TCLSH="${ac_cv_path_tclsh}"
8219 # Extract the first word of "zip", so it can be a program name with args.
8220 set dummy zip; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_path_ZIP+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 if test -n "$ZIP"; then
8251 { echo "$as_me:$LINENO: result: $ZIP" >&5
8252 echo "${ECHO_T}$ZIP" >&6; }
8254 { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8259 for ac_prog in ocamlc
8261 # Extract the first word of "$ac_prog", so it can be a program name with args.
8262 set dummy $ac_prog; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_path_OCAMLC+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 OCAMLC=$ac_cv_path_OCAMLC
8292 if test -n "$OCAMLC"; then
8293 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8294 echo "${ECHO_T}$OCAMLC" >&6; }
8296 { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8301 test -n "$OCAMLC" && break
8304 for ac_prog in ocamlopt
8306 # Extract the first word of "$ac_prog", so it can be a program name with args.
8307 set dummy $ac_prog; ac_word=$2
8308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 OCAMLOPT=$ac_cv_path_OCAMLOPT
8337 if test -n "$OCAMLOPT"; then
8338 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8339 echo "${ECHO_T}$OCAMLOPT" >&6; }
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8346 test -n "$OCAMLOPT" && break
8349 for ac_prog in ocamldep
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy $ac_prog; ac_word=$2
8353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 OCAMLDEP=$ac_cv_path_OCAMLDEP
8382 if test -n "$OCAMLDEP"; then
8383 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8384 echo "${ECHO_T}$OCAMLDEP" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 test -n "$OCAMLDEP" && break
8394 for ac_prog in ocamldoc
8396 # Extract the first word of "$ac_prog", so it can be a program name with args.
8397 set dummy $ac_prog; ac_word=$2
8398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8400 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 OCAMLDOC=$ac_cv_path_OCAMLDOC
8427 if test -n "$OCAMLDOC"; then
8428 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8429 echo "${ECHO_T}$OCAMLDOC" >&6; }
8431 { echo "$as_me:$LINENO: result: no" >&5
8432 echo "${ECHO_T}no" >&6; }
8436 test -n "$OCAMLDOC" && break
8439 for ac_prog in gas as
8441 # Extract the first word of "$ac_prog", so it can be a program name with args.
8442 set dummy $ac_prog; ac_word=$2
8443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445 if test "${ac_cv_path_GAS+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 if test -n "$GAS"; then
8473 { echo "$as_me:$LINENO: result: $GAS" >&5
8474 echo "${ECHO_T}$GAS" >&6; }
8476 { echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6; }
8481 test -n "$GAS" && break
8485 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8486 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8487 if test "${llvm_cv_link_use_r+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_cpp='$CPP $CPPFLAGS'
8492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497 CFLAGS="$CFLAGS -Wl,-R."
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8508 int main() { return 0; }
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 llvm_cv_link_use_r=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 llvm_cv_link_use_r=no
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8559 ac_cpp='$CPP $CPPFLAGS'
8560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8566 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8567 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8568 if test "$llvm_cv_link_use_r" = yes ; then
8570 cat >>confdefs.h <<\_ACEOF
8571 #define HAVE_LINK_R 1
8577 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8578 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8579 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8589 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8600 int main() { return 0; }
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_link") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 llvm_cv_link_use_export_dynamic=yes
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 llvm_cv_link_use_export_dynamic=no
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8659 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8660 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_LINK_EXPORT_DYNAMIC 1
8671 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8672 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8673 if test "${ac_cv_c_const+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8686 /* FIXME: Include the comments suggested by Paul. */
8688 /* Ultrix mips cc rejects this. */
8689 typedef int charset[2];
8691 /* SunOS 4.1.1 cc rejects this. */
8692 char const *const *ccp;
8694 /* NEC SVR4.0.2 mips cc rejects this. */
8695 struct point {int x, y;};
8696 static struct point const zero = {0,0};
8697 /* AIX XL C 1.02.0.0 rejects this.
8698 It does not let you subtract one const X* pointer from another in
8699 an arm of an if-expression whose if-part is not a constant
8701 const char *g = "string";
8702 ccp = &g + (g ? g-g : 0);
8703 /* HPUX 7.0 cc rejects these. */
8706 ccp = (char const *const *) p;
8707 { /* SCO 3.2v4 cc rejects this. */
8709 char const *s = 0 ? (char *) 0 : (char const *) 0;
8714 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8716 const int *foo = &x[0];
8719 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8720 typedef const int *iptr;
8724 { /* AIX XL C 1.02.0.0 rejects this saying
8725 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8726 struct s { int j; const int *ap[3]; };
8727 struct s *b; b->j = 5;
8729 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8733 return !x[0] && !zero.x;
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_compile") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8755 { (case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_try") 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_try") 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8785 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8786 if test $ac_cv_c_const = no; then
8788 cat >>confdefs.h <<\_ACEOF
8800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8801 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8802 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 #include <sys/types.h>
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 eval "$as_ac_Header=yes"
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 eval "$as_ac_Header=no"
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 ac_res=`eval echo '${'$as_ac_Header'}'`
8870 { echo "$as_me:$LINENO: result: $ac_res" >&5
8871 echo "${ECHO_T}$ac_res" >&6; }
8872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8877 ac_header_dirent=$ac_hdr; break
8881 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8882 if test $ac_header_dirent = dirent.h; then
8883 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8884 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8885 if test "${ac_cv_search_opendir+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 ac_func_search_save_LIBS=$LIBS
8889 cat >conftest.$ac_ext <<_ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8911 for ac_lib in '' dir; do
8912 if test -z "$ac_lib"; then
8913 ac_res="none required"
8916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_link") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_search_opendir=$ac_res
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -f core conftest.err conftest.$ac_objext \
8962 if test "${ac_cv_search_opendir+set}" = set; then
8966 if test "${ac_cv_search_opendir+set}" = set; then
8969 ac_cv_search_opendir=no
8972 LIBS=$ac_func_search_save_LIBS
8974 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8975 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8976 ac_res=$ac_cv_search_opendir
8977 if test "$ac_res" != no; then
8978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8983 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8985 if test "${ac_cv_search_opendir+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 ac_func_search_save_LIBS=$LIBS
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
9011 for ac_lib in '' x; do
9012 if test -z "$ac_lib"; then
9013 ac_res="none required"
9016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_search_opendir=$ac_res
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9060 rm -f core conftest.err conftest.$ac_objext \
9062 if test "${ac_cv_search_opendir+set}" = set; then
9066 if test "${ac_cv_search_opendir+set}" = set; then
9069 ac_cv_search_opendir=no
9072 LIBS=$ac_func_search_save_LIBS
9074 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9075 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9076 ac_res=$ac_cv_search_opendir
9077 if test "$ac_res" != no; then
9078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9085 for ac_header in dlfcn.h
9087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 ac_res=`eval echo '${'$as_ac_Header'}'`
9095 { echo "$as_me:$LINENO: result: $ac_res" >&5
9096 echo "${ECHO_T}$ac_res" >&6; }
9098 # Is the header compilable?
9099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 #include <$ac_header>
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 ac_header_compiler=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_header_compiler=no
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9154 echo "${ECHO_T}$ac_header_compiler" >&6; }
9156 # Is the header present?
9157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <$ac_header>
9167 if { (ac_try="$ac_cpp conftest.$ac_ext"
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null; then
9180 if test -s conftest.err; then
9181 ac_cpp_err=$ac_c_preproc_warn_flag
9182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9189 if test -z "$ac_cpp_err"; then
9190 ac_header_preproc=yes
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_header_preproc=no
9198 rm -f conftest.err conftest.$ac_ext
9199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9200 echo "${ECHO_T}$ac_header_preproc" >&6; }
9202 # So? What about this header?
9203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9209 ac_header_preproc=yes
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9225 ## ----------------------------------- ##
9226 ## Report this to llvmbugs@cs.uiuc.edu ##
9227 ## ----------------------------------- ##
9229 ) | sed "s/^/$as_me: WARNING: /" >&2
9232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 eval "$as_ac_Header=\$ac_header_preproc"
9239 ac_res=`eval echo '${'$as_ac_Header'}'`
9240 { echo "$as_me:$LINENO: result: $ac_res" >&5
9241 echo "${ECHO_T}$ac_res" >&6; }
9244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9245 cat >>confdefs.h <<_ACEOF
9246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 # Check whether --enable-ltdl-install was given.
9254 if test "${enable_ltdl_install+set}" = set; then
9255 enableval=$enable_ltdl_install;
9261 if test x"${enable_ltdl_install-no}" != xno; then
9263 INSTALL_LTDL_FALSE='#'
9265 INSTALL_LTDL_TRUE='#'
9271 if test x"${enable_ltdl_convenience-no}" != xno; then
9272 CONVENIENCE_LTDL_TRUE=
9273 CONVENIENCE_LTDL_FALSE='#'
9275 CONVENIENCE_LTDL_TRUE='#'
9276 CONVENIENCE_LTDL_FALSE=
9280 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9283 libname_spec='lib$name'
9291 shlibpath_overrides_runpath=unknown
9293 dynamic_linker="$host_os ld.so"
9294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9295 if test "$GCC" = yes; then
9296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9298 # if the path contains ";" then we assume it to be the separator
9299 # otherwise default to the standard path separator (i.e. ":") - it is
9300 # assumed that no part of a normal pathname contains ";" but that should
9301 # okay in the real world where ";" in dirpaths is itself problematic.
9302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9309 need_lib_prefix=unknown
9310 hardcode_into_libs=no
9312 # when you set need_version to no, make sure it does not cause -set_version
9313 # flags to be left without arguments
9314 need_version=unknown
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9320 shlibpath_var=LIBPATH
9322 # AIX 3 has no versioning support, so we append a major version to the name.
9323 soname_spec='${libname}${release}${shared_ext}$major'
9330 hardcode_into_libs=yes
9331 if test "$host_cpu" = ia64; then
9332 # AIX 5 supports IA64
9333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9334 shlibpath_var=LD_LIBRARY_PATH
9336 # With GCC up to 2.95.x, collect2 would create an import file
9337 # for dependence libraries. The import file would start with
9338 # the line `#! .'. This would cause the generated library to
9339 # depend on `.', always an invalid library. This was fixed in
9340 # development snapshots of GCC prior to 3.0.
9342 aix4 | aix4.[01] | aix4.[01].*)
9343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9353 # soname into executable. Probably we can add versioning support to
9354 # collect2, so additional links can be useful in future.
9355 if test "$aix_use_runtimelinking" = yes; then
9356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9357 # instead of lib<name>.a to let people know that these are not
9358 # typical AIX shared libraries.
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 # We preserve .a as extension for shared libraries through AIX4.2
9362 # and later when we are not doing run time linking.
9363 library_names_spec='${libname}${release}.a $libname.a'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LIBPATH
9371 library_names_spec='$libname.ixlibrary $libname.a'
9372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9373 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'
9377 library_names_spec='${libname}${shared_ext}'
9378 dynamic_linker="$host_os ld.so"
9379 shlibpath_var=LIBRARY_PATH
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9391 # the default ld.so.conf also contains /usr/contrib/lib and
9392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9393 # libtool to hard-code these into programs
9396 cygwin* | mingw* | pw32*)
9397 version_type=windows
9402 case $GCC,$host_os in
9403 yes,cygwin* | yes,mingw* | yes,pw32*)
9404 library_names_spec='$libname.dll.a'
9405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9406 postinstall_cmds='base_file=`basename \${file}`~
9407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9408 dldir=$destdir/`dirname \$dlpath`~
9409 test -d \$dldir || mkdir -p \$dldir~
9410 $install_prog $dir/$dlname \$dldir/$dlname~
9411 chmod a+x \$dldir/$dlname'
9412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9413 dlpath=$dir/\$dldll~
9415 shlibpath_overrides_runpath=yes
9419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9424 # MinGW DLLs use traditional 'lib' prefix
9425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9428 # It is most probably a Windows format PATH printed by
9429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9430 # path with ; separators, and with drive letters. We can handle the
9431 # drive letters (cygwin fileutils understands them), so leave them,
9432 # especially as we might pass files found there to a mingw objdump,
9433 # which wouldn't understand a cygwinified path. Ahh.
9434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9440 # pw32 DLLs use 'pw' prefix rather than 'lib'
9441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9450 dynamic_linker='Win32 ld.exe'
9451 # FIXME: first we should search . and the directory the executable is in
9455 darwin* | rhapsody*)
9456 dynamic_linker="$host_os dyld"
9460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9461 soname_spec='${libname}${release}${major}$shared_ext'
9462 shlibpath_overrides_runpath=yes
9463 shlibpath_var=DYLD_LIBRARY_PATH
9464 shrext_cmds='.dylib'
9465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9466 if test "$GCC" = yes; then
9467 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"`
9469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=no
9495 hardcode_into_libs=yes
9496 dynamic_linker='GNU ld.so'
9499 freebsd* | dragonfly*)
9500 # DragonFly does not have aout. When/if they implement a new
9501 # versioning mechanism, adjust this.
9502 if test -x /usr/bin/objformat; then
9503 objformat=`/usr/bin/objformat`
9506 freebsd[123]*) objformat=aout ;;
9510 version_type=freebsd-$objformat
9511 case $version_type in
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9522 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9527 freebsd3.[01]* | freebsdelf3.[01]*)
9528 shlibpath_overrides_runpath=yes
9529 hardcode_into_libs=yes
9531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9533 shlibpath_overrides_runpath=no
9534 hardcode_into_libs=yes
9536 freebsd*) # from 4.6 on
9537 shlibpath_overrides_runpath=yes
9538 hardcode_into_libs=yes
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 shlibpath_var=LD_LIBRARY_PATH
9550 hardcode_into_libs=yes
9553 hpux9* | hpux10* | hpux11*)
9554 # Give a soname corresponding to the major version so that dld.sl refuses to
9555 # link against other versions.
9562 hardcode_into_libs=yes
9563 dynamic_linker="$host_os dld.so"
9564 shlibpath_var=LD_LIBRARY_PATH
9565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 if test "X$HPUX_IA64_MODE" = X32; then
9569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9577 hardcode_into_libs=yes
9578 dynamic_linker="$host_os dld.sl"
9579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9588 dynamic_linker="$host_os dld.sl"
9589 shlibpath_var=SHLIB_PATH
9590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9596 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 shlibpath_overrides_runpath=no
9608 hardcode_into_libs=yes
9611 irix5* | irix6* | nonstopux*)
9613 nonstopux*) version_type=nonstopux ;;
9615 if test "$lt_cv_prog_gnu_ld" = yes; then
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626 irix5* | nonstopux*)
9630 case $LD in # libtool.m4 will add one of these switches to LD
9631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9632 libsuff= shlibsuff= libmagic=32-bit;;
9633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9634 libsuff=32 shlibsuff=N32 libmagic=N32;;
9635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9637 *) libsuff= shlibsuff= libmagic=never-match;;
9641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9642 shlibpath_overrides_runpath=no
9643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9645 hardcode_into_libs=yes
9648 # No shared lib support for Linux oldld, aout, or coff.
9649 linux*oldld* | linux*aout* | linux*coff*)
9653 # This must be Linux ELF.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=no
9663 # This implies no fast_install, which is unacceptable.
9664 # Some rework will be needed to allow for fast_install
9665 # before this can be enabled.
9666 hardcode_into_libs=yes
9668 # Append ld.so.conf contents to the search path
9669 if test -f /etc/ld.so.conf; then
9670 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' ' '`
9671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9674 # We used to test for /lib/ld.so.1 and disable shared libraries on
9675 # powerpc, because MkLinux only supported shared libraries with the
9676 # GNU dynamic linker. Since this was broken with cross compilers,
9677 # most powerpc-linux boxes support dynamic linking these days and
9678 # people can always --disable-shared, the test was removed, and we
9679 # assume the GNU/Linux dynamic linker is in use.
9680 dynamic_linker='GNU/Linux ld.so'
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=no
9691 hardcode_into_libs=yes
9692 dynamic_linker='GNU ld.so'
9699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9702 dynamic_linker='NetBSD (a.out) ld.so'
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 dynamic_linker='NetBSD ld.elf_so'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 shlibpath_var=LD_LIBRARY_PATH
9727 shlibpath_overrides_runpath=yes
9732 sys_lib_dlsearch_path_spec="/usr/lib"
9734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9737 *) need_version=no ;;
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9744 openbsd2.[89] | openbsd2.[89].*)
9745 shlibpath_overrides_runpath=no
9748 shlibpath_overrides_runpath=yes
9752 shlibpath_overrides_runpath=yes
9757 libname_spec='$name'
9760 library_names_spec='$libname${shared_ext} $libname.a'
9761 dynamic_linker='OS/2 ld.exe'
9762 shlibpath_var=LIBPATH
9765 osf3* | osf4* | osf5*)
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes
9784 hardcode_into_libs=yes
9785 # ldd complains unless libraries are executable
9786 postinstall_cmds='chmod +x $lib'
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 if test "$with_gnu_ld" = yes; then
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 case $host_vendor in
9808 shlibpath_overrides_runpath=no
9810 export_dynamic_flag_spec='${wl}-Blargedynsym'
9811 runpath_var=LD_RUN_PATH
9819 shlibpath_overrides_runpath=no
9820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9826 if test -d /usr/nec ;then
9828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9829 soname_spec='$libname${shared_ext}.$major'
9830 shlibpath_var=LD_LIBRARY_PATH
9834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9835 version_type=freebsd-elf
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 hardcode_into_libs=yes
9842 if test "$with_gnu_ld" = yes; then
9843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9844 shlibpath_overrides_runpath=no
9846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9847 shlibpath_overrides_runpath=yes
9850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9854 sys_lib_dlsearch_path_spec='/usr/lib'
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9868 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9869 echo "${ECHO_T}$dynamic_linker" >&6; }
9870 test "$dynamic_linker" = no && can_build_shared=no
9872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9873 if test "$GCC" = yes; then
9874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9878 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9879 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9880 if test "${libltdl_cv_shlibext+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 eval libltdl_cv_shlibext=$shrext_cmds
9888 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9889 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9890 if test -n "$libltdl_cv_shlibext"; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9899 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9900 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9901 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 libltdl_cv_shlibpath_var="$shlibpath_var"
9906 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9907 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9908 if test -n "$libltdl_cv_shlibpath_var"; then
9910 cat >>confdefs.h <<_ACEOF
9911 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9917 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9918 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9919 if test "${libltdl_cv_sys_search_path+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9924 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9925 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9926 if test -n "$libltdl_cv_sys_search_path"; then
9928 for dir in $libltdl_cv_sys_search_path; do
9929 if test -z "$sys_search_path"; then
9930 sys_search_path="$dir"
9932 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9936 cat >>confdefs.h <<_ACEOF
9937 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9942 { echo "$as_me:$LINENO: checking for objdir" >&5
9943 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9944 if test "${libltdl_cv_objdir+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 libltdl_cv_objdir="$objdir"
9948 if test -n "$objdir"; then
9951 rm -f .libs 2>/dev/null
9952 mkdir .libs 2>/dev/null
9953 if test -d .libs; then
9954 libltdl_cv_objdir=.libs
9956 # MS-DOS does not allow filenames that begin with a dot.
9957 libltdl_cv_objdir=_libs
9959 rmdir .libs 2>/dev/null
9963 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9964 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9966 cat >>confdefs.h <<_ACEOF
9967 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9975 # Check for command to grab the raw symbol name followed by C symbol from nm.
9976 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9977 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9978 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 # These are sane defaults that work on at least a few old systems.
9983 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9985 # Character class describing NM global symbol codes.
9986 symcode='[BCDEGRST]'
9988 # Regexp to match symbols that can be accessed directly from C.
9989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9991 # Transform an extracted symbol line into a proper C declaration
9992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9994 # Transform an extracted symbol line into symbol name and symbol address
9995 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'"
9997 # Define system-specific variables.
10002 cygwin* | mingw* | pw32*)
10003 symcode='[ABCDGISTW]'
10005 hpux*) # Its linker distinguishes data from code symbols
10006 if test "$host_cpu" = ia64; then
10007 symcode='[ABCDEGRST]'
10009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10010 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'"
10013 if test "$host_cpu" = ia64; then
10014 symcode='[ABCDGIRSTW]'
10015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10016 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 irix* | nonstopux*)
10020 symcode='[BCDEGRST]'
10023 symcode='[BCDEGQRST]'
10034 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10042 # Handle CRLF in mingw tool chain
10046 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10050 # If we're using GNU nm, then use its standard symbol codes.
10051 case `$NM -V 2>&1` in
10052 *GNU* | *'with BFD'*)
10053 symcode='[ABCDGIRSTW]' ;;
10056 # Try without a prefix undercore, then with it.
10057 for ac_symprfx in "" "_"; do
10059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10060 symxfrm="\\1 $ac_symprfx\\2 \\2"
10062 # Write the raw and C identifiers.
10063 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10065 # Check to see that the pipe works correctly.
10069 cat > conftest.$ac_ext <<EOF
10074 void nm_test_func(){}
10078 int main(){nm_test_var='a';nm_test_func();return(0);}
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; then
10086 # Now try to grab the symbols.
10088 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10089 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && test -s "$nlist"; then
10093 # Try sorting and uniquifying the output.
10094 if sort "$nlist" | uniq > "$nlist"T; then
10095 mv -f "$nlist"T "$nlist"
10100 # Make sure that we snagged all the symbols we need.
10101 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10102 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10103 cat <<EOF > conftest.$ac_ext
10109 # Now generate the symbol file.
10110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10112 cat <<EOF >> conftest.$ac_ext
10113 #if defined (__STDC__) && __STDC__
10114 # define lt_ptr_t void *
10116 # define lt_ptr_t char *
10120 /* The mapping between symbol names and symbols. */
10125 lt_preloaded_symbols[] =
10128 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10129 cat <<\EOF >> conftest.$ac_ext
10137 # Now try linking the two files.
10138 mv conftest.$ac_objext conftstm.$ac_objext
10139 lt_save_LIBS="$LIBS"
10140 lt_save_CFLAGS="$CFLAGS"
10141 LIBS="conftstm.$ac_objext"
10142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10150 LIBS="$lt_save_LIBS"
10151 CFLAGS="$lt_save_CFLAGS"
10153 echo "cannot find nm_test_func in $nlist" >&5
10156 echo "cannot find nm_test_var in $nlist" >&5
10159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10162 echo "$progname: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 rm -f conftest* conftst*
10167 # Do not use the global_symbol_pipe unless it works.
10168 if test "$pipe_works" = yes; then
10171 lt_cv_sys_global_symbol_pipe=
10177 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10178 lt_cv_sys_global_symbol_to_cdecl=
10180 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10181 { echo "$as_me:$LINENO: result: failed" >&5
10182 echo "${ECHO_T}failed" >&6; }
10184 { echo "$as_me:$LINENO: result: ok" >&5
10185 echo "${ECHO_T}ok" >&6; }
10189 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10190 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10191 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10195 libltdl_cv_preloaded_symbols=yes
10197 libltdl_cv_preloaded_symbols=no
10201 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10202 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10203 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_PRELOADED_SYMBOLS 1
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10220 { echo "$as_me:$LINENO: checking for shl_load" >&5
10221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10222 if test "${ac_cv_func_shl_load+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10233 #define shl_load innocuous_shl_load
10235 /* System header to define __stub macros and hopefully few prototypes,
10236 which can conflict with char shl_load (); below.
10237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238 <limits.h> exists even on freestanding compilers. */
10241 # include <limits.h>
10243 # include <assert.h>
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10255 /* The GNU C library defines this for functions which it implements
10256 to always fail with ENOSYS. Some functions are actually named
10257 something starting with __ and the normal name is an alias. */
10258 #if defined __stub_shl_load || defined __stub___shl_load
10265 return shl_load ();
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_func_shl_load=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_cv_func_shl_load=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10315 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10316 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10317 if test $ac_cv_func_shl_load = yes; then
10319 cat >>confdefs.h <<\_ACEOF
10320 #define HAVE_SHL_LOAD 1
10324 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10325 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 ac_check_lib_save_LIBS=$LIBS
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10348 return shl_load ();
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_lib_dld_shl_load=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_lib_dld_shl_load=no
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10399 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10401 if test $ac_cv_lib_dld_shl_load = yes; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define HAVE_SHL_LOAD 1
10407 LIBADD_DL="$LIBADD_DL -ldld"
10409 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 ac_check_lib_save_LIBS=$LIBS
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_lib_dl_dlopen=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_dl_dlopen=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10486 if test $ac_cv_lib_dl_dlopen = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_LIBDL 1
10492 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10494 cat >conftest.$ac_ext <<_ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10501 # include <dlfcn.h>
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1 >conftest.err
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_try") 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_LIBDL 1
10550 libltdl_cv_func_dlopen="yes"
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10556 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10557 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 ac_check_lib_save_LIBS=$LIBS
10561 LIBS="-lsvld $LIBS"
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10569 /* Override any GCC internal prototype to avoid an error.
10570 Use char because int might match the return type of a GCC
10571 builtin and then its argument prototype would still apply. */
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_lib_svld_dlopen=yes
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 ac_cv_lib_svld_dlopen=no
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10631 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10632 if test $ac_cv_lib_svld_dlopen = yes; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_LIBDL 1
10638 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10640 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10641 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 ac_check_lib_save_LIBS=$LIBS
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10664 return dld_link ();
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_lib_dld_dld_link=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_lib_dld_dld_link=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10717 if test $ac_cv_lib_dld_dld_link = yes; then
10719 cat >>confdefs.h <<\_ACEOF
10723 LIBADD_DL="$LIBADD_DL -ldld"
10725 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10726 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10727 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10738 #define _dyld_func_lookup innocuous__dyld_func_lookup
10740 /* System header to define __stub macros and hopefully few prototypes,
10741 which can conflict with char _dyld_func_lookup (); below.
10742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10743 <limits.h> exists even on freestanding compilers. */
10746 # include <limits.h>
10748 # include <assert.h>
10751 #undef _dyld_func_lookup
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10759 char _dyld_func_lookup ();
10760 /* The GNU C library defines this for functions which it implements
10761 to always fail with ENOSYS. Some functions are actually named
10762 something starting with __ and the normal name is an alias. */
10763 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10770 return _dyld_func_lookup ();
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_link") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_func__dyld_func_lookup=yes
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_func__dyld_func_lookup=no
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10821 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10822 if test $ac_cv_func__dyld_func_lookup = yes; then
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_DYLD 1
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10851 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10853 lt_save_LIBS="$LIBS"
10854 LIBS="$LIBS $LIBADD_DL"
10856 for ac_func in dlerror
10858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10872 #define $ac_func innocuous_$ac_func
10874 /* System header to define __stub macros and hopefully few prototypes,
10875 which can conflict with char $ac_func (); below.
10876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877 <limits.h> exists even on freestanding compilers. */
10880 # include <limits.h>
10882 # include <assert.h>
10887 /* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10894 /* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897 #if defined __stub_$ac_func || defined __stub___$ac_func
10904 return $ac_func ();
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 eval "$as_ac_var=yes"
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 eval "$as_ac_var=no"
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10954 ac_res=`eval echo '${'$as_ac_var'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10957 if test `eval echo '${'$as_ac_var'}'` = yes; then
10958 cat >>confdefs.h <<_ACEOF
10959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965 LIBS="$lt_save_LIBS"
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10975 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10976 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10977 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 ac_cv_sys_symbol_underscore=no
10981 cat > conftest.$ac_ext <<EOF
10982 void nm_test_func(){}
10983 int main(){nm_test_func;return 0;}
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; then
10990 # Now try to grab the symbols.
10991 ac_nlist=conftest.nm
10992 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } && test -s "$ac_nlist"; then
10997 # See whether the symbols have a leading underscore.
10998 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10999 ac_cv_sys_symbol_underscore=yes
11001 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11004 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11008 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11011 echo "configure: failed program was:" >&5
11017 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11018 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11021 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11022 if test x"$libltdl_cv_func_dlopen" = xyes ||
11023 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11024 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11025 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11026 if test "${libltdl_cv_need_uscore+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 libltdl_cv_need_uscore=unknown
11031 LIBS="$LIBS $LIBADD_DL"
11032 if test "$cross_compiling" = yes; then :
11033 libltdl_cv_need_uscore=cross
11035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11036 lt_status=$lt_dlunknown
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11038 "configure"
11039 #include "confdefs.h"
11048 # define LT_DLGLOBAL RTLD_GLOBAL
11051 # define LT_DLGLOBAL DL_GLOBAL
11053 # define LT_DLGLOBAL 0
11057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11058 find out it does not work in some platform. */
11059 #ifndef LT_DLLAZY_OR_NOW
11061 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11064 # define LT_DLLAZY_OR_NOW DL_LAZY
11067 # define LT_DLLAZY_OR_NOW RTLD_NOW
11070 # define LT_DLLAZY_OR_NOW DL_NOW
11072 # define LT_DLLAZY_OR_NOW 0
11080 extern "C" void exit (int);
11083 void fnord() { int i=42;}
11086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11087 int status = $lt_dlunknown;
11091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11093 /* dlclose (self); */
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11106 (./conftest; exit; ) >&5 2>/dev/null
11108 case x$lt_status in
11109 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11110 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11111 x$lt_dlunknown|x*) ;;
11114 # compilation failed
11123 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11124 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11128 if test x"$libltdl_cv_need_uscore" = xyes; then
11130 cat >>confdefs.h <<\_ACEOF
11131 #define NEED_USCORE 1
11137 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11138 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11139 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 # PORTME does your system automatically load deplibs for dlopen?
11143 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11144 # For now, we just catch OSes we know something about -- in the
11145 # future, we'll try test this programmatically.
11146 libltdl_cv_sys_dlopen_deplibs=unknown
11148 aix3*|aix4.1.*|aix4.2.*)
11149 # Unknown whether this is true for these versions of AIX, but
11150 # we want this `case' here to explicitly catch those versions.
11151 libltdl_cv_sys_dlopen_deplibs=unknown
11154 libltdl_cv_sys_dlopen_deplibs=yes
11157 # Assuming the user has installed a libdl from somewhere, this is true
11158 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11159 libltdl_cv_sys_dlopen_deplibs=yes
11161 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11162 # GNU and its variants, using gnu ld.so (Glibc)
11163 libltdl_cv_sys_dlopen_deplibs=yes
11166 libltdl_cv_sys_dlopen_deplibs=yes
11169 libltdl_cv_sys_dlopen_deplibs=yes
11171 irix[12345]*|irix6.[01]*)
11172 # Catch all versions of IRIX before 6.2, and indicate that we don't
11173 # know how it worked for any of those versions.
11174 libltdl_cv_sys_dlopen_deplibs=unknown
11177 # The case above catches anything before 6.2, and it's known that
11178 # at 6.2 and later dlopen does load deplibs.
11179 libltdl_cv_sys_dlopen_deplibs=yes
11182 libltdl_cv_sys_dlopen_deplibs=yes
11185 libltdl_cv_sys_dlopen_deplibs=yes
11188 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11189 # it did *not* use an RPATH in a shared library to find objects the
11190 # library depends on, so we explictly say `no'.
11191 libltdl_cv_sys_dlopen_deplibs=no
11193 osf5.0|osf5.0a|osf5.1)
11194 # dlopen *does* load deplibs and with the right loader patch applied
11195 # it even uses RPATH in a shared library to search for shared objects
11196 # that the library depends on, but there's no easy way to know if that
11197 # patch is installed. Since this is the case, all we can really
11198 # say is unknown -- it depends on the patch being installed. If
11199 # it is, this changes to `yes'. Without it, it would be `no'.
11200 libltdl_cv_sys_dlopen_deplibs=unknown
11203 # the two cases above should catch all versions of osf <= 5.1. Read
11204 # the comments above for what we know about them.
11205 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11206 # is used to find them so we can finally say `yes'.
11207 libltdl_cv_sys_dlopen_deplibs=yes
11210 libltdl_cv_sys_dlopen_deplibs=yes
11212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11213 libltdl_cv_sys_dlopen_deplibs=yes
11218 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11219 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11220 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define LTDL_DLOPEN_DEPLIBS 1
11229 for ac_header in argz.h
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11242 # Is the header compilable?
11243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11252 #include <$ac_header>
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_header_compiler=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <$ac_header>
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333 if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ## ----------------------------------- ##
11370 ## Report this to llvmbugs@cs.uiuc.edu ##
11371 ## ----------------------------------- ##
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 eval "$as_ac_Header=\$ac_header_preproc"
11383 ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398 { echo "$as_me:$LINENO: checking for error_t" >&5
11399 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11400 if test "${ac_cv_type_error_t+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11413 typedef error_t ac__type_new_;
11417 if ((ac__type_new_ *) 0)
11419 if (sizeof (ac__type_new_))
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_type_error_t=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_cv_type_error_t=no
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11470 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11471 if test $ac_cv_type_error_t = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define HAVE_ERROR_T 1
11480 cat >>confdefs.h <<\_ACEOF
11481 #define error_t int
11492 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11508 #define $ac_func innocuous_$ac_func
11510 /* System header to define __stub macros and hopefully few prototypes,
11511 which can conflict with char $ac_func (); below.
11512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11513 <limits.h> exists even on freestanding compilers. */
11516 # include <limits.h>
11518 # include <assert.h>
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11530 /* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533 #if defined __stub_$ac_func || defined __stub___$ac_func
11540 return $ac_func ();
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (ac_try="$ac_link"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_link") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_try") 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "$as_ac_var=yes"
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 eval "$as_ac_var=no"
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11590 ac_res=`eval echo '${'$as_ac_var'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11593 if test `eval echo '${'$as_ac_var'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11642 # Is the header compilable?
11643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_header_compiler=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_compiler=no
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11698 echo "${ECHO_T}$ac_header_compiler" >&6; }
11700 # Is the header present?
11701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 #include <$ac_header>
11711 if { (ac_try="$ac_cpp conftest.$ac_ext"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733 if test -z "$ac_cpp_err"; then
11734 ac_header_preproc=yes
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 ac_header_preproc=no
11742 rm -f conftest.err conftest.$ac_ext
11743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11744 echo "${ECHO_T}$ac_header_preproc" >&6; }
11746 # So? What about this header?
11747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11753 ac_header_preproc=yes
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11769 ## ----------------------------------- ##
11770 ## Report this to llvmbugs@cs.uiuc.edu ##
11771 ## ----------------------------------- ##
11773 ) | sed "s/^/$as_me: WARNING: /" >&2
11776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 eval "$as_ac_Header=\$ac_header_preproc"
11783 ac_res=`eval echo '${'$as_ac_Header'}'`
11784 { echo "$as_me:$LINENO: result: $ac_res" >&5
11785 echo "${ECHO_T}$ac_res" >&6; }
11788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11801 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 ac_res=`eval echo '${'$as_ac_Header'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812 echo "${ECHO_T}$ac_res" >&6; }
11814 # Is the header compilable?
11815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 #include <$ac_header>
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_header_compiler=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_compiler=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11870 echo "${ECHO_T}$ac_header_compiler" >&6; }
11872 # Is the header present?
11873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <$ac_header>
11883 if { (ac_try="$ac_cpp conftest.$ac_ext"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } >/dev/null; then
11896 if test -s conftest.err; then
11897 ac_cpp_err=$ac_c_preproc_warn_flag
11898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11905 if test -z "$ac_cpp_err"; then
11906 ac_header_preproc=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_header_preproc=no
11914 rm -f conftest.err conftest.$ac_ext
11915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11916 echo "${ECHO_T}$ac_header_preproc" >&6; }
11918 # So? What about this header?
11919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11925 ac_header_preproc=yes
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11941 ## ----------------------------------- ##
11942 ## Report this to llvmbugs@cs.uiuc.edu ##
11943 ## ----------------------------------- ##
11945 ) | sed "s/^/$as_me: WARNING: /" >&2
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 eval "$as_ac_Header=\$ac_header_preproc"
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11971 for ac_header in string.h strings.h
11973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11984 # Is the header compilable?
11985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 #include <$ac_header>
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_header_compiler=yes
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_header_compiler=no
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040 echo "${ECHO_T}$ac_header_compiler" >&6; }
12042 # Is the header present?
12043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <$ac_header>
12053 if { (ac_try="$ac_cpp conftest.$ac_ext"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12075 if test -z "$ac_cpp_err"; then
12076 ac_header_preproc=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_header_preproc=no
12084 rm -f conftest.err conftest.$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088 # So? What about this header?
12089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc=yes
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111 ## ----------------------------------- ##
12112 ## Report this to llvmbugs@cs.uiuc.edu ##
12113 ## ----------------------------------- ##
12115 ) | sed "s/^/$as_me: WARNING: /" >&2
12118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 eval "$as_ac_Header=\$ac_header_preproc"
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12131 cat >>confdefs.h <<_ACEOF
12132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12142 for ac_func in strchr index
12144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12158 #define $ac_func innocuous_$ac_func
12160 /* System header to define __stub macros and hopefully few prototypes,
12161 which can conflict with char $ac_func (); below.
12162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12163 <limits.h> exists even on freestanding compilers. */
12166 # include <limits.h>
12168 # include <assert.h>
12173 /* Override any GCC internal prototype to avoid an error.
12174 Use char because int might match the return type of a GCC
12175 builtin and then its argument prototype would still apply. */
12180 /* The GNU C library defines this for functions which it implements
12181 to always fail with ENOSYS. Some functions are actually named
12182 something starting with __ and the normal name is an alias. */
12183 #if defined __stub_$ac_func || defined __stub___$ac_func
12190 return $ac_func ();
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 eval "$as_ac_var=yes"
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 eval "$as_ac_var=no"
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12240 ac_res=`eval echo '${'$as_ac_var'}'`
12241 { echo "$as_me:$LINENO: result: $ac_res" >&5
12242 echo "${ECHO_T}$ac_res" >&6; }
12243 if test `eval echo '${'$as_ac_var'}'` = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12253 for ac_func in strrchr rindex
12255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12269 #define $ac_func innocuous_$ac_func
12271 /* System header to define __stub macros and hopefully few prototypes,
12272 which can conflict with char $ac_func (); below.
12273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12274 <limits.h> exists even on freestanding compilers. */
12277 # include <limits.h>
12279 # include <assert.h>
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12291 /* The GNU C library defines this for functions which it implements
12292 to always fail with ENOSYS. Some functions are actually named
12293 something starting with __ and the normal name is an alias. */
12294 #if defined __stub_$ac_func || defined __stub___$ac_func
12301 return $ac_func ();
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (ac_try="$ac_link"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_link") 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest$ac_exeext'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 eval "$as_ac_var=yes"
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12351 ac_res=`eval echo '${'$as_ac_var'}'`
12352 { echo "$as_me:$LINENO: result: $ac_res" >&5
12353 echo "${ECHO_T}$ac_res" >&6; }
12354 if test `eval echo '${'$as_ac_var'}'` = yes; then
12355 cat >>confdefs.h <<_ACEOF
12356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12364 for ac_func in memcpy bcopy
12366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 cat >conftest.$ac_ext <<_ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12380 #define $ac_func innocuous_$ac_func
12382 /* System header to define __stub macros and hopefully few prototypes,
12383 which can conflict with char $ac_func (); below.
12384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12385 <limits.h> exists even on freestanding compilers. */
12388 # include <limits.h>
12390 # include <assert.h>
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12402 /* The GNU C library defines this for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405 #if defined __stub_$ac_func || defined __stub___$ac_func
12412 return $ac_func ();
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 eval "$as_ac_var=yes"
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 eval "$as_ac_var=no"
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12462 ac_res=`eval echo '${'$as_ac_var'}'`
12463 { echo "$as_me:$LINENO: result: $ac_res" >&5
12464 echo "${ECHO_T}$ac_res" >&6; }
12465 if test `eval echo '${'$as_ac_var'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12475 for ac_func in memmove strcmp
12477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12491 #define $ac_func innocuous_$ac_func
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func (); below.
12495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 <limits.h> exists even on freestanding compilers. */
12499 # include <limits.h>
12501 # include <assert.h>
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined __stub_$ac_func || defined __stub___$ac_func
12523 return $ac_func ();
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 eval "$as_ac_var=yes"
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 eval "$as_ac_var=no"
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12573 ac_res=`eval echo '${'$as_ac_var'}'`
12574 { echo "$as_me:$LINENO: result: $ac_res" >&5
12575 echo "${ECHO_T}$ac_res" >&6; }
12576 if test `eval echo '${'$as_ac_var'}'` = yes; then
12577 cat >>confdefs.h <<_ACEOF
12578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12587 for ac_func in closedir opendir readdir
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603 #define $ac_func innocuous_$ac_func
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12611 # include <limits.h>
12613 # include <assert.h>
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined __stub_$ac_func || defined __stub___$ac_func
12635 return $ac_func ();
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (ac_try="$ac_link"
12642 case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_link") 2>conftest.er1
12649 grep -v '^ *+' conftest.er1 >conftest.err
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12655 { (case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_try") 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_try") 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 eval "$as_ac_var=yes"
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 eval "$as_ac_var=no"
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12685 ac_res=`eval echo '${'$as_ac_var'}'`
12686 { echo "$as_me:$LINENO: result: $ac_res" >&5
12687 echo "${ECHO_T}$ac_res" >&6; }
12688 if test `eval echo '${'$as_ac_var'}'` = yes; then
12689 cat >>confdefs.h <<_ACEOF
12690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12698 if test "$WITH_LLVMGCCDIR" = "default" ; then
12699 LLVMGCC="llvm-gcc${EXEEXT}"
12700 LLVMGXX="llvm-g++${EXEEXT}"
12701 LLVMGCCCOMMAND="$LLVMGCC"
12702 LLVMGXXCOMMAND="$LLVMGXX"
12703 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12705 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12707 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12708 set dummy $LLVMGCC; ac_word=$2
12709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12711 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12726 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 LLVMGCC=$ac_cv_path_LLVMGCC
12738 if test -n "$LLVMGCC"; then
12739 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12740 echo "${ECHO_T}$LLVMGCC" >&6; }
12742 { echo "$as_me:$LINENO: result: no" >&5
12743 echo "${ECHO_T}no" >&6; }
12747 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12748 set dummy $LLVMGXX; ac_word=$2
12749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12751 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 LLVMGXX=$ac_cv_path_LLVMGXX
12778 if test -n "$LLVMGXX"; then
12779 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12780 echo "${ECHO_T}$LLVMGXX" >&6; }
12782 { echo "$as_me:$LINENO: result: no" >&5
12783 echo "${ECHO_T}no" >&6; }
12788 if test -z "$LLVMGCC"; then
12789 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12790 LLVMGCCCOMMAND="$LLVMGCC"
12792 if test -z "$LLVMGXX"; then
12793 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12794 LLVMGXXCOMMAND="$LLVMGXX"
12801 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12803 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12808 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12809 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12822 if test "$GCC" != "yes" && test "$ICC" != "yes"
12824 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12825 echo "$as_me: error: gcc|icc required but not found" >&2;}
12826 { (exit 1); exit 1; }; }
12829 if test "$GXX" != "yes" && test "$IXX" != "yes"
12831 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12832 echo "$as_me: error: g++|icc required but not found" >&2;}
12833 { (exit 1); exit 1; }; }
12836 if test "$GCC" = "yes"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 #if !defined(__GNUC__) || __GNUC__ < 3
12840 #error Unsupported GCC version
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_try") 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_try") 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12884 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12885 { (exit 1); exit 1; }; }
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 if test -z "$llvm_cv_gnu_make_command"
12893 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12894 echo "$as_me: error: GNU Make required but not found" >&2;}
12895 { (exit 1); exit 1; }; }
12898 { echo "$as_me:$LINENO: result: ok" >&5
12899 echo "${ECHO_T}ok" >&6; }
12901 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12902 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12903 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12905 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12907 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12908 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12912 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12913 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12914 if test "${ac_cv_lib_m_sin+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_check_lib_save_LIBS=$LIBS
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_lib_m_sin=yes
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12987 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12988 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12989 if test $ac_cv_lib_m_sin = yes; then
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_LIBM 1
12998 if test "$llvm_cv_os_type" = "MingW" ; then
13000 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13001 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13002 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 ac_check_lib_save_LIBS=$LIBS
13006 LIBS="-limagehlp $LIBS"
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_lib_imagehlp_main=yes
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13062 ac_cv_lib_imagehlp_main=no
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13069 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13070 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13071 if test $ac_cv_lib_imagehlp_main = yes; then
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_LIBIMAGEHLP 1
13076 LIBS="-limagehlp $LIBS"
13081 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13082 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13083 if test "${ac_cv_lib_psapi_main+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lpsapi $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_lib_psapi_main=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_psapi_main=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13151 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13152 if test $ac_cv_lib_psapi_main = yes; then
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBPSAPI 1
13157 LIBS="-lpsapi $LIBS"
13163 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13164 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13165 if test "${ac_cv_search_dlopen+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 ac_func_search_save_LIBS=$LIBS
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13191 for ac_lib in '' dl; do
13192 if test -z "$ac_lib"; then
13193 ac_res="none required"
13196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_search_dlopen=$ac_res
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13240 rm -f core conftest.err conftest.$ac_objext \
13242 if test "${ac_cv_search_dlopen+set}" = set; then
13246 if test "${ac_cv_search_dlopen+set}" = set; then
13249 ac_cv_search_dlopen=no
13251 rm conftest.$ac_ext
13252 LIBS=$ac_func_search_save_LIBS
13254 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13255 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13256 ac_res=$ac_cv_search_dlopen
13257 if test "$ac_res" != no; then
13258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_DLOPEN 1
13265 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13266 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13270 if test "$llvm_cv_enable_libffi" = "yes" ; then
13271 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13272 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13273 if test "${ac_cv_search_ffi_call+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 ac_func_search_save_LIBS=$LIBS
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13294 return ffi_call ();
13299 for ac_lib in '' ffi; do
13300 if test -z "$ac_lib"; then
13301 ac_res="none required"
13304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13306 rm -f conftest.$ac_objext conftest$ac_exeext
13307 if { (ac_try="$ac_link"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_link") 2>conftest.er1
13315 grep -v '^ *+' conftest.er1 >conftest.err
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest$ac_exeext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_search_ffi_call=$ac_res
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13348 rm -f core conftest.err conftest.$ac_objext \
13350 if test "${ac_cv_search_ffi_call+set}" = set; then
13354 if test "${ac_cv_search_ffi_call+set}" = set; then
13357 ac_cv_search_ffi_call=no
13359 rm conftest.$ac_ext
13360 LIBS=$ac_func_search_save_LIBS
13362 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13363 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13364 ac_res=$ac_cv_search_ffi_call
13365 if test "$ac_res" != no; then
13366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13368 cat >>confdefs.h <<\_ACEOF
13369 #define HAVE_FFI_CALL 1
13373 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13374 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13375 { (exit 1); exit 1; }; }
13380 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13381 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13382 if test "${ac_cv_search_mallinfo+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 ac_func_search_save_LIBS=$LIBS
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13403 return mallinfo ();
13408 for ac_lib in '' malloc; do
13409 if test -z "$ac_lib"; then
13410 ac_res="none required"
13413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_link") 2>conftest.er1
13424 grep -v '^ *+' conftest.er1 >conftest.err
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest$ac_exeext'
13440 { (case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_try") 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_search_mallinfo=$ac_res
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13457 rm -f core conftest.err conftest.$ac_objext \
13459 if test "${ac_cv_search_mallinfo+set}" = set; then
13463 if test "${ac_cv_search_mallinfo+set}" = set; then
13466 ac_cv_search_mallinfo=no
13468 rm conftest.$ac_ext
13469 LIBS=$ac_func_search_save_LIBS
13471 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13472 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13473 ac_res=$ac_cv_search_mallinfo
13474 if test "$ac_res" != no; then
13475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13477 cat >>confdefs.h <<\_ACEOF
13478 #define HAVE_MALLINFO 1
13484 if test "$ENABLE_THREADS" -eq 1 ; then
13486 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13487 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13488 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 ac_check_lib_save_LIBS=$LIBS
13492 LIBS="-lpthread $LIBS"
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13506 char pthread_mutex_init ();
13510 return pthread_mutex_init ();
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_lib_pthread_pthread_mutex_init=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ac_cv_lib_pthread_pthread_mutex_init=no
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13561 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13562 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13563 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_LIBPTHREAD 1
13568 LIBS="-lpthread $LIBS"
13572 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13573 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13574 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 ac_func_search_save_LIBS=$LIBS
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13591 char pthread_mutex_lock ();
13595 return pthread_mutex_lock ();
13600 for ac_lib in '' pthread; do
13601 if test -z "$ac_lib"; then
13602 ac_res="none required"
13605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest$ac_exeext'
13632 { (case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_try") 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_search_pthread_mutex_lock=$ac_res
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13649 rm -f core conftest.err conftest.$ac_objext \
13651 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13655 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13658 ac_cv_search_pthread_mutex_lock=no
13660 rm conftest.$ac_ext
13661 LIBS=$ac_func_search_save_LIBS
13663 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13664 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13665 ac_res=$ac_cv_search_pthread_mutex_lock
13666 if test "$ac_res" != no; then
13667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13669 cat >>confdefs.h <<\_ACEOF
13670 #define HAVE_PTHREAD_MUTEX_LOCK 1
13675 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13676 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13677 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_func_search_save_LIBS=$LIBS
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13694 char pthread_rwlock_init ();
13698 return pthread_rwlock_init ();
13703 for ac_lib in '' pthread; do
13704 if test -z "$ac_lib"; then
13705 ac_res="none required"
13708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (ac_try="$ac_link"
13712 case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_link") 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13725 { (case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_try") 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest$ac_exeext'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_search_pthread_rwlock_init=$ac_res
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13752 rm -f core conftest.err conftest.$ac_objext \
13754 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13758 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13761 ac_cv_search_pthread_rwlock_init=no
13763 rm conftest.$ac_ext
13764 LIBS=$ac_func_search_save_LIBS
13766 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13767 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13768 ac_res=$ac_cv_search_pthread_rwlock_init
13769 if test "$ac_res" != no; then
13770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_PTHREAD_RWLOCK_INIT 1
13778 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13779 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13780 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 ac_func_search_save_LIBS=$LIBS
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13797 char pthread_getspecific ();
13801 return pthread_getspecific ();
13806 for ac_lib in '' pthread; do
13807 if test -z "$ac_lib"; then
13808 ac_res="none required"
13811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13813 rm -f conftest.$ac_objext conftest$ac_exeext
13814 if { (ac_try="$ac_link"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13828 { (case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_try") 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 ac_cv_search_pthread_getspecific=$ac_res
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13855 rm -f core conftest.err conftest.$ac_objext \
13857 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13861 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13864 ac_cv_search_pthread_getspecific=no
13866 rm conftest.$ac_ext
13867 LIBS=$ac_func_search_save_LIBS
13869 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13870 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13871 ac_res=$ac_cv_search_pthread_getspecific
13872 if test "$ac_res" != no; then
13873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13875 cat >>confdefs.h <<\_ACEOF
13876 #define HAVE_PTHREAD_GETSPECIFIC 1
13884 # Check whether --with-udis86 was given.
13885 if test "${with_udis86+set}" = set; then
13886 withval=$with_udis86;
13891 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13894 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13895 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13896 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-ludis86 $LIBS"
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (ac_try="$ac_link"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_link") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest$ac_exeext'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_lib_udis86_ud_init=yes
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 ac_cv_lib_udis86_ud_init=no
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 LIBS=$ac_check_lib_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13970 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13971 if test $ac_cv_lib_udis86_ud_init = yes; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_LIBUDIS86 1
13976 LIBS="-ludis86 $LIBS"
13980 echo "Error! You need to have libudis86 around."
13992 cat >>confdefs.h <<_ACEOF
13993 #define USE_UDIS86 $USE_UDIS86
13998 # Check whether --with-oprofile was given.
13999 if test "${with_oprofile+set}" = set; then
14000 withval=$with_oprofile;
14004 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14005 no) llvm_cv_oppath=
14008 *) llvm_cv_oppath="${withval}/lib/oprofile"
14009 CPPFLAGS="-I${withval}/include";;
14011 if test -n "$llvm_cv_oppath" ; then
14012 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14013 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14014 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14015 if test "${ac_cv_search_bfd_init+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 ac_func_search_save_LIBS=$LIBS
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14036 return bfd_init ();
14041 for ac_lib in '' bfd; do
14042 if test -z "$ac_lib"; then
14043 ac_res="none required"
14046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (ac_try="$ac_link"
14050 case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_link") 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14063 { (case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_try") 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_search_bfd_init=$ac_res
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14090 rm -f core conftest.err conftest.$ac_objext \
14092 if test "${ac_cv_search_bfd_init+set}" = set; then
14096 if test "${ac_cv_search_bfd_init+set}" = set; then
14099 ac_cv_search_bfd_init=no
14101 rm conftest.$ac_ext
14102 LIBS=$ac_func_search_save_LIBS
14104 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14105 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14106 ac_res=$ac_cv_search_bfd_init
14107 if test "$ac_res" != no; then
14108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14112 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14113 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14114 if test "${ac_cv_search_op_open_agent+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 ac_func_search_save_LIBS=$LIBS
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14131 char op_open_agent ();
14135 return op_open_agent ();
14140 for ac_lib in '' opagent; do
14141 if test -z "$ac_lib"; then
14142 ac_res="none required"
14145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_link") 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_try") 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_search_op_open_agent=$ac_res
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14189 rm -f core conftest.err conftest.$ac_objext \
14191 if test "${ac_cv_search_op_open_agent+set}" = set; then
14195 if test "${ac_cv_search_op_open_agent+set}" = set; then
14198 ac_cv_search_op_open_agent=no
14200 rm conftest.$ac_ext
14201 LIBS=$ac_func_search_save_LIBS
14203 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14204 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14205 ac_res=$ac_cv_search_op_open_agent
14206 if test "$ac_res" != no; then
14207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14211 echo "Error! You need to have libopagent around."
14216 if test "${ac_cv_header_opagent_h+set}" = set; then
14217 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14218 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14219 if test "${ac_cv_header_opagent_h+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14223 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14225 # Is the header compilable?
14226 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14227 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 $ac_includes_default
14235 #include <opagent.h>
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_header_compiler=no
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6; }
14283 # Is the header present?
14284 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14285 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 #include <opagent.h>
14294 if { (ac_try="$ac_cpp conftest.$ac_ext"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } >/dev/null; then
14307 if test -s conftest.err; then
14308 ac_cpp_err=$ac_c_preproc_warn_flag
14309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14316 if test -z "$ac_cpp_err"; then
14317 ac_header_preproc=yes
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_header_preproc=no
14325 rm -f conftest.err conftest.$ac_ext
14326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14327 echo "${ECHO_T}$ac_header_preproc" >&6; }
14329 # So? What about this header?
14330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14332 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14333 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14335 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14336 ac_header_preproc=yes
14339 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14340 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14342 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14344 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14346 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14348 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14350 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14352 ## ----------------------------------- ##
14353 ## Report this to llvmbugs@cs.uiuc.edu ##
14354 ## ----------------------------------- ##
14356 ) | sed "s/^/$as_me: WARNING: /" >&2
14359 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14360 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_opagent_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 ac_cv_header_opagent_h=$ac_header_preproc
14366 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14367 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14370 if test $ac_cv_header_opagent_h = yes; then
14374 echo "Error! You need to have opagent.h around."
14390 cat >>confdefs.h <<_ACEOF
14391 #define USE_OPROFILE $USE_OPROFILE
14401 ac_header_dirent=no
14402 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14403 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14404 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14405 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 #include <sys/types.h>
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 eval "$as_ac_Header=yes"
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 eval "$as_ac_Header=no"
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 ac_res=`eval echo '${'$as_ac_Header'}'`
14472 { echo "$as_me:$LINENO: result: $ac_res" >&5
14473 echo "${ECHO_T}$ac_res" >&6; }
14474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14479 ac_header_dirent=$ac_hdr; break
14483 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14484 if test $ac_header_dirent = dirent.h; then
14485 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14487 if test "${ac_cv_search_opendir+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 ac_func_search_save_LIBS=$LIBS
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14513 for ac_lib in '' dir; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_search_opendir=$ac_res
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14562 rm -f core conftest.err conftest.$ac_objext \
14564 if test "${ac_cv_search_opendir+set}" = set; then
14568 if test "${ac_cv_search_opendir+set}" = set; then
14571 ac_cv_search_opendir=no
14573 rm conftest.$ac_ext
14574 LIBS=$ac_func_search_save_LIBS
14576 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14577 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14578 ac_res=$ac_cv_search_opendir
14579 if test "$ac_res" != no; then
14580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14585 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14586 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14587 if test "${ac_cv_search_opendir+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 ac_func_search_save_LIBS=$LIBS
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14613 for ac_lib in '' x; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14629 grep -v '^ *+' conftest.er1 >conftest.err
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest$ac_exeext'
14645 { (case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_try") 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_search_opendir=$ac_res
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14662 rm -f core conftest.err conftest.$ac_objext \
14664 if test "${ac_cv_search_opendir+set}" = set; then
14668 if test "${ac_cv_search_opendir+set}" = set; then
14671 ac_cv_search_opendir=no
14673 rm conftest.$ac_ext
14674 LIBS=$ac_func_search_save_LIBS
14676 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14677 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14678 ac_res=$ac_cv_search_opendir
14679 if test "$ac_res" != no; then
14680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14686 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14687 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14688 if test "${ac_cv_header_mmap_anon+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697 cat >conftest.$ac_ext <<_ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 #include <sys/mman.h>
14704 #include <unistd.h>
14709 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_compile") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_try") 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_cv_header_mmap_anon=yes
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_cv_header_mmap_anon=no
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 ac_cpp='$CPP $CPPFLAGS'
14759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14765 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14766 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14767 if test "$ac_cv_header_mmap_anon" = yes; then
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_MMAP_ANONYMOUS 1
14775 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14776 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14777 if test "${ac_cv_header_stat_broken+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 cat >conftest.$ac_ext <<_ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <sys/types.h>
14787 #include <sys/stat.h>
14789 #if defined S_ISBLK && defined S_IFDIR
14790 # if S_ISBLK (S_IFDIR)
14795 #if defined S_ISBLK && defined S_IFCHR
14796 # if S_ISBLK (S_IFCHR)
14801 #if defined S_ISLNK && defined S_IFREG
14802 # if S_ISLNK (S_IFREG)
14807 #if defined S_ISSOCK && defined S_IFREG
14808 # if S_ISSOCK (S_IFREG)
14814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14815 $EGREP "You lose" >/dev/null 2>&1; then
14816 ac_cv_header_stat_broken=yes
14818 ac_cv_header_stat_broken=no
14823 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14824 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14825 if test $ac_cv_header_stat_broken = yes; then
14827 cat >>confdefs.h <<\_ACEOF
14828 #define STAT_MACROS_BROKEN 1
14833 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14835 if test "${ac_cv_header_stdc+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 cat >conftest.$ac_ext <<_ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #include <stdlib.h>
14845 #include <stdarg.h>
14846 #include <string.h>
14857 rm -f conftest.$ac_objext
14858 if { (ac_try="$ac_compile"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_compile") 2>conftest.er1
14866 grep -v '^ *+' conftest.er1 >conftest.err
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14872 { (case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_try") 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_try") 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_header_stdc=yes
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ac_cv_header_stdc=no
14899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 if test $ac_cv_header_stdc = yes; then
14902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <string.h>
14912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14913 $EGREP "memchr" >/dev/null 2>&1; then
14916 ac_cv_header_stdc=no
14922 if test $ac_cv_header_stdc = yes; then
14923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <stdlib.h>
14933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934 $EGREP "free" >/dev/null 2>&1; then
14937 ac_cv_header_stdc=no
14943 if test $ac_cv_header_stdc = yes; then
14944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14945 if test "$cross_compiling" = yes; then
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14955 #include <stdlib.h>
14956 #if ((' ' & 0x0FF) == 0x020)
14957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14960 # define ISLOWER(c) \
14961 (('a' <= (c) && (c) <= 'i') \
14962 || ('j' <= (c) && (c) <= 'r') \
14963 || ('s' <= (c) && (c) <= 'z'))
14964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14972 for (i = 0; i < 256; i++)
14973 if (XOR (islower (i), ISLOWER (i))
14974 || toupper (i) != TOUPPER (i))
14979 rm -f conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
15001 echo "$as_me: program exited with status $ac_status" >&5
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ( exit $ac_status )
15006 ac_cv_header_stdc=no
15008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15016 if test $ac_cv_header_stdc = yes; then
15018 cat >>confdefs.h <<\_ACEOF
15019 #define STDC_HEADERS 1
15024 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15025 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15026 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <sys/types.h>
15036 #include <sys/wait.h>
15037 #ifndef WEXITSTATUS
15038 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15041 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15049 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest.$ac_objext'
15079 { (case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_try") 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_header_sys_wait_h=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ac_cv_header_sys_wait_h=no
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15099 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15100 if test $ac_cv_header_sys_wait_h = yes; then
15102 cat >>confdefs.h <<\_ACEOF
15103 #define HAVE_SYS_WAIT_H 1
15108 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15109 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15110 if test "${ac_cv_header_time+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 cat >conftest.$ac_ext <<_ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 #include <sys/time.h>
15126 if ((struct tm *) 0)
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_header_time=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_header_time=no
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15177 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15178 if test $ac_cv_header_time = yes; then
15180 cat >>confdefs.h <<\_ACEOF
15181 #define TIME_WITH_SYS_TIME 1
15193 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 ac_res=`eval echo '${'$as_ac_Header'}'`
15203 { echo "$as_me:$LINENO: result: $ac_res" >&5
15204 echo "${ECHO_T}$ac_res" >&6; }
15206 # Is the header compilable?
15207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 $ac_includes_default
15216 #include <$ac_header>
15218 rm -f conftest.$ac_objext
15219 if { (ac_try="$ac_compile"
15220 case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_compile") 2>conftest.er1
15227 grep -v '^ *+' conftest.er1 >conftest.err
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_try") 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_header_compiler=yes
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_header_compiler=no
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15262 echo "${ECHO_T}$ac_header_compiler" >&6; }
15264 # Is the header present?
15265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15267 cat >conftest.$ac_ext <<_ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <$ac_header>
15275 if { (ac_try="$ac_cpp conftest.$ac_ext"
15276 case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } >/dev/null; then
15288 if test -s conftest.err; then
15289 ac_cpp_err=$ac_c_preproc_warn_flag
15290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15297 if test -z "$ac_cpp_err"; then
15298 ac_header_preproc=yes
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 ac_header_preproc=no
15306 rm -f conftest.err conftest.$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15308 echo "${ECHO_T}$ac_header_preproc" >&6; }
15310 # So? What about this header?
15311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15317 ac_header_preproc=yes
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15333 ## ----------------------------------- ##
15334 ## Report this to llvmbugs@cs.uiuc.edu ##
15335 ## ----------------------------------- ##
15337 ) | sed "s/^/$as_me: WARNING: /" >&2
15340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 eval "$as_ac_Header=\$ac_header_preproc"
15347 ac_res=`eval echo '${'$as_ac_Header'}'`
15348 { echo "$as_me:$LINENO: result: $ac_res" >&5
15349 echo "${ECHO_T}$ac_res" >&6; }
15352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15353 cat >>confdefs.h <<_ACEOF
15354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15380 # Is the header compilable?
15381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 #include <$ac_header>
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407 { (case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_try") 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <$ac_header>
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471 if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15507 ## ----------------------------------- ##
15508 ## Report this to llvmbugs@cs.uiuc.edu ##
15509 ## ----------------------------------- ##
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 eval "$as_ac_Header=\$ac_header_preproc"
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15537 for ac_header in utime.h windows.h
15539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 ac_res=`eval echo '${'$as_ac_Header'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15550 # Is the header compilable?
15551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 #include <$ac_header>
15562 rm -f conftest.$ac_objext
15563 if { (ac_try="$ac_compile"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_compile") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15577 { (case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_try") 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_header_compiler=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_header_compiler=no
15604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15606 echo "${ECHO_T}$ac_header_compiler" >&6; }
15608 # Is the header present?
15609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 #include <$ac_header>
15619 if { (ac_try="$ac_cpp conftest.$ac_ext"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15627 grep -v '^ *+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } >/dev/null; then
15632 if test -s conftest.err; then
15633 ac_cpp_err=$ac_c_preproc_warn_flag
15634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641 if test -z "$ac_cpp_err"; then
15642 ac_header_preproc=yes
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_header_preproc=no
15650 rm -f conftest.err conftest.$ac_ext
15651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15652 echo "${ECHO_T}$ac_header_preproc" >&6; }
15654 # So? What about this header?
15655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15661 ac_header_preproc=yes
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15677 ## ----------------------------------- ##
15678 ## Report this to llvmbugs@cs.uiuc.edu ##
15679 ## ----------------------------------- ##
15681 ) | sed "s/^/$as_me: WARNING: /" >&2
15684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 eval "$as_ac_Header=\$ac_header_preproc"
15691 ac_res=`eval echo '${'$as_ac_Header'}'`
15692 { echo "$as_me:$LINENO: result: $ac_res" >&5
15693 echo "${ECHO_T}$ac_res" >&6; }
15696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15697 cat >>confdefs.h <<_ACEOF
15698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15709 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 ac_res=`eval echo '${'$as_ac_Header'}'`
15719 { echo "$as_me:$LINENO: result: $ac_res" >&5
15720 echo "${ECHO_T}$ac_res" >&6; }
15722 # Is the header compilable?
15723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 $ac_includes_default
15732 #include <$ac_header>
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_compile") 2>conftest.er1
15743 grep -v '^ *+' conftest.er1 >conftest.err
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15749 { (case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_try") 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_header_compiler=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_header_compiler=no
15776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778 echo "${ECHO_T}$ac_header_compiler" >&6; }
15780 # Is the header present?
15781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <$ac_header>
15791 if { (ac_try="$ac_cpp conftest.$ac_ext"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } >/dev/null; then
15804 if test -s conftest.err; then
15805 ac_cpp_err=$ac_c_preproc_warn_flag
15806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15813 if test -z "$ac_cpp_err"; then
15814 ac_header_preproc=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_header_preproc=no
15822 rm -f conftest.err conftest.$ac_ext
15823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15824 echo "${ECHO_T}$ac_header_preproc" >&6; }
15826 # So? What about this header?
15827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15833 ac_header_preproc=yes
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849 ## ----------------------------------- ##
15850 ## Report this to llvmbugs@cs.uiuc.edu ##
15851 ## ----------------------------------- ##
15853 ) | sed "s/^/$as_me: WARNING: /" >&2
15856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 eval "$as_ac_Header=\$ac_header_preproc"
15863 ac_res=`eval echo '${'$as_ac_Header'}'`
15864 { echo "$as_me:$LINENO: result: $ac_res" >&5
15865 echo "${ECHO_T}$ac_res" >&6; }
15868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15881 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15894 # Is the header compilable?
15895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 $ac_includes_default
15904 #include <$ac_header>
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950 echo "${ECHO_T}$ac_header_compiler" >&6; }
15952 # Is the header present?
15953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #include <$ac_header>
15963 if { (ac_try="$ac_cpp conftest.$ac_ext"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15985 if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_preproc=no
15994 rm -f conftest.err conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6; }
15998 # So? What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16021 ## ----------------------------------- ##
16022 ## Report this to llvmbugs@cs.uiuc.edu ##
16023 ## ----------------------------------- ##
16025 ) | sed "s/^/$as_me: WARNING: /" >&2
16028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 eval "$as_ac_Header=\$ac_header_preproc"
16035 ac_res=`eval echo '${'$as_ac_Header'}'`
16036 { echo "$as_me:$LINENO: result: $ac_res" >&5
16037 echo "${ECHO_T}$ac_res" >&6; }
16040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16049 if test "$ENABLE_THREADS" -eq 1 ; then
16051 for ac_header in pthread.h
16053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 ac_res=`eval echo '${'$as_ac_Header'}'`
16061 { echo "$as_me:$LINENO: result: $ac_res" >&5
16062 echo "${ECHO_T}$ac_res" >&6; }
16064 # Is the header compilable?
16065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 $ac_includes_default
16074 #include <$ac_header>
16076 rm -f conftest.$ac_objext
16077 if { (ac_try="$ac_compile"
16078 case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_compile") 2>conftest.er1
16085 grep -v '^ *+' conftest.er1 >conftest.err
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest.$ac_objext'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_header_compiler=yes
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_compiler=no
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120 echo "${ECHO_T}$ac_header_compiler" >&6; }
16122 # Is the header present?
16123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16125 cat >conftest.$ac_ext <<_ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <$ac_header>
16133 if { (ac_try="$ac_cpp conftest.$ac_ext"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16141 grep -v '^ *+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } >/dev/null; then
16146 if test -s conftest.err; then
16147 ac_cpp_err=$ac_c_preproc_warn_flag
16148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16155 if test -z "$ac_cpp_err"; then
16156 ac_header_preproc=yes
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 ac_header_preproc=no
16164 rm -f conftest.err conftest.$ac_ext
16165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16166 echo "${ECHO_T}$ac_header_preproc" >&6; }
16168 # So? What about this header?
16169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16175 ac_header_preproc=yes
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16191 ## ----------------------------------- ##
16192 ## Report this to llvmbugs@cs.uiuc.edu ##
16193 ## ----------------------------------- ##
16195 ) | sed "s/^/$as_me: WARNING: /" >&2
16198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 eval "$as_ac_Header=\$ac_header_preproc"
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16211 cat >>confdefs.h <<_ACEOF
16212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16228 if test "$llvm_cv_enable_libffi" = "yes" ; then
16231 for ac_header in ffi.h ffi/ffi.h
16233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 ac_res=`eval echo '${'$as_ac_Header'}'`
16241 { echo "$as_me:$LINENO: result: $ac_res" >&5
16242 echo "${ECHO_T}$ac_res" >&6; }
16244 # Is the header compilable?
16245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #include <$ac_header>
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_header_compiler=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_header_compiler=no
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16300 echo "${ECHO_T}$ac_header_compiler" >&6; }
16302 # Is the header present?
16303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <$ac_header>
16313 if { (ac_try="$ac_cpp conftest.$ac_ext"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } >/dev/null; then
16326 if test -s conftest.err; then
16327 ac_cpp_err=$ac_c_preproc_warn_flag
16328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16335 if test -z "$ac_cpp_err"; then
16336 ac_header_preproc=yes
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ac_header_preproc=no
16344 rm -f conftest.err conftest.$ac_ext
16345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16346 echo "${ECHO_T}$ac_header_preproc" >&6; }
16348 # So? What about this header?
16349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16355 ac_header_preproc=yes
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16371 ## ----------------------------------- ##
16372 ## Report this to llvmbugs@cs.uiuc.edu ##
16373 ## ----------------------------------- ##
16375 ) | sed "s/^/$as_me: WARNING: /" >&2
16378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 eval "$as_ac_Header=\$ac_header_preproc"
16385 ac_res=`eval echo '${'$as_ac_Header'}'`
16386 { echo "$as_me:$LINENO: result: $ac_res" >&5
16387 echo "${ECHO_T}$ac_res" >&6; }
16390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16404 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16405 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16406 if test "${ac_cv_huge_val_sanity+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_cpp='$CXXCPP $CPPFLAGS'
16412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16417 if test "$cross_compiling" = yes; then
16418 ac_cv_huge_val_sanity=yes
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16430 double x = HUGE_VAL; return x != x;
16435 rm -f conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_huge_val_sanity=yes
16457 echo "$as_me: program exited with status $ac_status" >&5
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ( exit $ac_status )
16462 ac_cv_huge_val_sanity=no
16464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16469 ac_cpp='$CPP $CPPFLAGS'
16470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16476 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16477 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16478 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16481 { echo "$as_me:$LINENO: checking for pid_t" >&5
16482 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16483 if test "${ac_cv_type_pid_t+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 $ac_includes_default
16493 typedef pid_t ac__type_new_;
16497 if ((ac__type_new_ *) 0)
16499 if (sizeof (ac__type_new_))
16505 rm -f conftest.$ac_objext
16506 if { (ac_try="$ac_compile"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_compile") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16520 { (case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_try") 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_type_pid_t=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 ac_cv_type_pid_t=no
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16551 if test $ac_cv_type_pid_t = yes; then
16555 cat >>confdefs.h <<_ACEOF
16561 { echo "$as_me:$LINENO: checking for size_t" >&5
16562 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16563 if test "${ac_cv_type_size_t+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 cat >conftest.$ac_ext <<_ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 $ac_includes_default
16573 typedef size_t ac__type_new_;
16577 if ((ac__type_new_ *) 0)
16579 if (sizeof (ac__type_new_))
16585 rm -f conftest.$ac_objext
16586 if { (ac_try="$ac_compile"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_compile") 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_try") 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_try") 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_type_size_t=yes
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ac_cv_type_size_t=no
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16630 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16631 if test $ac_cv_type_size_t = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define size_t unsigned int
16642 cat >>confdefs.h <<_ACEOF
16643 #define RETSIGTYPE void
16646 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16647 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16648 if test "${ac_cv_struct_tm+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 #include <sys/types.h>
16663 struct tm *tp; tp->tm_sec;
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_struct_tm=time.h
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ac_cv_struct_tm=sys/time.h
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16713 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16714 if test $ac_cv_struct_tm = sys/time.h; then
16716 cat >>confdefs.h <<\_ACEOF
16717 #define TM_IN_SYS_TIME 1
16722 { echo "$as_me:$LINENO: checking for int64_t" >&5
16723 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16724 if test "${ac_cv_type_int64_t+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 typedef int64_t ac__type_new_;
16738 if ((ac__type_new_ *) 0)
16740 if (sizeof (ac__type_new_))
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_type_int64_t=yes
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_type_int64_t=no
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16791 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16792 if test $ac_cv_type_int64_t = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795 #define HAVE_INT64_T 1
16800 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16801 echo "$as_me: error: Type int64_t required but not found" >&2;}
16802 { (exit 1); exit 1; }; }
16805 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16806 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16807 if test "${ac_cv_type_uint64_t+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 $ac_includes_default
16817 typedef uint64_t ac__type_new_;
16821 if ((ac__type_new_ *) 0)
16823 if (sizeof (ac__type_new_))
16829 rm -f conftest.$ac_objext
16830 if { (ac_try="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16838 grep -v '^ *+' conftest.er1 >conftest.err
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_type_uint64_t=yes
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_cv_type_uint64_t=no
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16874 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16875 if test $ac_cv_type_uint64_t = yes; then
16877 cat >>confdefs.h <<_ACEOF
16878 #define HAVE_UINT64_T 1
16883 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16884 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16885 if test "${ac_cv_type_u_int64_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16895 typedef u_int64_t ac__type_new_;
16899 if ((ac__type_new_ *) 0)
16901 if (sizeof (ac__type_new_))
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_u_int64_t=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_type_u_int64_t=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16952 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16953 if test $ac_cv_type_u_int64_t = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define HAVE_U_INT64_T 1
16961 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16962 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16963 { (exit 1); exit 1; }; }
16977 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16993 #define $ac_func innocuous_$ac_func
16995 /* System header to define __stub macros and hopefully few prototypes,
16996 which can conflict with char $ac_func (); below.
16997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998 <limits.h> exists even on freestanding compilers. */
17001 # include <limits.h>
17003 # include <assert.h>
17008 /* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17015 /* The GNU C library defines this for functions which it implements
17016 to always fail with ENOSYS. Some functions are actually named
17017 something starting with __ and the normal name is an alias. */
17018 #if defined __stub_$ac_func || defined __stub___$ac_func
17025 return $ac_func ();
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1 >conftest.err
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_try") 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 eval "$as_ac_var=yes"
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 eval "$as_ac_var=no"
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17075 ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result: $ac_res" >&5
17077 echo "${ECHO_T}$ac_res" >&6; }
17078 if test `eval echo '${'$as_ac_var'}'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17090 for ac_func in powf fmodf strtof round
17092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106 #define $ac_func innocuous_$ac_func
17108 /* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char $ac_func (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17114 # include <limits.h>
17116 # include <assert.h>
17121 /* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17128 /* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131 #if defined __stub_$ac_func || defined __stub___$ac_func
17138 return $ac_func ();
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (ac_try="$ac_link"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_link") 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 eval "$as_ac_var=yes"
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 eval "$as_ac_var=no"
17185 rm -f core conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17188 ac_res=`eval echo '${'$as_ac_var'}'`
17189 { echo "$as_me:$LINENO: result: $ac_res" >&5
17190 echo "${ECHO_T}$ac_res" >&6; }
17191 if test `eval echo '${'$as_ac_var'}'` = yes; then
17192 cat >>confdefs.h <<_ACEOF
17193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17204 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17220 #define $ac_func innocuous_$ac_func
17222 /* System header to define __stub macros and hopefully few prototypes,
17223 which can conflict with char $ac_func (); below.
17224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17225 <limits.h> exists even on freestanding compilers. */
17228 # include <limits.h>
17230 # include <assert.h>
17235 /* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17242 /* The GNU C library defines this for functions which it implements
17243 to always fail with ENOSYS. Some functions are actually named
17244 something starting with __ and the normal name is an alias. */
17245 #if defined __stub_$ac_func || defined __stub___$ac_func
17252 return $ac_func ();
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (ac_try="$ac_link"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_link") 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17272 { (case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_try") 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 eval "$as_ac_var=yes"
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 eval "$as_ac_var=no"
17299 rm -f core conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17302 ac_res=`eval echo '${'$as_ac_var'}'`
17303 { echo "$as_me:$LINENO: result: $ac_res" >&5
17304 echo "${ECHO_T}$ac_res" >&6; }
17305 if test `eval echo '${'$as_ac_var'}'` = yes; then
17306 cat >>confdefs.h <<_ACEOF
17307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17316 for ac_func in isatty mkdtemp mkstemp
17318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 cat >conftest.$ac_ext <<_ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332 #define $ac_func innocuous_$ac_func
17334 /* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func (); below.
17336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337 <limits.h> exists even on freestanding compilers. */
17340 # include <limits.h>
17342 # include <assert.h>
17347 /* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17354 /* The GNU C library defines this for functions which it implements
17355 to always fail with ENOSYS. Some functions are actually named
17356 something starting with __ and the normal name is an alias. */
17357 #if defined __stub_$ac_func || defined __stub___$ac_func
17364 return $ac_func ();
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 eval "$as_ac_var=yes"
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 eval "$as_ac_var=no"
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17414 ac_res=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417 if test `eval echo '${'$as_ac_var'}'` = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17430 for ac_func in mktemp realpath sbrk setrlimit strdup
17432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17446 #define $ac_func innocuous_$ac_func
17448 /* System header to define __stub macros and hopefully few prototypes,
17449 which can conflict with char $ac_func (); below.
17450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451 <limits.h> exists even on freestanding compilers. */
17454 # include <limits.h>
17456 # include <assert.h>
17461 /* Override any GCC internal prototype to avoid an error.
17462 Use char because int might match the return type of a GCC
17463 builtin and then its argument prototype would still apply. */
17468 /* The GNU C library defines this for functions which it implements
17469 to always fail with ENOSYS. Some functions are actually named
17470 something starting with __ and the normal name is an alias. */
17471 #if defined __stub_$ac_func || defined __stub___$ac_func
17478 return $ac_func ();
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17492 grep -v '^ *+' conftest.er1 >conftest.err
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 eval "$as_ac_var=yes"
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 eval "$as_ac_var=no"
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17528 ac_res=`eval echo '${'$as_ac_var'}'`
17529 { echo "$as_me:$LINENO: result: $ac_res" >&5
17530 echo "${ECHO_T}$ac_res" >&6; }
17531 if test `eval echo '${'$as_ac_var'}'` = yes; then
17532 cat >>confdefs.h <<_ACEOF
17533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17543 for ac_func in strerror strerror_r strerror_s setenv
17545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17559 #define $ac_func innocuous_$ac_func
17561 /* System header to define __stub macros and hopefully few prototypes,
17562 which can conflict with char $ac_func (); below.
17563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564 <limits.h> exists even on freestanding compilers. */
17567 # include <limits.h>
17569 # include <assert.h>
17574 /* Override any GCC internal prototype to avoid an error.
17575 Use char because int might match the return type of a GCC
17576 builtin and then its argument prototype would still apply. */
17581 /* The GNU C library defines this for functions which it implements
17582 to always fail with ENOSYS. Some functions are actually named
17583 something starting with __ and the normal name is an alias. */
17584 #if defined __stub_$ac_func || defined __stub___$ac_func
17591 return $ac_func ();
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>conftest.er1
17605 grep -v '^ *+' conftest.er1 >conftest.err
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 eval "$as_ac_var=yes"
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17635 eval "$as_ac_var=no"
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17641 ac_res=`eval echo '${'$as_ac_var'}'`
17642 { echo "$as_me:$LINENO: result: $ac_res" >&5
17643 echo "${ECHO_T}$ac_res" >&6; }
17644 if test `eval echo '${'$as_ac_var'}'` = yes; then
17645 cat >>confdefs.h <<_ACEOF
17646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17672 #define $ac_func innocuous_$ac_func
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char $ac_func (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17680 # include <limits.h>
17682 # include <assert.h>
17687 /* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17694 /* The GNU C library defines this for functions which it implements
17695 to always fail with ENOSYS. Some functions are actually named
17696 something starting with __ and the normal name is an alias. */
17697 #if defined __stub_$ac_func || defined __stub___$ac_func
17704 return $ac_func ();
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_try") 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 eval "$as_ac_var=yes"
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 eval "$as_ac_var=no"
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17754 ac_res=`eval echo '${'$as_ac_var'}'`
17755 { echo "$as_me:$LINENO: result: $ac_res" >&5
17756 echo "${ECHO_T}$ac_res" >&6; }
17757 if test `eval echo '${'$as_ac_var'}'` = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17769 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define $ac_func innocuous_$ac_func
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char $ac_func (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17793 # include <limits.h>
17795 # include <assert.h>
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_$ac_func || defined __stub___$ac_func
17817 return $ac_func ();
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_link") 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; } &&
17846 { ac_try='test -s conftest$ac_exeext'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 eval "$as_ac_var=no"
17864 rm -f core conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17867 ac_res=`eval echo '${'$as_ac_var'}'`
17868 { echo "$as_me:$LINENO: result: $ac_res" >&5
17869 echo "${ECHO_T}$ac_res" >&6; }
17870 if test `eval echo '${'$as_ac_var'}'` = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17879 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17880 if test "${llvm_cv_c_printf_a+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 ac_cpp='$CPP $CPPFLAGS'
17885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17889 if test "$cross_compiling" = yes; then
17890 llvmac_cv_c_printf_a=no
17892 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17901 #include <stdlib.h>
17907 volatile double A, B;
17911 sprintf(Buffer, "%a", A);
17915 if (A != 0x1.999999999999ap-4)
17922 rm -f conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 llvm_cv_c_printf_a=yes
17944 echo "$as_me: program exited with status $ac_status" >&5
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ( exit $ac_status )
17949 llvmac_cv_c_printf_a=no
17951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17963 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17964 if test "$llvm_cv_c_printf_a" = "yes"; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_PRINTF_A 1
17973 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17974 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17975 if test "${ac_cv_func_rand48+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 ac_cpp='$CXXCPP $CPPFLAGS'
17980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <stdlib.h>
17994 srand48(0);lrand48();drand48();
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18014 { (case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_try") 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 ac_cv_func_rand48=yes
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 ac_cv_func_rand48=no
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18049 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18050 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18052 if test "$ac_cv_func_rand48" = "yes" ; then
18054 cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_RAND48 1
18062 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18063 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18064 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 ac_cpp='$CXXCPP $CPPFLAGS'
18069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18088 rm -f conftest.$ac_objext
18089 if { (ac_try="$ac_compile"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18103 { (case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_try") 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_func_isnan_in_math_h=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_func_isnan_in_math_h=no
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 ac_cpp='$CPP $CPPFLAGS'
18133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18138 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18139 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18142 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18144 cat >>confdefs.h <<\_ACEOF
18145 #define HAVE_ISNAN_IN_MATH_H 1
18150 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18151 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18152 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18156 ac_cpp='$CXXCPP $CPPFLAGS'
18157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18176 rm -f conftest.$ac_objext
18177 if { (ac_try="$ac_compile"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_compile") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest.$ac_objext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_func_isnan_in_cmath=yes
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_cv_func_isnan_in_cmath=no
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18226 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18227 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18229 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_ISNAN_IN_CMATH 1
18237 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18238 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18239 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18258 float f; std::isnan(f);
18263 rm -f conftest.$ac_objext
18264 if { (ac_try="$ac_compile"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_compile") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_func_std_isnan_in_cmath=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_func_std_isnan_in_cmath=no
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307 ac_cpp='$CPP $CPPFLAGS'
18308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18313 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18314 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18316 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_STD_ISNAN_IN_CMATH 1
18325 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18326 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18327 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 ac_cpp='$CXXCPP $CPPFLAGS'
18332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18336 cat >conftest.$ac_ext <<_ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18351 rm -f conftest.$ac_objext
18352 if { (ac_try="$ac_compile"
18353 case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18360 grep -v '^ *+' conftest.er1 >conftest.err
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
18365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18366 { (case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_try") 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
18376 { (case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_try") 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385 ac_cv_func_isinf_in_math_h=yes
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_cv_func_isinf_in_math_h=no
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 ac_cpp='$CPP $CPPFLAGS'
18396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18402 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18404 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_ISINF_IN_MATH_H 1
18412 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18413 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18414 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 ac_cpp='$CXXCPP $CPPFLAGS'
18419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_func_isinf_in_cmath=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_func_isinf_in_cmath=no
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 ac_cpp='$CPP $CPPFLAGS'
18483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18489 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18491 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_ISINF_IN_CMATH 1
18499 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18500 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18501 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 ac_cpp='$CXXCPP $CPPFLAGS'
18506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18520 float f; std::isinf(f)}
18525 rm -f conftest.$ac_objext
18526 if { (ac_try="$ac_compile"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_compile") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_func_std_isinf_in_cmath=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ac_cv_func_std_isinf_in_cmath=no
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 ac_cpp='$CPP $CPPFLAGS'
18570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18575 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18576 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18578 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_STD_ISINF_IN_CMATH 1
18586 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18587 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18588 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <ieeefp.h>
18607 float f; finite(f);
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_compile") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_func_finite_in_ieeefp_h=yes
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_func_finite_in_ieeefp_h=no
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18662 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18663 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18665 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18667 cat >>confdefs.h <<\_ACEOF
18668 #define HAVE_FINITE_IN_IEEEFP_H 1
18675 if test "$llvm_cv_platform_type" = "Unix" ; then
18678 for ac_header in stdlib.h unistd.h
18680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 ac_res=`eval echo '${'$as_ac_Header'}'`
18688 { echo "$as_me:$LINENO: result: $ac_res" >&5
18689 echo "${ECHO_T}$ac_res" >&6; }
18691 # Is the header compilable?
18692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 $ac_includes_default
18701 #include <$ac_header>
18703 rm -f conftest.$ac_objext
18704 if { (ac_try="$ac_compile"
18705 case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_compile") 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_header_compiler=yes
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 ac_header_compiler=no
18745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18747 echo "${ECHO_T}$ac_header_compiler" >&6; }
18749 # Is the header present?
18750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 #include <$ac_header>
18760 if { (ac_try="$ac_cpp conftest.$ac_ext"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } >/dev/null; then
18773 if test -s conftest.err; then
18774 ac_cpp_err=$ac_c_preproc_warn_flag
18775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18782 if test -z "$ac_cpp_err"; then
18783 ac_header_preproc=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_header_preproc=no
18791 rm -f conftest.err conftest.$ac_ext
18792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18793 echo "${ECHO_T}$ac_header_preproc" >&6; }
18795 # So? What about this header?
18796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18802 ac_header_preproc=yes
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18818 ## ----------------------------------- ##
18819 ## Report this to llvmbugs@cs.uiuc.edu ##
18820 ## ----------------------------------- ##
18822 ) | sed "s/^/$as_me: WARNING: /" >&2
18825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 eval "$as_ac_Header=\$ac_header_preproc"
18832 ac_res=`eval echo '${'$as_ac_Header'}'`
18833 { echo "$as_me:$LINENO: result: $ac_res" >&5
18834 echo "${ECHO_T}$ac_res" >&6; }
18837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18838 cat >>confdefs.h <<_ACEOF
18839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18847 for ac_func in getpagesize
18849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18863 #define $ac_func innocuous_$ac_func
18865 /* System header to define __stub macros and hopefully few prototypes,
18866 which can conflict with char $ac_func (); below.
18867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 <limits.h> exists even on freestanding compilers. */
18871 # include <limits.h>
18873 # include <assert.h>
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18885 /* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888 #if defined __stub_$ac_func || defined __stub___$ac_func
18895 return $ac_func ();
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 eval "$as_ac_var=yes"
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 eval "$as_ac_var=no"
18942 rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18945 ac_res=`eval echo '${'$as_ac_var'}'`
18946 { echo "$as_me:$LINENO: result: $ac_res" >&5
18947 echo "${ECHO_T}$ac_res" >&6; }
18948 if test `eval echo '${'$as_ac_var'}'` = yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18956 { echo "$as_me:$LINENO: checking for working mmap" >&5
18957 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 if test "$cross_compiling" = yes; then
18962 ac_cv_func_mmap_fixed_mapped=no
18964 cat >conftest.$ac_ext <<_ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 $ac_includes_default
18971 /* malloc might have been renamed as rpl_malloc. */
18974 /* Thanks to Mike Haertel and Jim Avera for this test.
18975 Here is a matrix of mmap possibilities:
18976 mmap private not fixed
18977 mmap private fixed at somewhere currently unmapped
18978 mmap private fixed at somewhere already mapped
18979 mmap shared not fixed
18980 mmap shared fixed at somewhere currently unmapped
18981 mmap shared fixed at somewhere already mapped
18982 For private mappings, we should verify that changes cannot be read()
18983 back from the file, nor mmap's back from the file at a different
18984 address. (There have been systems where private was not correctly
18985 implemented like the infamous i386 svr4.0, and systems where the
18986 VM page cache was not coherent with the file system buffer cache
18987 like early versions of FreeBSD and possibly contemporary NetBSD.)
18988 For shared mappings, we should conversely verify that changes get
18989 propagated back to all the places they're supposed to be.
18991 Grep wants private fixed already mapped.
18992 The main things grep needs to know about mmap are:
18993 * does it exist and is it safe to write into the mmap'd area
18994 * how to use it (BSD variants) */
18997 #include <sys/mman.h>
18999 #if !STDC_HEADERS && !HAVE_STDLIB_H
19003 /* This mess was copied from the GNU getpagesize.h. */
19004 #if !HAVE_GETPAGESIZE
19005 /* Assume that all systems that can run configure have sys/param.h. */
19006 # if !HAVE_SYS_PARAM_H
19007 # define HAVE_SYS_PARAM_H 1
19010 # ifdef _SC_PAGESIZE
19011 # define getpagesize() sysconf(_SC_PAGESIZE)
19012 # else /* no _SC_PAGESIZE */
19013 # if HAVE_SYS_PARAM_H
19014 # include <sys/param.h>
19015 # ifdef EXEC_PAGESIZE
19016 # define getpagesize() EXEC_PAGESIZE
19017 # else /* no EXEC_PAGESIZE */
19019 # define getpagesize() NBPG * CLSIZE
19022 # endif /* no CLSIZE */
19023 # else /* no NBPG */
19025 # define getpagesize() NBPC
19026 # else /* no NBPC */
19028 # define getpagesize() PAGESIZE
19029 # endif /* PAGESIZE */
19030 # endif /* no NBPC */
19031 # endif /* no NBPG */
19032 # endif /* no EXEC_PAGESIZE */
19033 # else /* no HAVE_SYS_PARAM_H */
19034 # define getpagesize() 8192 /* punt totally */
19035 # endif /* no HAVE_SYS_PARAM_H */
19036 # endif /* no _SC_PAGESIZE */
19038 #endif /* no HAVE_GETPAGESIZE */
19043 char *data, *data2, *data3;
19047 pagesize = getpagesize ();
19049 /* First, make a file with some known garbage in it. */
19050 data = (char *) malloc (pagesize);
19053 for (i = 0; i < pagesize; ++i)
19054 *(data + i) = rand ();
19056 fd = creat ("conftest.mmap", 0600);
19059 if (write (fd, data, pagesize) != pagesize)
19063 /* Next, try to mmap the file at a fixed address which already has
19064 something else allocated at it. If we can, also make sure that
19065 we see the same garbage. */
19066 fd = open ("conftest.mmap", O_RDWR);
19069 data2 = (char *) malloc (2 * pagesize);
19072 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19076 for (i = 0; i < pagesize; ++i)
19077 if (*(data + i) != *(data2 + i))
19080 /* Finally, make sure that changes to the mapped area do not
19081 percolate back to the file as seen by read(). (This is a bug on
19082 some variants of i386 svr4.0.) */
19083 for (i = 0; i < pagesize; ++i)
19084 *(data2 + i) = *(data2 + i) + 1;
19085 data3 = (char *) malloc (pagesize);
19088 if (read (fd, data3, pagesize) != pagesize)
19090 for (i = 0; i < pagesize; ++i)
19091 if (*(data + i) != *(data3 + i))
19097 rm -f conftest$ac_exeext
19098 if { (ac_try="$ac_link"
19099 case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
19117 ac_cv_func_mmap_fixed_mapped=yes
19119 echo "$as_me: program exited with status $ac_status" >&5
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 ( exit $ac_status )
19124 ac_cv_func_mmap_fixed_mapped=no
19126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19131 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19132 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19133 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE_MMAP 1
19140 rm -f conftest.mmap
19142 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19143 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19144 if test "${ac_cv_func_mmap_file+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 ac_cpp='$CPP $CPPFLAGS'
19149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153 if test "$cross_compiling" = yes; then
19154 ac_cv_func_mmap_file=no
19156 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19164 #include <sys/types.h>
19165 #include <sys/mman.h>
19173 fd = creat ("foo",0777);
19174 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19176 return (fd != (int) MAP_FAILED);
19181 rm -f conftest$ac_exeext
19182 if { (ac_try="$ac_link"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_link") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_func_mmap_file=yes
19203 echo "$as_me: program exited with status $ac_status" >&5
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ( exit $ac_status )
19208 ac_cv_func_mmap_file=no
19210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19215 ac_cpp='$CPP $CPPFLAGS'
19216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19223 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19224 if test "$ac_cv_func_mmap_file" = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19227 #define HAVE_MMAP_FILE
19234 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19235 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19236 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 if test "$llvm_cv_os_type" = "Interix" ; then
19240 ac_cv_need_dev_zero_for_mmap=yes
19242 ac_cv_need_dev_zero_for_mmap=no
19246 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19247 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19248 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19250 cat >>confdefs.h <<\_ACEOF
19251 #define NEED_DEV_ZERO_FOR_MMAP 1
19256 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19258 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19259 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19261 if test "$ac_cv_func_mmap_file" = "no"
19263 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19264 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19268 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19269 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19277 volatile unsigned long val = 1;
19278 __sync_synchronize();
19279 __sync_val_compare_and_swap(&val, 1, 0);
19280 __sync_add_and_fetch(&val, 1);
19281 __sync_sub_and_fetch(&val, 1);
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest$ac_exeext'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 { echo "$as_me:$LINENO: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6; }
19323 cat >>confdefs.h <<\_ACEOF
19324 #define LLVM_MULTITHREADED 1
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 { echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6; }
19334 cat >>confdefs.h <<\_ACEOF
19335 #define LLVM_MULTITHREADED 0
19338 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19339 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19342 rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19347 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19348 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19349 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19350 if test "${llvm_cv_linux_mixed+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359 cat >conftest.$ac_ext <<_ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19366 error: Not x86-64 even if uname says so!
19377 rm -f conftest.$ac_objext
19378 if { (ac_try="$ac_compile"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_compile") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
19391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19392 { (case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_try") 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest.$ac_objext'
19402 { (case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 llvm_cv_linux_mixed=no
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 llvm_cv_linux_mixed=yes
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 ac_cpp='$CPP $CPPFLAGS'
19422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19429 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19431 if test "$llvm_cv_linux_mixed" = "yes"; then
19432 llvm_cv_target_arch="x86"
19438 for ac_func in __dso_handle
19440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 cat >conftest.$ac_ext <<_ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19454 #define $ac_func innocuous_$ac_func
19456 /* System header to define __stub macros and hopefully few prototypes,
19457 which can conflict with char $ac_func (); below.
19458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459 <limits.h> exists even on freestanding compilers. */
19462 # include <limits.h>
19464 # include <assert.h>
19469 /* Override any GCC internal prototype to avoid an error.
19470 Use char because int might match the return type of a GCC
19471 builtin and then its argument prototype would still apply. */
19476 /* The GNU C library defines this for functions which it implements
19477 to always fail with ENOSYS. Some functions are actually named
19478 something starting with __ and the normal name is an alias. */
19479 #if defined __stub_$ac_func || defined __stub___$ac_func
19486 return $ac_func ();
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 eval "$as_ac_var=yes"
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 eval "$as_ac_var=no"
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19536 ac_res=`eval echo '${'$as_ac_var'}'`
19537 { echo "$as_me:$LINENO: result: $ac_res" >&5
19538 echo "${ECHO_T}$ac_res" >&6; }
19539 if test `eval echo '${'$as_ac_var'}'` = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19548 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19549 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19550 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 llvm_cv_llvmgcc_sanity="no"
19554 if test -x "$LLVMGCC" ; then
19555 cp /dev/null conftest.c
19556 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19557 grep 'target datalayout =' > /dev/null 2>&1
19558 if test $? -eq 0 ; then
19559 llvm_cv_llvmgcc_sanity="yes"
19564 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19565 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19567 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19568 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19569 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19570 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19571 LLVMCC1=$llvmcc1path
19573 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19574 LLVMCC1PLUS=$llvmcc1pluspath
19576 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19577 LLVMGCCDIR=$llvmgccdir
19579 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19580 LLVMGCCLIBEXEC=$llvmgcclibexec
19582 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
19583 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19584 LLVMGCC_VERSION=$llvmgccversion
19586 LLVMGCC_MAJVERS=$llvmgccmajvers
19588 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19589 LLVMGCC_LANGS=$llvmgcclangs
19591 { echo "$as_me:$LINENO: result: ok" >&5
19592 echo "${ECHO_T}ok" >&6; }
19595 SHLIBEXT=$libltdl_cv_shlibext
19598 # Translate the various configuration directories and other basic
19599 # information into substitutions that will end up in Makefile.config.in
19600 # that these configured values can be used by the makefiles
19601 if test "${prefix}" = "NONE" ; then
19602 prefix="/usr/local"
19604 eval LLVM_PREFIX="${prefix}";
19605 eval LLVM_BINDIR="${prefix}/bin";
19606 eval LLVM_LIBDIR="${prefix}/lib";
19607 eval LLVM_DATADIR="${prefix}/share/llvm";
19608 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19609 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19610 eval LLVM_INCLUDEDIR="${prefix}/include";
19611 eval LLVM_INFODIR="${prefix}/info";
19612 eval LLVM_MANDIR="${prefix}/man";
19613 LLVM_CONFIGTIME=`date`
19625 # Place the various directores into the config.h file as #defines so that we
19626 # can know about the installation paths within LLVM.
19628 cat >>confdefs.h <<_ACEOF
19629 #define LLVM_PREFIX "$LLVM_PREFIX"
19633 cat >>confdefs.h <<_ACEOF
19634 #define LLVM_BINDIR "$LLVM_BINDIR"
19638 cat >>confdefs.h <<_ACEOF
19639 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19643 cat >>confdefs.h <<_ACEOF
19644 #define LLVM_DATADIR "$LLVM_DATADIR"
19648 cat >>confdefs.h <<_ACEOF
19649 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19653 cat >>confdefs.h <<_ACEOF
19654 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19658 cat >>confdefs.h <<_ACEOF
19659 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19663 cat >>confdefs.h <<_ACEOF
19664 #define LLVM_INFODIR "$LLVM_INFODIR"
19668 cat >>confdefs.h <<_ACEOF
19669 #define LLVM_MANDIR "$LLVM_MANDIR"
19673 cat >>confdefs.h <<_ACEOF
19674 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19678 cat >>confdefs.h <<_ACEOF
19679 #define LLVM_HOSTTRIPLE "$host"
19683 # Determine which bindings to build.
19684 if test "$BINDINGS_TO_BUILD" = auto ; then
19685 BINDINGS_TO_BUILD=""
19686 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19687 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19690 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19693 # This isn't really configurey, but it avoids having to repeat the list in
19698 # Do any work necessary to ensure that bindings have what they need.
19699 binding_prereqs_failed=0
19700 for a_binding in $BINDINGS_TO_BUILD ; do
19701 case "$a_binding" in
19703 if test "x$OCAMLC" = x ; then
19704 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19705 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19706 binding_prereqs_failed=1
19708 if test "x$OCAMLDEP" = x ; then
19709 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19710 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19711 binding_prereqs_failed=1
19713 if test "x$OCAMLOPT" = x ; then
19714 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19715 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19717 if test "x$with_ocaml_libdir" != xauto ; then
19718 OCAML_LIBDIR=$with_ocaml_libdir
19721 ocaml_stdlib="`"$OCAMLC" -where`"
19722 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19724 # ocaml stdlib is beneath our prefix; use stdlib
19725 OCAML_LIBDIR=$ocaml_stdlib
19728 # ocaml stdlib is outside our prefix; use libdir/ocaml
19729 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19736 if test "$binding_prereqs_failed" = 1 ; then
19737 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19738 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19739 { (exit 1); exit 1; }; }
19742 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19743 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19744 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 ac_cpp='$CXXCPP $CPPFLAGS'
19749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19753 oldcxxflags="$CXXFLAGS"
19754 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19770 rm -f conftest.$ac_objext
19771 if { (ac_try="$ac_compile"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19779 grep -v '^ *+' conftest.er1 >conftest.err
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } &&
19784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19785 { (case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_try") 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 llvm_cv_cxx_visibility_inlines_hidden=yes
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 llvm_cv_cxx_visibility_inlines_hidden=no
19812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813 CXXFLAGS="$oldcxxflags"
19815 ac_cpp='$CPP $CPPFLAGS'
19816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19823 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19824 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19825 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19828 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19833 if test "$llvm_cv_link_use_r" = "yes" ; then
19840 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19841 RDYNAMIC="-Wl,-export-dynamic"
19848 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19850 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19852 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19854 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19856 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19858 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19861 ac_config_files="$ac_config_files Makefile.config"
19864 ac_config_files="$ac_config_files llvm.spec"
19867 ac_config_files="$ac_config_files docs/doxygen.cfg"
19870 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19873 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19876 ac_config_commands="$ac_config_commands setup"
19878 ac_config_commands="$ac_config_commands Makefile"
19881 ac_config_commands="$ac_config_commands Makefile.common"
19884 ac_config_commands="$ac_config_commands examples/Makefile"
19887 ac_config_commands="$ac_config_commands lib/Makefile"
19890 ac_config_commands="$ac_config_commands runtime/Makefile"
19893 ac_config_commands="$ac_config_commands test/Makefile"
19896 ac_config_commands="$ac_config_commands test/Makefile.tests"
19899 ac_config_commands="$ac_config_commands unittests/Makefile"
19902 ac_config_commands="$ac_config_commands tools/Makefile"
19905 ac_config_commands="$ac_config_commands utils/Makefile"
19908 ac_config_commands="$ac_config_commands projects/Makefile"
19911 ac_config_commands="$ac_config_commands bindings/Makefile"
19914 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19918 cat >confcache <<\_ACEOF
19919 # This file is a shell script that caches the results of configure
19920 # tests run on this system so they can be shared between configure
19921 # scripts and configure runs, see configure's option --config-cache.
19922 # It is not useful on other systems. If it contains results you don't
19923 # want to keep, you may remove or edit it.
19925 # config.status only pays attention to the cache file if you give it
19926 # the --recheck option to rerun configure.
19928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19930 # following values.
19934 # The following way of writing the cache mishandles newlines in values,
19935 # but we know of no workaround that is simple, portable, and efficient.
19936 # So, we kill variables containing newlines.
19937 # Ultrix sh set writes to stderr and can't be redirected directly,
19938 # and sets the high bit in the cache file unless we assign to the vars.
19940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19941 eval ac_val=\$$ac_var
19945 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19946 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19949 _ | IFS | as_nl) ;; #(
19950 *) $as_unset $ac_var ;;
19956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19957 *${as_nl}ac_space=\ *)
19958 # `set' does not quote correctly, so add quotes (double-quote
19959 # substitution turns \\\\ into \\, and sed turns \\ into \).
19962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19965 # `set' quotes correctly as required by POSIX, so do not add quotes.
19966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19980 if test -w "$cache_file"; then
19981 test "x$cache_file" != "x/dev/null" &&
19982 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19983 echo "$as_me: updating cache $cache_file" >&6;}
19984 cat confcache >$cache_file
19986 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19987 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19993 # Let make expand exec_prefix.
19994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19996 DEFS=-DHAVE_CONFIG_H
20000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20001 # 1. Remove the extension, and $U if already installed.
20002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20003 ac_i=`echo "$ac_i" | sed "$ac_script"`
20004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20005 # will be set to the directory where LIBOBJS objects are built.
20006 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20007 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20009 LIBOBJS=$ac_libobjs
20011 LTLIBOBJS=$ac_ltlibobjs
20014 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20015 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20016 Usually this means the macro was only invoked conditionally." >&5
20017 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20018 Usually this means the macro was only invoked conditionally." >&2;}
20019 { (exit 1); exit 1; }; }
20021 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20022 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20023 Usually this means the macro was only invoked conditionally." >&5
20024 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20025 Usually this means the macro was only invoked conditionally." >&2;}
20026 { (exit 1); exit 1; }; }
20029 : ${CONFIG_STATUS=./config.status}
20030 ac_clean_files_save=$ac_clean_files
20031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20032 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20033 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20034 cat >$CONFIG_STATUS <<_ACEOF
20036 # Generated by $as_me.
20037 # Run this file to recreate the current configuration.
20038 # Compiler output produced by configure, useful for debugging
20039 # configure, is in config.log if it exists.
20042 ac_cs_recheck=false
20044 SHELL=\${CONFIG_SHELL-$SHELL}
20047 cat >>$CONFIG_STATUS <<\_ACEOF
20048 ## --------------------- ##
20049 ## M4sh Initialization. ##
20050 ## --------------------- ##
20052 # Be Bourne compatible
20053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20056 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20057 # is contrary to our usage. Disable this feature.
20058 alias -g '${1+"$@"}'='"$@"'
20059 setopt NO_GLOB_SUBST
20061 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20063 BIN_SH=xpg4; export BIN_SH # for Tru64
20064 DUALCASE=1; export DUALCASE # for MKS sh
20068 # Avoid depending upon Character Ranges.
20069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20072 as_cr_digits='0123456789'
20073 as_cr_alnum=$as_cr_Letters$as_cr_digits
20075 # The user is always right.
20076 if test "${PATH_SEPARATOR+set}" != set; then
20077 echo "#! /bin/sh" >conf$$.sh
20078 echo "exit 0" >>conf$$.sh
20080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20088 # Support unset when possible.
20089 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20097 # We need space, tab and new line, in precisely that order. Quoting is
20098 # there to prevent editors from complaining about space-tab.
20099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20100 # splitting by setting IFS to empty value.)
20105 # Find who we are. Look in the path if we contain no directory separator.
20107 *[\\/]* ) as_myself=$0 ;;
20108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $PATH
20112 test -z "$as_dir" && as_dir=.
20113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20119 # We did not find ourselves, most probably we were run as `sh COMMAND'
20120 # in which case we are not to be found in the path.
20121 if test "x$as_myself" = x; then
20124 if test ! -f "$as_myself"; then
20125 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20126 { (exit 1); exit 1; }
20129 # Work around bugs in pre-3.0 UWIN ksh.
20130 for as_var in ENV MAIL MAILPATH
20131 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20139 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20140 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20141 LC_TELEPHONE LC_TIME
20143 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20144 eval $as_var=C; export $as_var
20146 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20150 # Required to use basename.
20151 if expr a : '\(a\)' >/dev/null 2>&1 &&
20152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20158 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20159 as_basename=basename
20165 # Name of the executable.
20166 as_me=`$as_basename -- "$0" ||
20167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20168 X"$0" : 'X\(//\)$' \| \
20169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20171 sed '/^.*\/\([^/][^/]*\)\/*$/{
20190 as_lineno_1=$LINENO
20191 as_lineno_2=$LINENO
20192 test "x$as_lineno_1" != "x$as_lineno_2" &&
20193 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20195 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20196 # uniformly replaced by the line number. The first 'sed' inserts a
20197 # line-number line after each line using $LINENO; the second 'sed'
20198 # does the real work. The second script uses 'N' to pair each
20199 # line-number line with the line containing $LINENO, and appends
20200 # trailing '-' during substitution so that $LINENO is not a special
20201 # case at line end.
20202 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20203 # scripts with optimization help from Paolo Bonzini. Blame Lee
20204 # E. McMahon (1931-1989) for sed's syntax. :-)
20216 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20219 ' >$as_me.lineno &&
20220 chmod +x "$as_me.lineno" ||
20221 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20222 { (exit 1); exit 1; }; }
20224 # Don't try to exec as it changes $[0], causing all sort of problems
20225 # (the dirname of $[0] is not the place where we might find the
20226 # original and so on. Autoconf is especially sensitive to this).
20227 . "./$as_me.lineno"
20228 # Exit status is that of the last command.
20233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20239 ECHO_C= ECHO_N= ECHO_T=
20240 case `echo -n x` in
20242 case `echo 'x\c'` in
20243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20250 if expr a : '\(a\)' >/dev/null 2>&1 &&
20251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20257 rm -f conf$$ conf$$.exe conf$$.file
20258 if test -d conf$$.dir; then
20259 rm -f conf$$.dir/conf$$.file
20265 if ln -s conf$$.file conf$$ 2>/dev/null; then
20267 # ... but there are two gotchas:
20268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20270 # In both cases, we have to default to `cp -p'.
20271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20273 elif ln conf$$.file conf$$ 2>/dev/null; then
20278 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20279 rmdir conf$$.dir 2>/dev/null
20281 if mkdir -p . 2>/dev/null; then
20284 test -d ./-p && rmdir ./-p
20288 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20289 # systems may use methods other than mode bits to determine executability.
20290 cat >conf$$.file <<_ASEOF
20294 chmod +x conf$$.file
20295 if test -x conf$$.file >/dev/null 2>&1; then
20296 as_executable_p="test -x"
20302 # Sed expression to map a string onto a valid CPP name.
20303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20305 # Sed expression to map a string onto a valid variable name.
20306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20311 # Save the log message, to keep $[0] and so on meaningful, and to
20312 # report actual input values of CONFIG_FILES etc. instead of their
20313 # values after options handling.
20315 This file was extended by llvm $as_me 2.7svn, which was
20316 generated by GNU Autoconf 2.60. Invocation command line was
20318 CONFIG_FILES = $CONFIG_FILES
20319 CONFIG_HEADERS = $CONFIG_HEADERS
20320 CONFIG_LINKS = $CONFIG_LINKS
20321 CONFIG_COMMANDS = $CONFIG_COMMANDS
20324 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20329 cat >>$CONFIG_STATUS <<_ACEOF
20330 # Files that config.status was made for.
20331 config_files="$ac_config_files"
20332 config_headers="$ac_config_headers"
20333 config_commands="$ac_config_commands"
20337 cat >>$CONFIG_STATUS <<\_ACEOF
20339 \`$as_me' instantiates files from templates according to the
20340 current configuration.
20342 Usage: $0 [OPTIONS] [FILE]...
20344 -h, --help print this help, then exit
20345 -V, --version print version number, then exit
20346 -q, --quiet do not print progress messages
20347 -d, --debug don't remove temporary files
20348 --recheck update $as_me by reconfiguring in the same conditions
20349 --file=FILE[:TEMPLATE]
20350 instantiate the configuration file FILE
20351 --header=FILE[:TEMPLATE]
20352 instantiate the configuration header FILE
20354 Configuration files:
20357 Configuration headers:
20360 Configuration commands:
20363 Report bugs to <bug-autoconf@gnu.org>."
20366 cat >>$CONFIG_STATUS <<_ACEOF
20368 llvm config.status 2.7svn
20369 configured by $0, generated by GNU Autoconf 2.60,
20370 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20372 Copyright (C) 2006 Free Software Foundation, Inc.
20373 This config.status script is free software; the Free Software Foundation
20374 gives unlimited permission to copy, distribute and modify it."
20381 cat >>$CONFIG_STATUS <<\_ACEOF
20382 # If no file are specified by the user, then we need to provide default
20383 # value. By we need to know if files were specified by the user.
20389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20390 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20401 # Handling of the options.
20402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20405 echo "$ac_cs_version"; exit ;;
20406 --debug | --debu | --deb | --de | --d | -d )
20408 --file | --fil | --fi | --f )
20410 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20411 ac_need_defaults=false;;
20412 --header | --heade | --head | --hea )
20414 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20415 ac_need_defaults=false;;
20417 # Conflict between --help and --header
20418 { echo "$as_me: error: ambiguous option: $1
20419 Try \`$0 --help' for more information." >&2
20420 { (exit 1); exit 1; }; };;
20421 --help | --hel | -h )
20422 echo "$ac_cs_usage"; exit ;;
20423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20427 # This is an error.
20428 -*) { echo "$as_me: error: unrecognized option: $1
20429 Try \`$0 --help' for more information." >&2
20430 { (exit 1); exit 1; }; } ;;
20432 *) ac_config_targets="$ac_config_targets $1"
20433 ac_need_defaults=false ;;
20439 ac_configure_extra_args=
20441 if $ac_cs_silent; then
20443 ac_configure_extra_args="$ac_configure_extra_args --silent"
20447 cat >>$CONFIG_STATUS <<_ACEOF
20448 if \$ac_cs_recheck; then
20449 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20450 CONFIG_SHELL=$SHELL
20451 export CONFIG_SHELL
20452 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20456 cat >>$CONFIG_STATUS <<\_ACEOF
20460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20461 ## Running $as_me. ##
20467 cat >>$CONFIG_STATUS <<_ACEOF
20471 llvm_src="${srcdir}"
20475 cat >>$CONFIG_STATUS <<\_ACEOF
20477 # Handling of arguments.
20478 for ac_config_target in $ac_config_targets
20480 case $ac_config_target in
20481 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20482 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20483 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20484 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20485 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20486 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20487 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20488 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20489 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20490 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20491 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20492 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20493 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20494 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20495 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20496 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20497 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20498 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20499 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20500 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20501 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20502 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20503 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20504 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20505 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20507 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20508 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20509 { (exit 1); exit 1; }; };;
20514 # If the user did not use the arguments to specify the items to instantiate,
20515 # then the envvar interface is used. Set only those that are not.
20516 # We use the long form for the default assignment because of an extremely
20517 # bizarre bug on SunOS 4.1.3.
20518 if $ac_need_defaults; then
20519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20524 # Have a temporary directory for convenience. Make it in the build tree
20525 # simply because there is no reason against having it here, and in addition,
20526 # creating and moving files from /tmp can sometimes cause problems.
20527 # Hook for its removal unless debugging.
20528 # Note that there is a small window in which the directory will not be cleaned:
20529 # after its creation but before its name has been assigned to `$tmp'.
20533 trap 'exit_status=$?
20534 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20536 trap '{ (exit 1); exit 1; }' 1 2 13 15
20538 # Create a (secure) tmp directory for tmp files.
20541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20542 test -n "$tmp" && test -d "$tmp"
20545 tmp=./conf$$-$RANDOM
20546 (umask 077 && mkdir "$tmp")
20549 echo "$me: cannot create a temporary directory in ." >&2
20550 { (exit 1); exit 1; }
20554 # Set up the sed scripts for CONFIG_FILES section.
20557 # No need to generate the scripts if there are no CONFIG_FILES.
20558 # This happens for instance when ./config.status config.h
20559 if test -n "$CONFIG_FILES"; then
20566 for ac_last_try in false false false false false :; do
20567 cat >conf$$subs.sed <<_ACEOF
20568 SHELL!$SHELL$ac_delim
20569 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20570 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20571 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20572 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20573 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20574 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20575 exec_prefix!$exec_prefix$ac_delim
20576 prefix!$prefix$ac_delim
20577 program_transform_name!$program_transform_name$ac_delim
20578 bindir!$bindir$ac_delim
20579 sbindir!$sbindir$ac_delim
20580 libexecdir!$libexecdir$ac_delim
20581 datarootdir!$datarootdir$ac_delim
20582 datadir!$datadir$ac_delim
20583 sysconfdir!$sysconfdir$ac_delim
20584 sharedstatedir!$sharedstatedir$ac_delim
20585 localstatedir!$localstatedir$ac_delim
20586 includedir!$includedir$ac_delim
20587 oldincludedir!$oldincludedir$ac_delim
20588 docdir!$docdir$ac_delim
20589 infodir!$infodir$ac_delim
20590 htmldir!$htmldir$ac_delim
20591 dvidir!$dvidir$ac_delim
20592 pdfdir!$pdfdir$ac_delim
20593 psdir!$psdir$ac_delim
20594 libdir!$libdir$ac_delim
20595 localedir!$localedir$ac_delim
20596 mandir!$mandir$ac_delim
20597 DEFS!$DEFS$ac_delim
20598 ECHO_C!$ECHO_C$ac_delim
20599 ECHO_N!$ECHO_N$ac_delim
20600 ECHO_T!$ECHO_T$ac_delim
20601 LIBS!$LIBS$ac_delim
20602 build_alias!$build_alias$ac_delim
20603 host_alias!$host_alias$ac_delim
20604 target_alias!$target_alias$ac_delim
20605 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20606 subdirs!$subdirs$ac_delim
20607 build!$build$ac_delim
20608 build_cpu!$build_cpu$ac_delim
20609 build_vendor!$build_vendor$ac_delim
20610 build_os!$build_os$ac_delim
20611 host!$host$ac_delim
20612 host_cpu!$host_cpu$ac_delim
20613 host_vendor!$host_vendor$ac_delim
20614 host_os!$host_os$ac_delim
20615 target!$target$ac_delim
20616 target_cpu!$target_cpu$ac_delim
20617 target_vendor!$target_vendor$ac_delim
20618 target_os!$target_os$ac_delim
20620 HOST_OS!$HOST_OS$ac_delim
20621 TARGET_OS!$TARGET_OS$ac_delim
20622 LINKALL!$LINKALL$ac_delim
20623 NOLINKALL!$NOLINKALL$ac_delim
20624 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20625 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20626 ARCH!$ARCH$ac_delim
20627 ENDIAN!$ENDIAN$ac_delim
20629 CFLAGS!$CFLAGS$ac_delim
20630 LDFLAGS!$LDFLAGS$ac_delim
20631 CPPFLAGS!$CPPFLAGS$ac_delim
20632 ac_ct_CC!$ac_ct_CC$ac_delim
20633 EXEEXT!$EXEEXT$ac_delim
20634 OBJEXT!$OBJEXT$ac_delim
20636 GREP!$GREP$ac_delim
20637 EGREP!$EGREP$ac_delim
20638 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20639 BUILD_CC!$BUILD_CC$ac_delim
20640 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20641 BUILD_CXX!$BUILD_CXX$ac_delim
20642 CVSBUILD!$CVSBUILD$ac_delim
20643 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20644 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20645 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20646 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20647 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20648 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20649 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20651 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20652 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20653 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20654 ENABLE_PIC!$ENABLE_PIC$ac_delim
20655 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20656 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20657 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20658 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20659 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20660 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20661 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20662 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20663 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20664 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20667 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20669 elif $ac_last_try; then
20670 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20671 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20672 { (exit 1); exit 1; }; }
20674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20678 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20679 if test -n "$ac_eof"; then
20680 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20681 ac_eof=`expr $ac_eof + 1`
20684 cat >>$CONFIG_STATUS <<_ACEOF
20685 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20689 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20690 s/^/s,@/; s/!/@,|#_!!_#|/
20693 s/'"$ac_delim"'$/,g/; t
20695 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20696 ' >>$CONFIG_STATUS <conf$$subs.sed
20697 rm -f conf$$subs.sed
20698 cat >>$CONFIG_STATUS <<_ACEOF
20704 for ac_last_try in false false false false false :; do
20705 cat >conf$$subs.sed <<_ACEOF
20706 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20708 CXXFLAGS!$CXXFLAGS$ac_delim
20709 ac_ct_CXX!$ac_ct_CXX$ac_delim
20711 ifGNUmake!$ifGNUmake$ac_delim
20712 LN_S!$LN_S$ac_delim
20715 DATE!$DATE$ac_delim
20716 FIND!$FIND$ac_delim
20717 MKDIR!$MKDIR$ac_delim
20719 RANLIB!$RANLIB$ac_delim
20724 BINPWD!$BINPWD$ac_delim
20725 GRAPHVIZ!$GRAPHVIZ$ac_delim
20728 NEATO!$NEATO$ac_delim
20729 TWOPI!$TWOPI$ac_delim
20730 CIRCO!$CIRCO$ac_delim
20732 DOTTY!$DOTTY$ac_delim
20733 PERL!$PERL$ac_delim
20734 HAVE_PERL!$HAVE_PERL$ac_delim
20735 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20736 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20737 INSTALL_DATA!$INSTALL_DATA$ac_delim
20738 BZIP2!$BZIP2$ac_delim
20739 DOXYGEN!$DOXYGEN$ac_delim
20740 GROFF!$GROFF$ac_delim
20741 GZIP!$GZIP$ac_delim
20742 POD2HTML!$POD2HTML$ac_delim
20743 POD2MAN!$POD2MAN$ac_delim
20744 RUNTEST!$RUNTEST$ac_delim
20745 TCLSH!$TCLSH$ac_delim
20747 OCAMLC!$OCAMLC$ac_delim
20748 OCAMLOPT!$OCAMLOPT$ac_delim
20749 OCAMLDEP!$OCAMLDEP$ac_delim
20750 OCAMLDOC!$OCAMLDOC$ac_delim
20752 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20753 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20754 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20755 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20756 LIBADD_DL!$LIBADD_DL$ac_delim
20757 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20758 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20759 LLVMGCC!$LLVMGCC$ac_delim
20760 LLVMGXX!$LLVMGXX$ac_delim
20761 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20762 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20763 USE_UDIS86!$USE_UDIS86$ac_delim
20764 USE_OPROFILE!$USE_OPROFILE$ac_delim
20765 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20766 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20767 MMAP_FILE!$MMAP_FILE$ac_delim
20768 LLVMCC1!$LLVMCC1$ac_delim
20769 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20770 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20771 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20772 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20773 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
20774 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20775 SHLIBEXT!$SHLIBEXT$ac_delim
20776 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20777 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20778 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20779 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20780 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20781 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20782 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20783 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20784 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20785 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20786 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20787 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20788 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20789 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20790 RPATH!$RPATH$ac_delim
20791 RDYNAMIC!$RDYNAMIC$ac_delim
20792 LIBOBJS!$LIBOBJS$ac_delim
20793 LTLIBOBJS!$LTLIBOBJS$ac_delim
20796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
20798 elif $ac_last_try; then
20799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20801 { (exit 1); exit 1; }; }
20803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20808 if test -n "$ac_eof"; then
20809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20810 ac_eof=`expr $ac_eof + 1`
20813 cat >>$CONFIG_STATUS <<_ACEOF
20814 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20819 s/^/s,@/; s/!/@,|#_!!_#|/
20822 s/'"$ac_delim"'$/,g/; t
20824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20825 ' >>$CONFIG_STATUS <conf$$subs.sed
20826 rm -f conf$$subs.sed
20827 cat >>$CONFIG_STATUS <<_ACEOF
20834 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20835 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20836 # trailing colons and then remove the whole line if VPATH becomes empty
20837 # (actually we leave an empty line to preserve line numbers).
20838 if test "x$srcdir" = x.; then
20839 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20840 s/:*\$(srcdir):*/:/
20841 s/:*\${srcdir}:*/:/
20843 s/^\([^=]*=[ ]*\):*/\1/
20849 cat >>$CONFIG_STATUS <<\_ACEOF
20850 fi # test -n "$CONFIG_FILES"
20853 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20856 :[FHLC]) ac_mode=$ac_tag; continue;;
20858 case $ac_mode$ac_tag in
20860 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20861 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20862 { (exit 1); exit 1; }; };;
20863 :[FH]-) ac_tag=-:-;;
20864 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20881 -) ac_f="$tmp/stdin";;
20882 *) # Look for the file first in the build tree, then in the source tree
20883 # (if the path is not absolute). The absolute path cannot be DOS-style,
20884 # because $ac_f cannot contain `:'.
20888 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20890 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20891 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20892 { (exit 1); exit 1; }; };;
20894 ac_file_inputs="$ac_file_inputs $ac_f"
20897 # Let's still pretend it is `configure' which instantiates (i.e., don't
20898 # use $as_me), people would be surprised to read:
20899 # /* config.h. Generated by config.status. */
20900 configure_input="Generated from "`IFS=:
20901 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20902 if test x"$ac_file" != x-; then
20903 configure_input="$ac_file. $configure_input"
20904 { echo "$as_me:$LINENO: creating $ac_file" >&5
20905 echo "$as_me: creating $ac_file" >&6;}
20909 *:-:* | *:-) cat >"$tmp/stdin";;
20914 ac_dir=`$as_dirname -- "$ac_file" ||
20915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20916 X"$ac_file" : 'X\(//\)[^/]' \| \
20917 X"$ac_file" : 'X\(//\)$' \| \
20918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20924 /^X\(\/\/\)[^/].*/{
20939 -*) as_dir=./$as_dir;;
20941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20945 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20946 *) as_qdir=$as_dir;;
20948 as_dirs="'$as_qdir' $as_dirs"
20949 as_dir=`$as_dirname -- "$as_dir" ||
20950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20951 X"$as_dir" : 'X\(//\)[^/]' \| \
20952 X"$as_dir" : 'X\(//\)$' \| \
20953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20959 /^X\(\/\/\)[^/].*/{
20972 test -d "$as_dir" && break
20974 test -z "$as_dirs" || eval "mkdir $as_dirs"
20975 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20976 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20977 { (exit 1); exit 1; }; }; }
20981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20984 # A ".." for each directory in $ac_dir_suffix.
20985 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20986 case $ac_top_builddir_sub in
20987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20991 ac_abs_top_builddir=$ac_pwd
20992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20993 # for backward compatibility:
20994 ac_top_builddir=$ac_top_build_prefix
20997 .) # We are building in place.
20999 ac_top_srcdir=$ac_top_builddir_sub
21000 ac_abs_top_srcdir=$ac_pwd ;;
21001 [\\/]* | ?:[\\/]* ) # Absolute name.
21002 ac_srcdir=$srcdir$ac_dir_suffix;
21003 ac_top_srcdir=$srcdir
21004 ac_abs_top_srcdir=$srcdir ;;
21005 *) # Relative name.
21006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21007 ac_top_srcdir=$ac_top_build_prefix$srcdir
21008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21025 cat >>$CONFIG_STATUS <<\_ACEOF
21026 # If the template does not know about datarootdir, expand it.
21027 # FIXME: This hack should be removed a few years after 2.60.
21028 ac_datarootdir_hack=; ac_datarootdir_seen=
21030 case `sed -n '/datarootdir/ {
21039 ' $ac_file_inputs` in
21040 *datarootdir*) ac_datarootdir_seen=yes;;
21041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21042 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21043 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21045 cat >>$CONFIG_STATUS <<_ACEOF
21046 ac_datarootdir_hack='
21047 s&@datadir@&$datadir&g
21048 s&@docdir@&$docdir&g
21049 s&@infodir@&$infodir&g
21050 s&@localedir@&$localedir&g
21051 s&@mandir@&$mandir&g
21052 s&\\\${datarootdir}&$datarootdir&g' ;;
21056 # Neutralize VPATH when `$srcdir' = `.'.
21057 # Shell code in configure.ac might set extrasub.
21058 # FIXME: do we really want to maintain this feature?
21059 cat >>$CONFIG_STATUS <<_ACEOF
21063 cat >>$CONFIG_STATUS <<\_ACEOF
21065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21066 s&@configure_input@&$configure_input&;t t
21067 s&@top_builddir@&$ac_top_builddir_sub&;t t
21068 s&@srcdir@&$ac_srcdir&;t t
21069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21070 s&@top_srcdir@&$ac_top_srcdir&;t t
21071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21072 s&@builddir@&$ac_builddir&;t t
21073 s&@abs_builddir@&$ac_abs_builddir&;t t
21074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21075 s&@INSTALL@&$ac_INSTALL&;t t
21076 $ac_datarootdir_hack
21077 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21080 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21082 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21083 which seems to be undefined. Please make sure it is defined." >&5
21084 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21085 which seems to be undefined. Please make sure it is defined." >&2;}
21089 -) cat "$tmp/out"; rm -f "$tmp/out";;
21090 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21099 # Transform confdefs.h into a sed script `conftest.defines', that
21100 # substitutes the proper values into config.h.in to produce config.h.
21101 rm -f conftest.defines conftest.tail
21102 # First, append a space to every undef/define line, to ease matching.
21103 echo 's/$/ /' >conftest.defines
21104 # Then, protect against being on the right side of a sed subst, or in
21105 # an unquoted here document, in config.status. If some macros were
21106 # called several times there might be several #defines for the same
21107 # symbol, which is useless. But do not sort them, since the last
21108 # AC_DEFINE must be honored.
21109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21110 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21111 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21112 # PARAMS is the parameter list in the macro definition--in most cases, it's
21113 # just an empty string.
21114 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21115 ac_dB='\\)[ (].*,\\1define\\2'
21123 s/^[ ]*#[ ]*define[ ][ ]*//
21128 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21129 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21130 ' >>conftest.defines
21132 # Remove the space that was appended to ease matching.
21133 # Then replace #undef with comments. This is necessary, for
21134 # example, in the case of _POSIX_SOURCE, which is predefined and required
21135 # on some systems where configure will not decide to define it.
21136 # (The regexp can be short, since the line contains either #define or #undef.)
21138 s,^[ #]*u.*,/* & */,' >>conftest.defines
21140 # Break up conftest.defines:
21141 ac_max_sed_lines=50
21143 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21144 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21145 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21147 ac_in='$ac_file_inputs'
21148 ac_out='"$tmp/out1"'
21149 ac_nxt='"$tmp/out2"'
21153 # Write a here document:
21154 cat >>$CONFIG_STATUS <<_ACEOF
21155 # First, check the format of the line:
21156 cat >"\$tmp/defines.sed" <<\\CEOF
21157 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21158 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21162 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21164 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21165 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21166 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21167 grep . conftest.tail >/dev/null || break
21168 rm -f conftest.defines
21169 mv conftest.tail conftest.defines
21171 rm -f conftest.defines conftest.tail
21173 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21174 cat >>$CONFIG_STATUS <<\_ACEOF
21175 if test x"$ac_file" != x-; then
21176 echo "/* $configure_input */" >"$tmp/config.h"
21177 cat "$ac_result" >>"$tmp/config.h"
21178 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21180 echo "$as_me: $ac_file is unchanged" >&6;}
21183 mv "$tmp/config.h" $ac_file
21186 echo "/* $configure_input */"
21192 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21193 echo "$as_me: executing $ac_file commands" >&6;}
21198 case $ac_file$ac_mode in
21199 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21201 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21203 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21205 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21207 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21209 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21211 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21213 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21215 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21216 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21217 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21218 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21219 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21220 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21221 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21222 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21223 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21224 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21230 { (exit 0); exit 0; }
21232 chmod +x $CONFIG_STATUS
21233 ac_clean_files=$ac_clean_files_save
21236 # configure is writing to config.log, and then calls config.status.
21237 # config.status does its own redirection, appending to config.log.
21238 # Unfortunately, on DOS this fails, as config.log is still kept open
21239 # by configure, so config.status won't be able to write to it; its
21240 # output is simply discarded. So we exec the FD to /dev/null,
21241 # effectively closing config.log, so it can be properly (re)opened and
21242 # appended to by config.status. When coming back to configure, we
21243 # need to make the FD available again.
21244 if test "$no_create" != yes; then
21246 ac_config_status_args=
21247 test "$silent" = yes &&
21248 ac_config_status_args="$ac_config_status_args --quiet"
21250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21253 # would make configure fail if this is the last instruction.
21254 $ac_cs_success || { (exit 1); exit 1; }
21258 # CONFIG_SUBDIRS section.
21260 if test "$no_recursion" != yes; then
21262 # Remove --cache-file and --srcdir arguments so they do not pile up.
21263 ac_sub_configure_args=
21265 eval "set x $ac_configure_args"
21269 if test -n "$ac_prev"; then
21274 -cache-file | --cache-file | --cache-fil | --cache-fi \
21275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21276 ac_prev=cache_file ;;
21277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21281 --config-cache | -C)
21283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21293 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21295 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21299 # Always prepend --prefix to ensure using the same prefix
21300 # in subdir configurations.
21301 ac_arg="--prefix=$prefix"
21303 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21305 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21308 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21310 # Do not complain, so a configure script can configure whichever
21311 # parts of a large source tree are present.
21312 test -d "$srcdir/$ac_dir" || continue
21314 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21315 echo "$as_me:$LINENO: $ac_msg" >&5
21319 -*) as_dir=./$as_dir;;
21321 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21325 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21326 *) as_qdir=$as_dir;;
21328 as_dirs="'$as_qdir' $as_dirs"
21329 as_dir=`$as_dirname -- "$as_dir" ||
21330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21331 X"$as_dir" : 'X\(//\)[^/]' \| \
21332 X"$as_dir" : 'X\(//\)$' \| \
21333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21339 /^X\(\/\/\)[^/].*/{
21352 test -d "$as_dir" && break
21354 test -z "$as_dirs" || eval "mkdir $as_dirs"
21355 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21356 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21357 { (exit 1); exit 1; }; }; }
21361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21364 # A ".." for each directory in $ac_dir_suffix.
21365 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21366 case $ac_top_builddir_sub in
21367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21371 ac_abs_top_builddir=$ac_pwd
21372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21373 # for backward compatibility:
21374 ac_top_builddir=$ac_top_build_prefix
21377 .) # We are building in place.
21379 ac_top_srcdir=$ac_top_builddir_sub
21380 ac_abs_top_srcdir=$ac_pwd ;;
21381 [\\/]* | ?:[\\/]* ) # Absolute name.
21382 ac_srcdir=$srcdir$ac_dir_suffix;
21383 ac_top_srcdir=$srcdir
21384 ac_abs_top_srcdir=$srcdir ;;
21385 *) # Relative name.
21386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21387 ac_top_srcdir=$ac_top_build_prefix$srcdir
21388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21395 # Check for guested configure; otherwise get Cygnus style configure.
21396 if test -f "$ac_srcdir/configure.gnu"; then
21397 ac_sub_configure=$ac_srcdir/configure.gnu
21398 elif test -f "$ac_srcdir/configure"; then
21399 ac_sub_configure=$ac_srcdir/configure
21400 elif test -f "$ac_srcdir/configure.in"; then
21401 # This should be Cygnus configure.
21402 ac_sub_configure=$ac_aux_dir/configure
21404 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21405 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21409 # The recursion is here.
21410 if test -n "$ac_sub_configure"; then
21411 # Make the cache file name correct relative to the subdirectory.
21412 case $cache_file in
21413 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21414 *) # Relative name.
21415 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21418 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21419 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21420 # The eval makes quoting arguments work.
21421 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21422 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21423 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21424 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21425 { (exit 1); exit 1; }; }