2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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-2011 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='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='projects/llvm-gcc
806 projects/llvm-poolalloc
809 projects/llvm-stacker
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1395 --enable-expensive-checks
1396 Compile with expensive debug checks enabled (default
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
1402 --enable-jit Enable Just In Time Compiling (default is YES)
1403 --enable-docs Build documents (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pthreads Use pthreads if available (default is YES)
1407 --enable-pic Build LLVM with Position Independent Code (default
1409 --enable-shared Build a shared library and link tools against it
1411 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1412 Win32 DLL (default is YES)
1413 --enable-timestamps Enable embedding timestamp information in build
1415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-optimize-option Select the compiler options to use for optimized
1432 --with-extra-options Specify additional options to compile LLVM with
1433 --with-extra-ld-options Specify additional options to link LLVM with
1434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 --with-clang-resource-dir
1437 Relative directory from the Clang binary for
1439 --with-c-include-dirs Colon separated list of directories clang will
1441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
1447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
1449 --with-bug-report-url Specify the URL where bug reports should be
1450 submitted (default=http://llvm.org/bugs/)
1451 --with-tclinclude directory where tcl headers are
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <llvmbugs@cs.uiuc.edu>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 llvm configure 3.0svn
1532 generated by GNU Autoconf 2.60
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1539 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1547 It was created by llvm $as_me 3.0svn, which was
1548 generated by GNU Autoconf 2.60. Invocation command line was
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 echo "PATH: $as_dir"
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_must_keep_next=false
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 -* ) ac_must_keep_next=true ;;
1640 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log. We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1664 # The following way of writing the cache mishandles newlines in values,
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 _ | IFS | as_nl) ;; #(
1676 *) $as_unset $ac_var ;;
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1701 for ac_var in $ac_subst_vars
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1711 if test -n "$ac_subst_files"; then
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1718 for ac_var in $ac_subst_files
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1729 if test -s confdefs.h; then
1739 test "$ac_signal" != 0 &&
1740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 for ac_signal in 1 2 13 15; do
1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1755 # Predefined preprocessor variables.
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785 set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
1795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798 sed 's/^/| /' "$ac_site_file" >&5
1803 if test -r "$cache_file"; then
1804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1820 # Check that the precious variables saved in the cache have kept the same
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843 echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845 echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 *) ac_arg=$ac_var=$ac_new_val ;;
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 if $ac_cache_corrupted; then
1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1910 for ac_dir in autoconf "$srcdir"/autoconf; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941 if test ${srcdir} != "." ; then
1942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 for ac_prog in clang llvm-gcc gcc
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test -n "$CC"; then
1986 { echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6; }
1989 { echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6; }
1994 test -n "$CC" && break
1997 if test -z "$CC"; then
1999 for ac_prog in clang llvm-gcc gcc
2001 # Extract the first word of "$ac_prog", so it can be a program name with args.
2002 set dummy $ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_ac_ct_CC="$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029 if test -n "$ac_ct_CC"; then
2030 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031 echo "${ECHO_T}$ac_ct_CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$ac_ct_CC" && break
2041 if test "x$ac_ct_CC" = x; then
2044 case $cross_compiling:$ac_tool_warned in
2046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2047 whose name does not start with the host triplet. If you think this
2048 configuration is useful to you, please write to autoconf@gnu.org." >&5
2049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2050 whose name does not start with the host triplet. If you think this
2051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2052 ac_tool_warned=yes ;;
2059 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2065 # Provide some information about the compiler.
2066 echo "$as_me:$LINENO: checking for C compiler version" >&5
2067 ac_compiler=`set X $ac_compile; echo $2`
2068 { (ac_try="$ac_compiler --version >&5"
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2074 (eval "$ac_compiler --version >&5") 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078 { (ac_try="$ac_compiler -v >&5"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler -v >&5") 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (ac_try="$ac_compiler -V >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -V >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 ac_clean_files_save=$ac_clean_files
2115 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2119 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2121 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 # List of possible output files, starting from the most likely.
2124 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2125 # only as a last resort. b.out is created by i960 compilers.
2126 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2128 # The IRIX 6 linker writes into existing files which may not be
2129 # executable, retaining their permissions. Remove them first so a
2130 # subsequent execution test works.
2132 for ac_file in $ac_files
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2141 if { (ac_try="$ac_link_default"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_link_default") 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2154 # so that the user can short-circuit this test for compilers unknown to
2156 for ac_file in $ac_files
2158 test -f "$ac_file" || continue
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2163 # We found the default executable, but exeext='' is most
2167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 # We set ac_cv_exeext here because the later test for it is not
2172 # safe: cross compilers may not add the suffix if given an `-o'
2173 # argument, so we may need to know it at that point already.
2174 # Even if this section looks crufty: it has the advantage of
2181 test "$ac_cv_exeext" = no && ac_cv_exeext=
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&2;}
2191 { (exit 77); exit 77; }; }
2194 ac_exeext=$ac_cv_exeext
2195 { echo "$as_me:$LINENO: result: $ac_file" >&5
2196 echo "${ECHO_T}$ac_file" >&6; }
2198 # Check that the compiler produces executables we can run. If not, either
2199 # the compiler is broken, or we cross compile.
2200 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2201 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2202 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2203 # If not cross compiling, check that we can run a simple program.
2204 if test "$cross_compiling" != yes; then
2205 if { ac_try='./$ac_file'
2206 { (case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211 (eval "$ac_try") 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 if test "$cross_compiling" = maybe; then
2220 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221 If you meant to cross compile, use \`--host'.
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2233 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234 ac_clean_files=$ac_clean_files_save
2235 # Check that the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2239 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240 echo "${ECHO_T}$cross_compiling" >&6; }
2242 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2244 if { (ac_try="$ac_link"
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2250 (eval "$ac_link") 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2256 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 for ac_file in conftest.exe conftest conftest.*; do
2259 test -f "$ac_file" || continue
2261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest$ac_cv_exeext
2276 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2282 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.$ac_ext <<_ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (ac_try="$ac_compile"
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2309 (eval "$ac_compile") 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 for ac_file in conftest.o conftest.obj conftest.*; do
2314 test -f "$ac_file" || continue;
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&2;}
2329 { (exit 1); exit 1; }; }
2332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335 echo "${ECHO_T}$ac_cv_objext" >&6; }
2336 OBJEXT=$ac_cv_objext
2338 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (ac_try="$ac_compile"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compile") 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2376 { (case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_try") 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2409 GCC=`test $ac_compiler_gnu = yes && echo yes`
2410 ac_test_CFLAGS=${CFLAGS+set}
2411 ac_save_CFLAGS=$CFLAGS
2412 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 ac_save_c_werror_flag=$ac_c_werror_flag
2418 ac_c_werror_flag=yes
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 rm -f conftest.$ac_objext
2437 if { (ac_try="$ac_compile"
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compile") 2>conftest.er1
2445 grep -v '^ *+' conftest.er1 >conftest.err
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2451 { (case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_try") 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 ac_c_werror_flag=$ac_save_c_werror_flag
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ac_c_werror_flag=$ac_save_c_werror_flag
2598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2600 if test "$ac_test_CFLAGS" = set; then
2601 CFLAGS=$ac_save_CFLAGS
2602 elif test $ac_cv_prog_cc_g = yes; then
2603 if test "$GCC" = yes; then
2609 if test "$GCC" = yes; then
2615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_cc_c89+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 ac_cv_prog_cc_c89=no
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 #include <sys/types.h>
2631 #include <sys/stat.h>
2632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2633 struct buf { int x; };
2634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2635 static char *e (p, i)
2641 static char *f (char * (*g) (char **, int), char **p, ...)
2646 s = g (p, va_arg (v,int));
2651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2652 function prototypes and stuff, but not '\xHH' hex character constants.
2653 These don't provoke an error unfortunately, instead are silently treated
2654 as 'x'. The following induces an error, until -std is added to get
2655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2656 array size at least. It's necessary to write '\x00'==0 to get something
2657 that's true only with -std. */
2658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2661 inside strings and character constants. */
2663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665 int test (int i, double x);
2666 struct s1 {int (*f) (int a);};
2667 struct s2 {int (*f) (double a);};
2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682 CC="$ac_save_CC $ac_arg"
2683 rm -f conftest.$ac_objext
2684 if { (ac_try="$ac_compile"
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_try") 2>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cc_c89=$ac_arg
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f core conftest.err conftest.$ac_objext
2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
2728 rm -f conftest.$ac_ext
2733 case "x$ac_cv_prog_cc_c89" in
2735 { echo "$as_me:$LINENO: result: none needed" >&5
2736 echo "${ECHO_T}none needed" >&6; } ;;
2738 { echo "$as_me:$LINENO: result: unsupported" >&5
2739 echo "${ECHO_T}unsupported" >&6; } ;;
2741 CC="$CC $ac_cv_prog_cc_c89"
2742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 ac_cpp='$CXXCPP $CPPFLAGS'
2755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2758 if test -z "$CXX"; then
2759 if test -n "$CCC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in clang++ llvm-g++ g++
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_CXX+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$CXX"; then
2773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CXX"; then
2794 { echo "$as_me:$LINENO: result: $CXX" >&5
2795 echo "${ECHO_T}$CXX" >&6; }
2797 { echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6; }
2802 test -n "$CXX" && break
2805 if test -z "$CXX"; then
2807 for ac_prog in clang++ llvm-g++ g++
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CXX"; then
2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_ac_ct_CXX="$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2837 if test -n "$ac_ct_CXX"; then
2838 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2839 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$ac_ct_CXX" && break
2849 if test "x$ac_ct_CXX" = x; then
2852 case $cross_compiling:$ac_tool_warned in
2854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet. If you think this
2856 configuration is useful to you, please write to autoconf@gnu.org." >&5
2857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2860 ac_tool_warned=yes ;;
2868 # Provide some information about the compiler.
2869 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2870 ac_compiler=`set X $ac_compile; echo $2`
2871 { (ac_try="$ac_compiler --version >&5"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (ac_try="$ac_compiler -v >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler -v >&5") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try="$ac_compiler -V >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2902 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2903 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2904 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2934 grep -v '^ *+' conftest.er1 >conftest.err
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2940 { (case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_try") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2972 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2973 GXX=`test $ac_compiler_gnu = yes && echo yes`
2974 ac_test_CXXFLAGS=${CXXFLAGS+set}
2975 ac_save_CXXFLAGS=$CXXFLAGS
2976 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2977 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_cxx_g+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2982 ac_cxx_werror_flag=yes
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_cv_prog_cxx_g=yes
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_prog_cxx_g=yes
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3163 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3164 if test "$ac_test_CXXFLAGS" = set; then
3165 CXXFLAGS=$ac_save_CXXFLAGS
3166 elif test $ac_cv_prog_cxx_g = yes; then
3167 if test "$GXX" = yes; then
3173 if test "$GXX" = yes; then
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3191 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3192 # On Suns, sometimes $CPP names a directory.
3193 if test -n "$CPP" && test -d "$CPP"; then
3196 if test -z "$CPP"; then
3197 if test "${ac_cv_prog_CPP+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 # Double quotes because CPP needs to be expanded
3201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 for ac_c_preproc_warn_flag in '' yes
3206 # Use a header file that comes with gcc, so configuring glibc
3207 # with a fresh cross-compiler works.
3208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3209 # <limits.h> exists even on freestanding compilers.
3210 # On the NeXT, cc -E runs the code through the compiler's parser,
3211 # not just through cpp. "Syntax error" is here to catch this case.
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3219 # include <limits.h>
3221 # include <assert.h>
3225 if { (ac_try="$ac_cpp conftest.$ac_ext"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } >/dev/null; then
3238 if test -s conftest.err; then
3239 ac_cpp_err=$ac_c_preproc_warn_flag
3240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 if test -z "$ac_cpp_err"; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 # Broken: fails on valid input.
3257 rm -f conftest.err conftest.$ac_ext
3259 # OK, works on sane cases. Now check whether nonexistent headers
3260 # can be detected and how.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <ac_nonexistent.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3292 # Broken: success on invalid input.
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Passes both tests.
3303 rm -f conftest.err conftest.$ac_ext
3306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307 rm -f conftest.err conftest.$ac_ext
3308 if $ac_preproc_ok; then
3320 { echo "$as_me:$LINENO: result: $CPP" >&5
3321 echo "${ECHO_T}$CPP" >&6; }
3323 for ac_c_preproc_warn_flag in '' yes
3325 # Use a header file that comes with gcc, so configuring glibc
3326 # with a fresh cross-compiler works.
3327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328 # <limits.h> exists even on freestanding compilers.
3329 # On the NeXT, cc -E runs the code through the compiler's parser,
3330 # not just through cpp. "Syntax error" is here to catch this case.
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 # include <limits.h>
3340 # include <assert.h>
3344 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3366 if test -z "$ac_cpp_err"; then
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 # Broken: fails on valid input.
3376 rm -f conftest.err conftest.$ac_ext
3378 # OK, works on sane cases. Now check whether nonexistent headers
3379 # can be detected and how.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <ac_nonexistent.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3411 # Broken: success on invalid input.
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Passes both tests.
3422 rm -f conftest.err conftest.$ac_ext
3425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3426 rm -f conftest.err conftest.$ac_ext
3427 if $ac_preproc_ok; then
3430 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3431 See \`config.log' for more details." >&5
3432 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&2;}
3434 { (exit 1); exit 1; }; }
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 if test -d ${srcdir}/projects/llvm-gcc ; then
3447 subdirs="$subdirs projects/llvm-gcc"
3451 if test -d ${srcdir}/projects/test-suite ; then
3452 subdirs="$subdirs projects/test-suite"
3456 if test -d ${srcdir}/projects/llvm-test ; then
3457 subdirs="$subdirs projects/llvm-test"
3461 if test -d ${srcdir}/projects/poolalloc ; then
3462 subdirs="$subdirs projects/poolalloc"
3466 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3467 subdirs="$subdirs projects/llvm-poolalloc"
3471 for i in `ls ${srcdir}/projects`
3473 if test -d ${srcdir}/projects/${i} ; then
3475 sample) subdirs="$subdirs projects/sample"
3477 privbracket) subdirs="$subdirs projects/privbracket"
3479 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3481 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3483 llvm-java) subdirs="$subdirs projects/llvm-java"
3485 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3487 safecode) subdirs="$subdirs projects/safecode"
3489 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3497 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3498 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3504 # Check whether --enable-polly was given.
3505 if test "${enable_polly+set}" = set; then
3506 enableval=$enable_polly;
3511 case "$enableval" in
3516 default) ENABLE_POLLY=1
3518 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3519 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3520 { (exit 1); exit 1; }; } ;;
3524 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527 subdirs="$subdirs tools/polly"
3532 # Make sure we can run config.sub.
3533 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3534 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3535 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3536 { (exit 1); exit 1; }; }
3538 { echo "$as_me:$LINENO: checking build system type" >&5
3539 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3540 if test "${ac_cv_build+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_build_alias=$build_alias
3544 test "x$ac_build_alias" = x &&
3545 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3546 test "x$ac_build_alias" = x &&
3547 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3548 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3549 { (exit 1); exit 1; }; }
3550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3551 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3552 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3553 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3557 echo "${ECHO_T}$ac_cv_build" >&6; }
3558 case $ac_cv_build in
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3561 echo "$as_me: error: invalid value of canonical build" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking host system type" >&5
3579 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_host+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$host_alias" = x; then
3584 ac_cv_host=$ac_cv_build
3586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3594 echo "${ECHO_T}$ac_cv_host" >&6; }
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3598 echo "$as_me: error: invalid value of canonical host" >&2;}
3599 { (exit 1); exit 1; }; };;
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615 { echo "$as_me:$LINENO: checking target system type" >&5
3616 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3617 if test "${ac_cv_target+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test "x$target_alias" = x; then
3621 ac_cv_target=$ac_cv_host
3623 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3624 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3625 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3626 { (exit 1); exit 1; }; }
3630 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3631 echo "${ECHO_T}$ac_cv_target" >&6; }
3632 case $ac_cv_target in
3634 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3635 echo "$as_me: error: invalid value of canonical target" >&2;}
3636 { (exit 1); exit 1; }; };;
3638 target=$ac_cv_target
3639 ac_save_IFS=$IFS; IFS='-'
3645 # Remember, the first character of IFS is used to create $*,
3646 # except with old shells:
3649 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652 # The aliases save the names the user supplied, while $host etc.
3653 # will get canonicalized.
3654 test -n "$target_alias" &&
3655 test "$program_prefix$program_suffix$program_transform_name" = \
3657 program_prefix=${target_alias}-
3659 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3660 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3661 if test "${llvm_cv_os_type+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="AIX"
3669 llvm_cv_platform_type="Unix" ;;
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="IRIX"
3674 llvm_cv_platform_type="Unix" ;;
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="Cygwin"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,-all_load"
3682 llvm_cv_no_link_all_option="-Wl,-noall_load"
3683 llvm_cv_os_type="Darwin"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,-all_load"
3687 llvm_cv_no_link_all_option="-Wl,-noall_load"
3688 llvm_cv_os_type="Minix"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="FreeBSD"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="OpenBSD"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="NetBSD"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="DragonFly"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="HP-UX"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Interix"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Linux"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,-z,allextract"
3727 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3728 llvm_cv_os_type="SunOS"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,-z,allextract"
3732 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3733 llvm_cv_os_type="AuroraUX"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="Win32"
3739 llvm_cv_platform_type="Win32" ;;
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="MingW"
3744 llvm_cv_platform_type="Win32" ;;
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Haiku"
3749 llvm_cv_platform_type="Unix" ;;
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Freestanding"
3754 llvm_cv_platform_type="Unix" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Freestanding"
3759 llvm_cv_platform_type="Unix" ;;
3761 llvm_cv_link_all_option=""
3762 llvm_cv_no_link_all_option=""
3763 llvm_cv_os_type="Unknown"
3764 llvm_cv_platform_type="Unknown" ;;
3767 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3768 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3770 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3771 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3772 if test "${llvm_cv_target_os_type+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 llvm_cv_target_os_type="AIX" ;;
3779 llvm_cv_target_os_type="IRIX" ;;
3781 llvm_cv_target_os_type="Cygwin" ;;
3783 llvm_cv_target_os_type="Darwin" ;;
3785 llvm_cv_target_os_type="Minix" ;;
3787 llvm_cv_target_os_type="FreeBSD" ;;
3789 llvm_cv_target_os_type="OpenBSD" ;;
3791 llvm_cv_target_os_type="NetBSD" ;;
3793 llvm_cv_target_os_type="DragonFly" ;;
3795 llvm_cv_target_os_type="HP-UX" ;;
3797 llvm_cv_target_os_type="Interix" ;;
3799 llvm_cv_target_os_type="Linux" ;;
3801 llvm_cv_target_os_type="SunOS" ;;
3803 llvm_cv_target_os_type="AuroraUX" ;;
3805 llvm_cv_target_os_type="Win32" ;;
3807 llvm_cv_target_os_type="MingW" ;;
3809 llvm_cv_target_os_type="Haiku" ;;
3811 llvm_cv_target_os_type="RTEMS" ;;
3813 llvm_cv_target_os_type="NativeClient" ;;
3815 llvm_cv_target_os_type="Freestanding" ;;
3817 llvm_cv_target_os_type="Unknown" ;;
3820 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3821 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3823 if test "$llvm_cv_os_type" = "Unknown" ; then
3824 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3825 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3826 { (exit 1); exit 1; }; }
3831 HOST_OS=$llvm_cv_os_type
3833 TARGET_OS=$llvm_cv_target_os_type
3836 LINKALL=$llvm_cv_link_all_option
3838 NOLINKALL=$llvm_cv_no_link_all_option
3841 case $llvm_cv_platform_type in
3844 cat >>confdefs.h <<\_ACEOF
3845 #define LLVM_ON_UNIX 1
3855 cat >>confdefs.h <<\_ACEOF
3856 #define LLVM_ON_WIN32 1
3866 { echo "$as_me:$LINENO: checking target architecture" >&5
3867 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3868 if test "${llvm_cv_target_arch+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 i?86-*) llvm_cv_target_arch="x86" ;;
3873 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3874 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3875 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3876 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3877 arm*-*) llvm_cv_target_arch="ARM" ;;
3878 mips-*) llvm_cv_target_arch="Mips" ;;
3879 xcore-*) llvm_cv_target_arch="XCore" ;;
3880 msp430-*) llvm_cv_target_arch="MSP430" ;;
3881 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3882 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 ARCH=$llvm_cv_target_arch
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 ac_count=`expr $ac_count + 1`
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_GREP_found && break 3
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3977 ac_cv_path_GREP=$GREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3995 # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 ac_count=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_EGREP_found && break 3
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_EGREP=$EGREP
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067 EGREP="$ac_cv_path_EGREP"
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_c_bigendian=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 _ascii (); _ebcdic ();
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534 ac_cv_c_bigendian=yes
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4564 /* Are we little or big endian? From Harbison&Steele. */
4568 char c[sizeof (long int)];
4571 return u.c[sizeof (long int) - 1] == 1;
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_c_bigendian=no
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_c_bigendian=yes
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4632 if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4644 ac_build_prefix=${build_alias}-
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_BUILD_CC="gcc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4744 ac_cv_prog_BUILD_CC="cc"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
4781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786 (eval $ac_build_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 for file in conftest.*; do
4792 *.c | *.o | *.obj | *.dSYM) ;;
4793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CXX="g++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CXX="c++"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4946 LLVM_CROSS_COMPILING=0
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963 enableval=$enable_optimized;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978 enableval=$enable_profiling;
4983 if test ${enableval} = "no" ; then
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993 enableval=$enable_assertions;
4998 if test ${enableval} = "yes" ; then
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008 enableval=$enable_expensive_checks;
5013 if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016 EXPENSIVE_CHECKS=yes
5019 ENABLE_EXPENSIVE_CHECKS=
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027 enableval=$enable_debug_runtime;
5032 if test ${enableval} = "no" ; then
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042 enableval=$enable_debug_symbols;
5047 if test ${enableval} = "no" ; then
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057 enableval=$enable_jit;
5062 if test ${enableval} = "no"
5067 case "$llvm_cv_target_arch" in
5068 x86) TARGET_HAS_JIT=1
5070 Sparc) TARGET_HAS_JIT=0
5072 PowerPC) TARGET_HAS_JIT=1
5074 x86_64) TARGET_HAS_JIT=1
5076 Alpha) TARGET_HAS_JIT=0
5078 ARM) TARGET_HAS_JIT=1
5080 Mips) TARGET_HAS_JIT=1
5082 XCore) TARGET_HAS_JIT=0
5084 MSP430) TARGET_HAS_JIT=0
5086 SystemZ) TARGET_HAS_JIT=0
5088 Blackfin) TARGET_HAS_JIT=0
5090 MBlaze) TARGET_HAS_JIT=0
5092 PTX) TARGET_HAS_JIT=0
5099 # Check whether --enable-docs was given.
5100 if test "${enable_docs+set}" = set; then
5101 enableval=$enable_docs;
5106 case "$enableval" in
5111 default) ENABLE_DOCS=1
5113 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5114 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5118 # Check whether --enable-doxygen was given.
5119 if test "${enable_doxygen+set}" = set; then
5120 enableval=$enable_doxygen;
5125 case "$enableval" in
5126 yes) ENABLE_DOXYGEN=1
5128 no) ENABLE_DOXYGEN=0
5130 default) ENABLE_DOXYGEN=0
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5137 # Check whether --enable-threads was given.
5138 if test "${enable_threads+set}" = set; then
5139 enableval=$enable_threads;
5144 case "$enableval" in
5145 yes) ENABLE_THREADS=1
5147 no) ENABLE_THREADS=0
5149 default) ENABLE_THREADS=1
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5156 cat >>confdefs.h <<_ACEOF
5157 #define ENABLE_THREADS $ENABLE_THREADS
5161 # Check whether --enable-pthreads was given.
5162 if test "${enable_pthreads+set}" = set; then
5163 enableval=$enable_pthreads;
5168 case "$enableval" in
5169 yes) ENABLE_PTHREADS=1
5171 no) ENABLE_PTHREADS=0
5173 default) ENABLE_PTHREADS=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 # Check whether --enable-pic was given.
5181 if test "${enable_pic+set}" = set; then
5182 enableval=$enable_pic;
5187 case "$enableval" in
5192 default) ENABLE_PIC=1
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5199 cat >>confdefs.h <<_ACEOF
5200 #define ENABLE_PIC $ENABLE_PIC
5204 # Check whether --enable-shared was given.
5205 if test "${enable_shared+set}" = set; then
5206 enableval=$enable_shared;
5211 case "$enableval" in
5212 yes) ENABLE_SHARED=1
5216 default) ENABLE_SHARED=0
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 # Check whether --enable-embed-stdcxx was given.
5224 if test "${enable_embed_stdcxx+set}" = set; then
5225 enableval=$enable_embed_stdcxx;
5230 case "$enableval" in
5231 yes) ENABLE_EMBED_STDCXX=1
5233 no) ENABLE_EMBED_STDCXX=0
5235 default) ENABLE_EMBED_STDCXX=1
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5242 # Check whether --enable-timestamps was given.
5243 if test "${enable_timestamps+set}" = set; then
5244 enableval=$enable_timestamps;
5249 case "$enableval" in
5250 yes) ENABLE_TIMESTAMPS=1
5252 no) ENABLE_TIMESTAMPS=0
5254 default) ENABLE_TIMESTAMPS=1
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5261 cat >>confdefs.h <<_ACEOF
5262 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5267 # Check whether --enable-targets was given.
5268 if test "${enable_targets+set}" = set; then
5269 enableval=$enable_targets;
5274 if test "$enableval" = host-only ; then
5277 case "$enableval" in
5278 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5279 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5281 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5282 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5283 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5284 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5285 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5286 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5287 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5288 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5289 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5290 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5291 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5292 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5293 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5294 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5295 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5296 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5297 host) case "$llvm_cv_target_arch" in
5298 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5299 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5300 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5301 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5302 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5303 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5304 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5305 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5306 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5307 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5308 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5309 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5310 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5311 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5312 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5313 echo "$as_me: error: Can not set target to build" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5316 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5317 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5318 { (exit 1); exit 1; }; } ;;
5323 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5326 # Determine whether we are building LLVM support for the native architecture.
5327 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5328 for a_target in $TARGETS_TO_BUILD; do
5329 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5331 cat >>confdefs.h <<_ACEOF
5332 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5335 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5336 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5337 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5338 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5339 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5340 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5343 cat >>confdefs.h <<_ACEOF
5344 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5348 cat >>confdefs.h <<_ACEOF
5349 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5364 cat >>confdefs.h <<_ACEOF
5365 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5372 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5373 # target feature def files.
5374 LLVM_ENUM_TARGETS=""
5375 LLVM_ENUM_ASM_PRINTERS=""
5376 LLVM_ENUM_ASM_PARSERS=""
5377 LLVM_ENUM_DISASSEMBLERS=""
5378 for target_to_build in $TARGETS_TO_BUILD; do
5379 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5380 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5381 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5383 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5384 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5386 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5387 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5395 # Check whether --enable-cbe-printf-a was given.
5396 if test "${enable_cbe_printf_a+set}" = set; then
5397 enableval=$enable_cbe_printf_a;
5402 case "$enableval" in
5403 yes) ENABLE_CBE_PRINTF_A=1
5405 no) ENABLE_CBE_PRINTF_A=0
5407 default) ENABLE_CBE_PRINTF_A=1
5409 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5410 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5411 { (exit 1); exit 1; }; } ;;
5414 cat >>confdefs.h <<_ACEOF
5415 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5420 # Check whether --with-optimize-option was given.
5421 if test "${with_optimize_option+set}" = set; then
5422 withval=$with_optimize_option;
5427 { echo "$as_me:$LINENO: checking optimization flags" >&5
5428 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5431 case "$llvm_cv_os_type" in
5432 FreeBSD) optimize_option=-O2 ;;
5433 MingW) optimize_option=-O2 ;;
5434 *) optimize_option=-O3 ;;
5436 *) optimize_option="$withval" ;;
5438 OPTIMIZE_OPTION=$optimize_option
5440 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5441 echo "${ECHO_T}$optimize_option" >&6; }
5444 # Check whether --with-extra-options was given.
5445 if test "${with_extra_options+set}" = set; then
5446 withval=$with_extra_options;
5452 default) EXTRA_OPTIONS= ;;
5453 *) EXTRA_OPTIONS=$withval ;;
5455 EXTRA_OPTIONS=$EXTRA_OPTIONS
5459 # Check whether --with-extra-ld-options was given.
5460 if test "${with_extra_ld_options+set}" = set; then
5461 withval=$with_extra_ld_options;
5467 default) EXTRA_LD_OPTIONS= ;;
5468 *) EXTRA_LD_OPTIONS=$withval ;;
5470 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5473 # Check whether --enable-bindings was given.
5474 if test "${enable_bindings+set}" = set; then
5475 enableval=$enable_bindings;
5480 BINDINGS_TO_BUILD=""
5481 case "$enableval" in
5482 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5483 all ) BINDINGS_TO_BUILD="ocaml" ;;
5484 none | no) BINDINGS_TO_BUILD="" ;;
5485 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5486 case "$a_binding" in
5487 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5488 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5489 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5490 { (exit 1); exit 1; }; } ;;
5497 # Check whether --with-ocaml-libdir was given.
5498 if test "${with_ocaml_libdir+set}" = set; then
5499 withval=$with_ocaml_libdir;
5505 auto) with_ocaml_libdir="$withval" ;;
5506 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5507 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5508 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5509 { (exit 1); exit 1; }; } ;;
5513 # Check whether --with-clang-resource-dir was given.
5514 if test "${with_clang_resource_dir+set}" = set; then
5515 withval=$with_clang_resource_dir;
5521 cat >>confdefs.h <<_ACEOF
5522 #define CLANG_RESOURCE_DIR "$withval"
5527 # Check whether --with-c-include-dirs was given.
5528 if test "${with_c_include_dirs+set}" = set; then
5529 withval=$with_c_include_dirs;
5535 cat >>confdefs.h <<_ACEOF
5536 #define C_INCLUDE_DIRS "$withval"
5541 # Check whether --with-cxx-include-root was given.
5542 if test "${with_cxx_include_root+set}" = set; then
5543 withval=$with_cxx_include_root;
5549 cat >>confdefs.h <<_ACEOF
5550 #define CXX_INCLUDE_ROOT "$withval"
5555 # Check whether --with-cxx-include-arch was given.
5556 if test "${with_cxx_include_arch+set}" = set; then
5557 withval=$with_cxx_include_arch;
5563 cat >>confdefs.h <<_ACEOF
5564 #define CXX_INCLUDE_ARCH "$withval"
5569 # Check whether --with-cxx-include-32bit-dir was given.
5570 if test "${with_cxx_include_32bit_dir+set}" = set; then
5571 withval=$with_cxx_include_32bit_dir;
5577 cat >>confdefs.h <<_ACEOF
5578 #define CXX_INCLUDE_32BIT_DIR "$withval"
5583 # Check whether --with-cxx-include-64bit-dir was given.
5584 if test "${with_cxx_include_64bit_dir+set}" = set; then
5585 withval=$with_cxx_include_64bit_dir;
5591 cat >>confdefs.h <<_ACEOF
5592 #define CXX_INCLUDE_64BIT_DIR "$withval"
5597 # Check whether --with-binutils-include was given.
5598 if test "${with_binutils_include+set}" = set; then
5599 withval=$with_binutils_include;
5605 default) WITH_BINUTILS_INCDIR=default ;;
5606 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5607 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5611 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5614 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5616 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618 { (exit 1); exit 1; }; };
5623 # Check whether --with-bug-report-url was given.
5624 if test "${with_bug_report_url+set}" = set; then
5625 withval=$with_bug_report_url;
5627 withval="http://llvm.org/bugs/"
5631 cat >>confdefs.h <<_ACEOF
5632 #define BUG_REPORT_URL "$withval"
5636 # Check whether --enable-libffi was given.
5637 if test "${enable_libffi+set}" = set; then
5638 enableval=$enable_libffi; case "$enableval" in
5639 yes) llvm_cv_enable_libffi="yes" ;;
5640 no) llvm_cv_enable_libffi="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5646 llvm_cv_enable_libffi=no
5651 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5652 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5653 if test "${lt_cv_path_NM+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 if test -n "$NM"; then
5657 # Let the user override the test.
5660 lt_nm_to_check="${ac_tool_prefix}nm"
5661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5662 lt_nm_to_check="$lt_nm_to_check nm"
5664 for lt_tmp_nm in $lt_nm_to_check; do
5665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5666 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5668 test -z "$ac_dir" && ac_dir=.
5669 tmp_nm="$ac_dir/$lt_tmp_nm"
5670 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5671 # Check to see if the nm accepts a BSD-compat flag.
5672 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5673 # nm: unknown option "B" ignored
5674 # Tru64's nm complains that /dev/null is an invalid object file
5675 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5676 */dev/null* | *'Invalid file or object type'*)
5677 lt_cv_path_NM="$tmp_nm -B"
5681 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5683 lt_cv_path_NM="$tmp_nm -p"
5687 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5688 continue # so that we can try to find one that supports BSD flags
5697 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5700 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5701 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5706 { echo "$as_me:$LINENO: checking for GNU make" >&5
5707 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5708 if test "${llvm_cv_gnu_make_command+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 llvm_cv_gnu_make_command=''
5712 for a in "$MAKE" make gmake gnumake ; do
5713 if test -z "$a" ; then continue ; fi ;
5714 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5716 llvm_cv_gnu_make_command=$a ;
5721 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5722 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5723 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5727 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5728 echo "${ECHO_T}\"Not found\"" >&6; };
5732 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5735 if test "$LN_S" = "ln -s"; then
5736 { echo "$as_me:$LINENO: result: yes" >&5
5737 echo "${ECHO_T}yes" >&6; }
5739 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5740 echo "${ECHO_T}no, using $LN_S" >&6; }
5743 # Extract the first word of "cmp", so it can be a program name with args.
5744 set dummy cmp; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_path_CMP+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5775 if test -n "$CMP"; then
5776 { echo "$as_me:$LINENO: result: $CMP" >&5
5777 echo "${ECHO_T}$CMP" >&6; }
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5784 # Extract the first word of "cp", so it can be a program name with args.
5785 set dummy cp; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_CP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5816 if test -n "$CP"; then
5817 { echo "$as_me:$LINENO: result: $CP" >&5
5818 echo "${ECHO_T}$CP" >&6; }
5820 { echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6; }
5825 # Extract the first word of "date", so it can be a program name with args.
5826 set dummy date; ac_word=$2
5827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5829 if test "${ac_cv_path_DATE+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5856 DATE=$ac_cv_path_DATE
5857 if test -n "$DATE"; then
5858 { echo "$as_me:$LINENO: result: $DATE" >&5
5859 echo "${ECHO_T}$DATE" >&6; }
5861 { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5866 # Extract the first word of "find", so it can be a program name with args.
5867 set dummy find; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_path_FIND+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5897 FIND=$ac_cv_path_FIND
5898 if test -n "$FIND"; then
5899 { echo "$as_me:$LINENO: result: $FIND" >&5
5900 echo "${ECHO_T}$FIND" >&6; }
5902 { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5907 # Extract the first word of "grep", so it can be a program name with args.
5908 set dummy grep; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5938 GREP=$ac_cv_path_GREP
5939 if test -n "$GREP"; then
5940 { echo "$as_me:$LINENO: result: $GREP" >&5
5941 echo "${ECHO_T}$GREP" >&6; }
5943 { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5948 # Extract the first word of "mkdir", so it can be a program name with args.
5949 set dummy mkdir; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_path_MKDIR+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5979 MKDIR=$ac_cv_path_MKDIR
5980 if test -n "$MKDIR"; then
5981 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5982 echo "${ECHO_T}$MKDIR" >&6; }
5984 { echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6; }
5989 # Extract the first word of "mv", so it can be a program name with args.
5990 set dummy mv; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_path_MV+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6021 if test -n "$MV"; then
6022 { echo "$as_me:$LINENO: result: $MV" >&5
6023 echo "${ECHO_T}$MV" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_prog_RANLIB+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 if test -n "$RANLIB"; then
6039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 RANLIB=$ac_cv_prog_RANLIB
6059 if test -n "$RANLIB"; then
6060 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6061 echo "${ECHO_T}$RANLIB" >&6; }
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6069 if test -z "$ac_cv_prog_RANLIB"; then
6070 ac_ct_RANLIB=$RANLIB
6071 # Extract the first word of "ranlib", so it can be a program name with args.
6072 set dummy ranlib; ac_word=$2
6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 if test -n "$ac_ct_RANLIB"; then
6079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_RANLIB="ranlib"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6099 if test -n "$ac_ct_RANLIB"; then
6100 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6101 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6103 { echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6; }
6107 if test "x$ac_ct_RANLIB" = x; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113 whose name does not start with the host triplet. If you think this
6114 configuration is useful to you, please write to autoconf@gnu.org." >&5
6115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116 whose name does not start with the host triplet. If you think this
6117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6118 ac_tool_warned=yes ;;
6120 RANLIB=$ac_ct_RANLIB
6123 RANLIB="$ac_cv_prog_RANLIB"
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ar; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$AR"; then
6135 ac_cv_prog_AR="$AR" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_AR="${ac_tool_prefix}ar"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 if test -n "$AR"; then
6156 { echo "$as_me:$LINENO: result: $AR" >&5
6157 echo "${ECHO_T}$AR" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6165 if test -z "$ac_cv_prog_AR"; then
6167 # Extract the first word of "ar", so it can be a program name with args.
6168 set dummy ar; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 if test -n "$ac_ct_AR"; then
6175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_AR="ar"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6197 echo "${ECHO_T}$ac_ct_AR" >&6; }
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6203 if test "x$ac_ct_AR" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet. If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&5
6211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212 whose name does not start with the host triplet. If you think this
6213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6214 ac_tool_warned=yes ;;
6222 # Extract the first word of "rm", so it can be a program name with args.
6223 set dummy rm; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_path_RM+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6254 if test -n "$RM"; then
6255 { echo "$as_me:$LINENO: result: $RM" >&5
6256 echo "${ECHO_T}$RM" >&6; }
6258 { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6263 # Extract the first word of "sed", so it can be a program name with args.
6264 set dummy sed; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_path_SED+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6295 if test -n "$SED"; then
6296 { echo "$as_me:$LINENO: result: $SED" >&5
6297 echo "${ECHO_T}$SED" >&6; }
6299 { echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6; }
6304 # Extract the first word of "tar", so it can be a program name with args.
6305 set dummy tar; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_path_TAR+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6336 if test -n "$TAR"; then
6337 { echo "$as_me:$LINENO: result: $TAR" >&5
6338 echo "${ECHO_T}$TAR" >&6; }
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6345 # Extract the first word of "pwd", so it can be a program name with args.
6346 set dummy pwd; ac_word=$2
6347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6349 if test "${ac_cv_path_BINPWD+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6376 BINPWD=$ac_cv_path_BINPWD
6377 if test -n "$BINPWD"; then
6378 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6379 echo "${ECHO_T}$BINPWD" >&6; }
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6387 # Extract the first word of "Graphviz", so it can be a program name with args.
6388 set dummy Graphviz; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6418 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6419 if test -n "$GRAPHVIZ"; then
6420 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6421 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6428 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6430 cat >>confdefs.h <<\_ACEOF
6431 #define HAVE_GRAPHVIZ 1
6434 if test "$llvm_cv_os_type" = "MingW" ; then
6435 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6438 cat >>confdefs.h <<_ACEOF
6439 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6443 # Extract the first word of "dot", so it can be a program name with args.
6444 set dummy dot; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_DOT+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6475 if test -n "$DOT"; then
6476 { echo "$as_me:$LINENO: result: $DOT" >&5
6477 echo "${ECHO_T}$DOT" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6484 if test "$DOT" != "echo dot" ; then
6486 cat >>confdefs.h <<\_ACEOF
6490 if test "$llvm_cv_os_type" = "MingW" ; then
6491 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494 cat >>confdefs.h <<_ACEOF
6495 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6499 # Extract the first word of "fdp", so it can be a program name with args.
6500 set dummy fdp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_FDP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6531 if test -n "$FDP"; then
6532 { echo "$as_me:$LINENO: result: $FDP" >&5
6533 echo "${ECHO_T}$FDP" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 if test "$FDP" != "echo fdp" ; then
6542 cat >>confdefs.h <<\_ACEOF
6546 if test "$llvm_cv_os_type" = "MingW" ; then
6547 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550 cat >>confdefs.h <<_ACEOF
6551 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6555 # Extract the first word of "neato", so it can be a program name with args.
6556 set dummy neato; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_path_NEATO+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6586 NEATO=$ac_cv_path_NEATO
6587 if test -n "$NEATO"; then
6588 { echo "$as_me:$LINENO: result: $NEATO" >&5
6589 echo "${ECHO_T}$NEATO" >&6; }
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6596 if test "$NEATO" != "echo neato" ; then
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_NEATO 1
6602 if test "$llvm_cv_os_type" = "MingW" ; then
6603 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606 cat >>confdefs.h <<_ACEOF
6607 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6611 # Extract the first word of "twopi", so it can be a program name with args.
6612 set dummy twopi; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_path_TWOPI+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6642 TWOPI=$ac_cv_path_TWOPI
6643 if test -n "$TWOPI"; then
6644 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6645 echo "${ECHO_T}$TWOPI" >&6; }
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6652 if test "$TWOPI" != "echo twopi" ; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_TWOPI 1
6658 if test "$llvm_cv_os_type" = "MingW" ; then
6659 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6667 # Extract the first word of "circo", so it can be a program name with args.
6668 set dummy circo; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_CIRCO+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6698 CIRCO=$ac_cv_path_CIRCO
6699 if test -n "$CIRCO"; then
6700 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6701 echo "${ECHO_T}$CIRCO" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 if test "$CIRCO" != "echo circo" ; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_CIRCO 1
6714 if test "$llvm_cv_os_type" = "MingW" ; then
6715 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6723 for ac_prog in gv gsview32
6725 # Extract the first word of "$ac_prog", so it can be a program name with args.
6726 set dummy $ac_prog; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_GV+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 if test -n "$GV"; then
6757 { echo "$as_me:$LINENO: result: $GV" >&5
6758 echo "${ECHO_T}$GV" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 test -n "$GV" && break
6767 test -n "$GV" || GV="echo gv"
6769 if test "$GV" != "echo gv" ; then
6771 cat >>confdefs.h <<\_ACEOF
6775 if test "$llvm_cv_os_type" = "MingW" ; then
6776 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6779 cat >>confdefs.h <<_ACEOF
6780 #define LLVM_PATH_GV "$GV${EXEEXT}"
6784 # Extract the first word of "dotty", so it can be a program name with args.
6785 set dummy dotty; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_DOTTY+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6815 DOTTY=$ac_cv_path_DOTTY
6816 if test -n "$DOTTY"; then
6817 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6818 echo "${ECHO_T}$DOTTY" >&6; }
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 if test "$DOTTY" != "echo dotty" ; then
6827 cat >>confdefs.h <<\_ACEOF
6828 #define HAVE_DOTTY 1
6831 if test "$llvm_cv_os_type" = "MingW" ; then
6832 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6840 # Extract the first word of "xdot.py", so it can be a program name with args.
6841 set dummy xdot.py; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6871 XDOT_PY=$ac_cv_path_XDOT_PY
6872 if test -n "$XDOT_PY"; then
6873 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6874 echo "${ECHO_T}$XDOT_PY" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6881 if test "$XDOT_PY" != "echo xdot.py" ; then
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_XDOT_PY 1
6887 if test "$llvm_cv_os_type" = "MingW" ; then
6888 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891 cat >>confdefs.h <<_ACEOF
6892 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6898 # Extract the first word of "perl", so it can be a program name with args.
6899 set dummy perl; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_PERL+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6929 PERL=$ac_cv_path_PERL
6930 if test -n "$PERL"; then
6931 { echo "$as_me:$LINENO: result: $PERL" >&5
6932 echo "${ECHO_T}$PERL" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 if test "$PERL" != "none"; then
6940 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6941 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6942 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6943 { echo "$as_me:$LINENO: result: yes" >&5
6944 echo "${ECHO_T}yes" >&6; }
6947 { echo "$as_me:$LINENO: result: not found" >&5
6948 echo "${ECHO_T}not found" >&6; }
6953 if test x"$PERL" = xnone; then
6956 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6957 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6958 { (exit 1); exit 1; }; }
6964 # Find a good install program. We prefer a C program (faster),
6965 # so one script is as good as another. But avoid the broken or
6966 # incompatible versions:
6967 # SysV /etc/install, /usr/sbin/install
6968 # SunOS /usr/etc/install
6969 # IRIX /sbin/install
6971 # AmigaOS /C/install, which installs bootblocks on floppy discs
6972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6975 # OS/2's system install, which has a completely different semantic
6976 # ./install, which can be erroneously created by make from ./install.sh.
6977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6979 if test -z "$INSTALL"; then
6980 if test "${ac_cv_path_install+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 # Account for people who put trailing slashes in PATH elements.
6990 ./ | .// | /cC/* | \
6991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6995 # OSF1 and SCO ODT 3.0 have their own names for install.
6996 # Don't use installbsd from OSF since it installs stuff as root
6998 for ac_prog in ginstall scoinst install; do
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7001 if test $ac_prog = install &&
7002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7003 # AIX install. It has an incompatible calling convention.
7005 elif test $ac_prog = install &&
7006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7007 # program-specific install script used by HP pwplus--don't use.
7010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7023 if test "${ac_cv_path_install+set}" = set; then
7024 INSTALL=$ac_cv_path_install
7026 # As a last resort, use the slow shell script. Don't cache a
7027 # value for INSTALL within a source directory, because that will
7028 # break other packages using the cache if that directory is
7029 # removed, or if the value is a relative name.
7030 INSTALL=$ac_install_sh
7033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7034 echo "${ECHO_T}$INSTALL" >&6; }
7036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7037 # It thinks the first close brace ends the variable substitution.
7038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7045 [\\/$]* | ?:[\\/]* ) ;;
7046 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7049 # Extract the first word of "bzip2", so it can be a program name with args.
7050 set dummy bzip2; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_BZIP2+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 BZIP2=$ac_cv_path_BZIP2
7080 if test -n "$BZIP2"; then
7081 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7082 echo "${ECHO_T}$BZIP2" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 # Extract the first word of "cat", so it can be a program name with args.
7090 set dummy cat; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_CAT+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 if test -n "$CAT"; then
7121 { echo "$as_me:$LINENO: result: $CAT" >&5
7122 echo "${ECHO_T}$CAT" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 # Extract the first word of "doxygen", so it can be a program name with args.
7130 set dummy doxygen; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 DOXYGEN=$ac_cv_path_DOXYGEN
7160 if test -n "$DOXYGEN"; then
7161 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7162 echo "${ECHO_T}$DOXYGEN" >&6; }
7164 { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7169 # Extract the first word of "groff", so it can be a program name with args.
7170 set dummy groff; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_path_GROFF+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 GROFF=$ac_cv_path_GROFF
7200 if test -n "$GROFF"; then
7201 { echo "$as_me:$LINENO: result: $GROFF" >&5
7202 echo "${ECHO_T}$GROFF" >&6; }
7204 { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7209 # Extract the first word of "gzip", so it can be a program name with args.
7210 set dummy gzip; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 GZIPBIN=$ac_cv_path_GZIPBIN
7240 if test -n "$GZIPBIN"; then
7241 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7242 echo "${ECHO_T}$GZIPBIN" >&6; }
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7249 # Extract the first word of "pod2html", so it can be a program name with args.
7250 set dummy pod2html; ac_word=$2
7251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253 if test "${ac_cv_path_POD2HTML+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 POD2HTML=$ac_cv_path_POD2HTML
7280 if test -n "$POD2HTML"; then
7281 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7282 echo "${ECHO_T}$POD2HTML" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7289 # Extract the first word of "pod2man", so it can be a program name with args.
7290 set dummy pod2man; ac_word=$2
7291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7293 if test "${ac_cv_path_POD2MAN+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 POD2MAN=$ac_cv_path_POD2MAN
7320 if test -n "$POD2MAN"; then
7321 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7322 echo "${ECHO_T}$POD2MAN" >&6; }
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7329 # Extract the first word of "pdfroff", so it can be a program name with args.
7330 set dummy pdfroff; ac_word=$2
7331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333 if test "${ac_cv_path_PDFROFF+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 PDFROFF=$ac_cv_path_PDFROFF
7360 if test -n "$PDFROFF"; then
7361 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7362 echo "${ECHO_T}$PDFROFF" >&6; }
7364 { echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6; }
7369 # Extract the first word of "runtest", so it can be a program name with args.
7370 set dummy runtest; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_path_RUNTEST+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 RUNTEST=$ac_cv_path_RUNTEST
7400 if test -n "$RUNTEST"; then
7401 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7402 echo "${ECHO_T}$RUNTEST" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7411 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7412 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7414 # Check whether --with-tclinclude was given.
7415 if test "${with_tclinclude+set}" = set; then
7416 withval=$with_tclinclude; with_tclinclude=${withval}
7421 if test "${ac_cv_path_tclsh+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 if test x"${with_tclinclude}" != x ; then
7426 if test -f ${with_tclinclude}/tclsh ; then
7427 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7428 elif test -f ${with_tclinclude}/src/tclsh ; then
7429 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7431 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7432 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7433 { (exit 1); exit 1; }; }
7439 if test x"${ac_cv_path_tclsh}" = x ; then
7440 { echo "$as_me:$LINENO: result: none" >&5
7441 echo "${ECHO_T}none" >&6; }
7442 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
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_TCLSH+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 TCLSH=$ac_cv_path_TCLSH
7475 if test -n "$TCLSH"; then
7476 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7477 echo "${ECHO_T}$TCLSH" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7484 test -n "$TCLSH" && break
7487 if test x"${TCLSH}" = x ; then
7488 ac_cv_path_tclsh='';
7490 ac_cv_path_tclsh="${TCLSH}";
7493 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7494 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7495 TCLSH="${ac_cv_path_tclsh}"
7499 # Extract the first word of "zip", so it can be a program name with args.
7500 set dummy zip; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_ZIP+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 if test -n "$ZIP"; then
7531 { echo "$as_me:$LINENO: result: $ZIP" >&5
7532 echo "${ECHO_T}$ZIP" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7539 for ac_prog in ocamlc
7541 # Extract the first word of "$ac_prog", so it can be a program name with args.
7542 set dummy $ac_prog; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_OCAMLC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 OCAMLC=$ac_cv_path_OCAMLC
7572 if test -n "$OCAMLC"; then
7573 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7574 echo "${ECHO_T}$OCAMLC" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 test -n "$OCAMLC" && break
7584 for ac_prog in ocamlopt
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 OCAMLOPT=$ac_cv_path_OCAMLOPT
7617 if test -n "$OCAMLOPT"; then
7618 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7619 echo "${ECHO_T}$OCAMLOPT" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 test -n "$OCAMLOPT" && break
7629 for ac_prog in ocamldep
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632 set dummy $ac_prog; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 OCAMLDEP=$ac_cv_path_OCAMLDEP
7662 if test -n "$OCAMLDEP"; then
7663 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7664 echo "${ECHO_T}$OCAMLDEP" >&6; }
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 test -n "$OCAMLDEP" && break
7674 for ac_prog in ocamldoc
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 OCAMLDOC=$ac_cv_path_OCAMLDOC
7707 if test -n "$OCAMLDOC"; then
7708 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7709 echo "${ECHO_T}$OCAMLDOC" >&6; }
7711 { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7716 test -n "$OCAMLDOC" && break
7719 for ac_prog in gas as
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_GAS+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 if test -n "$GAS"; then
7753 { echo "$as_me:$LINENO: result: $GAS" >&5
7754 echo "${ECHO_T}$GAS" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 test -n "$GAS" && break
7765 { echo "$as_me:$LINENO: checking for linker version" >&5
7766 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7767 if test "${llvm_cv_link_version+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 version_string="$(ld -v 2>&1 | head -1)"
7774 if (echo "$version_string" | grep -q "ld64"); then
7775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7777 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7781 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7782 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7784 cat >>confdefs.h <<_ACEOF
7785 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7790 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7791 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7792 if test "${llvm_cv_link_use_r+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802 CFLAGS="$CFLAGS -Wl,-R."
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833 { (case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_try") 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 llvm_cv_link_use_r=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 llvm_cv_link_use_r=no
7860 rm -f core conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7864 ac_cpp='$CPP $CPPFLAGS'
7865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7872 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7873 if test "$llvm_cv_link_use_r" = yes ; then
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_LINK_R 1
7882 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7883 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7884 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 llvm_cv_link_use_export_dynamic=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 llvm_cv_link_use_export_dynamic=no
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7964 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7965 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_LINK_EXPORT_DYNAMIC 1
7974 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7975 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7976 if test "${llvm_cv_link_use_version_script+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987 # The following code is from the autoconf manual,
7988 # "11.13: Limitations of Usual Tools".
7989 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7990 # Use mktemp if possible; otherwise fall back on mkdir,
7991 # with $RANDOM to make collisions less likely.
7995 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7997 test -n "$tmp" && test -d "$tmp"
7999 tmp=$TMPDIR/foo$$-$RANDOM
8000 (umask 077 && mkdir "$tmp")
8003 echo "{" > "$tmp/export.map"
8004 echo " global: main;" >> "$tmp/export.map"
8005 echo " local: *;" >> "$tmp/export.map"
8006 echo "};" >> "$tmp/export.map"
8008 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (ac_try="$ac_link"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_link") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest$ac_exeext'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 llvm_cv_link_use_version_script=yes
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 llvm_cv_link_use_version_script=no
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 rm "$tmp/export.map"
8072 ac_cpp='$CPP $CPPFLAGS'
8073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8080 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8081 if test "$llvm_cv_link_use_version_script" = yes ; then
8082 HAVE_LINK_VERSION_SCRIPT=1
8089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8091 if test "${ac_cv_c_const+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8104 /* FIXME: Include the comments suggested by Paul. */
8106 /* Ultrix mips cc rejects this. */
8107 typedef int charset[2];
8109 /* SunOS 4.1.1 cc rejects this. */
8110 char const *const *ccp;
8112 /* NEC SVR4.0.2 mips cc rejects this. */
8113 struct point {int x, y;};
8114 static struct point const zero = {0,0};
8115 /* AIX XL C 1.02.0.0 rejects this.
8116 It does not let you subtract one const X* pointer from another in
8117 an arm of an if-expression whose if-part is not a constant
8119 const char *g = "string";
8120 ccp = &g + (g ? g-g : 0);
8121 /* HPUX 7.0 cc rejects these. */
8124 ccp = (char const *const *) p;
8125 { /* SCO 3.2v4 cc rejects this. */
8127 char const *s = 0 ? (char *) 0 : (char const *) 0;
8132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8134 const int *foo = &x[0];
8137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8138 typedef const int *iptr;
8142 { /* AIX XL C 1.02.0.0 rejects this saying
8143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8144 struct s { int j; const int *ap[3]; };
8145 struct s *b; b->j = 5;
8147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8151 return !x[0] && !zero.x;
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8173 { (case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_try") 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest.$ac_objext'
8183 { (case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_try") 2>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8203 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8204 if test $ac_cv_c_const = no; then
8206 cat >>confdefs.h <<\_ACEOF
8218 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8219 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8220 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8221 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 cat >conftest.$ac_ext <<_ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 #include <sys/types.h>
8243 rm -f conftest.$ac_objext
8244 if { (ac_try="$ac_compile"
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8252 grep -v '^ *+' conftest.er1 >conftest.err
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest.$ac_objext'
8268 { (case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_try") 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 eval "$as_ac_Header=yes"
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 eval "$as_ac_Header=no"
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 ac_res=`eval echo '${'$as_ac_Header'}'`
8288 { echo "$as_me:$LINENO: result: $ac_res" >&5
8289 echo "${ECHO_T}$ac_res" >&6; }
8290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8291 cat >>confdefs.h <<_ACEOF
8292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8295 ac_header_dirent=$ac_hdr; break
8299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8300 if test $ac_header_dirent = dirent.h; then
8301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8329 for ac_lib in '' dir; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_link") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_search_opendir=$ac_res
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8378 rm -f core conftest.err conftest.$ac_objext \
8380 if test "${ac_cv_search_opendir+set}" = set; then
8384 if test "${ac_cv_search_opendir+set}" = set; then
8387 ac_cv_search_opendir=no
8390 LIBS=$ac_func_search_save_LIBS
8392 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8393 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8394 ac_res=$ac_cv_search_opendir
8395 if test "$ac_res" != no; then
8396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8401 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8402 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8403 if test "${ac_cv_search_opendir+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8429 for ac_lib in '' x; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_search_opendir=$ac_res
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext \
8480 if test "${ac_cv_search_opendir+set}" = set; then
8484 if test "${ac_cv_search_opendir+set}" = set; then
8487 ac_cv_search_opendir=no
8490 LIBS=$ac_func_search_save_LIBS
8492 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8493 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8494 ac_res=$ac_cv_search_opendir
8495 if test "$ac_res" != no; then
8496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8503 for ac_header in dlfcn.h
8505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 ac_res=`eval echo '${'$as_ac_Header'}'`
8513 { echo "$as_me:$LINENO: result: $ac_res" >&5
8514 echo "${ECHO_T}$ac_res" >&6; }
8516 # Is the header compilable?
8517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8519 cat >conftest.$ac_ext <<_ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 $ac_includes_default
8526 #include <$ac_header>
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_header_compiler=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_header_compiler=no
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572 echo "${ECHO_T}$ac_header_compiler" >&6; }
8574 # Is the header present?
8575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #include <$ac_header>
8585 if { (ac_try="$ac_cpp conftest.$ac_ext"
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } >/dev/null; then
8598 if test -s conftest.err; then
8599 ac_cpp_err=$ac_c_preproc_warn_flag
8600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8607 if test -z "$ac_cpp_err"; then
8608 ac_header_preproc=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_header_preproc=no
8616 rm -f conftest.err conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8618 echo "${ECHO_T}$ac_header_preproc" >&6; }
8620 # So? What about this header?
8621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8627 ac_header_preproc=yes
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8643 ## ----------------------------------- ##
8644 ## Report this to llvmbugs@cs.uiuc.edu ##
8645 ## ----------------------------------- ##
8647 ) | sed "s/^/$as_me: WARNING: /" >&2
8650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 eval "$as_ac_Header=\$ac_header_preproc"
8657 ac_res=`eval echo '${'$as_ac_Header'}'`
8658 { echo "$as_me:$LINENO: result: $ac_res" >&5
8659 echo "${ECHO_T}$ac_res" >&6; }
8662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8671 # Check whether --enable-ltdl-install was given.
8672 if test "${enable_ltdl_install+set}" = set; then
8673 enableval=$enable_ltdl_install;
8679 if test x"${enable_ltdl_install-no}" != xno; then
8681 INSTALL_LTDL_FALSE='#'
8683 INSTALL_LTDL_TRUE='#'
8689 if test x"${enable_ltdl_convenience-no}" != xno; then
8690 CONVENIENCE_LTDL_TRUE=
8691 CONVENIENCE_LTDL_FALSE='#'
8693 CONVENIENCE_LTDL_TRUE='#'
8694 CONVENIENCE_LTDL_FALSE=
8698 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8699 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8701 libname_spec='lib$name'
8709 shlibpath_overrides_runpath=unknown
8711 dynamic_linker="$host_os ld.so"
8712 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8713 if test "$GCC" = yes; then
8714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8715 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8716 # if the path contains ";" then we assume it to be the separator
8717 # otherwise default to the standard path separator (i.e. ":") - it is
8718 # assumed that no part of a normal pathname contains ";" but that should
8719 # okay in the real world where ";" in dirpaths is itself problematic.
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8727 need_lib_prefix=unknown
8728 hardcode_into_libs=no
8730 # when you set need_version to no, make sure it does not cause -set_version
8731 # flags to be left without arguments
8732 need_version=unknown
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8738 shlibpath_var=LIBPATH
8740 # AIX 3 has no versioning support, so we append a major version to the name.
8741 soname_spec='${libname}${release}${shared_ext}$major'
8748 hardcode_into_libs=yes
8749 if test "$host_cpu" = ia64; then
8750 # AIX 5 supports IA64
8751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8752 shlibpath_var=LD_LIBRARY_PATH
8754 # With GCC up to 2.95.x, collect2 would create an import file
8755 # for dependence libraries. The import file would start with
8756 # the line `#! .'. This would cause the generated library to
8757 # depend on `.', always an invalid library. This was fixed in
8758 # development snapshots of GCC prior to 3.0.
8760 aix4 | aix4.[01] | aix4.[01].*)
8761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8771 # soname into executable. Probably we can add versioning support to
8772 # collect2, so additional links can be useful in future.
8773 if test "$aix_use_runtimelinking" = yes; then
8774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8775 # instead of lib<name>.a to let people know that these are not
8776 # typical AIX shared libraries.
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8779 # We preserve .a as extension for shared libraries through AIX4.2
8780 # and later when we are not doing run time linking.
8781 library_names_spec='${libname}${release}.a $libname.a'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LIBPATH
8789 library_names_spec='$libname.ixlibrary $libname.a'
8790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8791 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'
8795 library_names_spec='${libname}${shared_ext}'
8796 dynamic_linker="$host_os ld.so"
8797 shlibpath_var=LIBRARY_PATH
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8808 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8809 # the default ld.so.conf also contains /usr/contrib/lib and
8810 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8811 # libtool to hard-code these into programs
8814 cygwin* | mingw* | pw32*)
8815 version_type=windows
8820 case $GCC,$host_os in
8821 yes,cygwin* | yes,mingw* | yes,pw32*)
8822 library_names_spec='$libname.dll.a'
8823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8824 postinstall_cmds='base_file=`basename \${file}`~
8825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8826 dldir=$destdir/`dirname \$dlpath`~
8827 test -d \$dldir || mkdir -p \$dldir~
8828 $install_prog $dir/$dlname \$dldir/$dlname~
8829 chmod a+x \$dldir/$dlname'
8830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8831 dlpath=$dir/\$dldll~
8833 shlibpath_overrides_runpath=yes
8837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8842 # MinGW DLLs use traditional 'lib' prefix
8843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8845 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8846 # It is most probably a Windows format PATH printed by
8847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8848 # path with ; separators, and with drive letters. We can handle the
8849 # drive letters (cygwin fileutils understands them), so leave them,
8850 # especially as we might pass files found there to a mingw objdump,
8851 # which wouldn't understand a cygwinified path. Ahh.
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8858 # pw32 DLLs use 'pw' prefix rather than 'lib'
8859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8868 dynamic_linker='Win32 ld.exe'
8869 # FIXME: first we should search . and the directory the executable is in
8873 darwin* | rhapsody*)
8874 dynamic_linker="$host_os dyld"
8878 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8879 soname_spec='${libname}${release}${major}$shared_ext'
8880 shlibpath_overrides_runpath=yes
8881 shlibpath_var=DYLD_LIBRARY_PATH
8882 shrext_cmds='.dylib'
8883 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8884 if test "$GCC" = yes; then
8885 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"`
8887 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8889 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 shlibpath_var=LD_LIBRARY_PATH
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8914 dynamic_linker='GNU ld.so'
8917 freebsd* | dragonfly*)
8918 # DragonFly does not have aout. When/if they implement a new
8919 # versioning mechanism, adjust this.
8920 if test -x /usr/bin/objformat; then
8921 objformat=`/usr/bin/objformat`
8924 freebsd[123]*) objformat=aout ;;
8928 version_type=freebsd-$objformat
8929 case $version_type in
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8940 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8945 freebsd3.[01]* | freebsdelf3.[01]*)
8946 shlibpath_overrides_runpath=yes
8947 hardcode_into_libs=yes
8949 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8950 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8951 shlibpath_overrides_runpath=no
8952 hardcode_into_libs=yes
8954 freebsd*) # from 4.6 on
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 hardcode_into_libs=yes
8971 hpux9* | hpux10* | hpux11*)
8972 # Give a soname corresponding to the major version so that dld.sl refuses to
8973 # link against other versions.
8980 hardcode_into_libs=yes
8981 dynamic_linker="$host_os dld.so"
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 if test "X$HPUX_IA64_MODE" = X32; then
8987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8995 hardcode_into_libs=yes
8996 dynamic_linker="$host_os dld.sl"
8997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9006 dynamic_linker="$host_os dld.sl"
9007 shlibpath_var=SHLIB_PATH
9008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9013 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9014 postinstall_cmds='chmod 555 $lib'
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=no
9026 hardcode_into_libs=yes
9029 irix5* | irix6* | nonstopux*)
9031 nonstopux*) version_type=nonstopux ;;
9033 if test "$lt_cv_prog_gnu_ld" = yes; then
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9044 irix5* | nonstopux*)
9048 case $LD in # libtool.m4 will add one of these switches to LD
9049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9050 libsuff= shlibsuff= libmagic=32-bit;;
9051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9052 libsuff=32 shlibsuff=N32 libmagic=N32;;
9053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9055 *) libsuff= shlibsuff= libmagic=never-match;;
9059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9060 shlibpath_overrides_runpath=no
9061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9063 hardcode_into_libs=yes
9066 # No shared lib support for Linux oldld, aout, or coff.
9067 linux*oldld* | linux*aout* | linux*coff*)
9071 # This must be Linux ELF.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=no
9081 # This implies no fast_install, which is unacceptable.
9082 # Some rework will be needed to allow for fast_install
9083 # before this can be enabled.
9084 hardcode_into_libs=yes
9086 # Append ld.so.conf contents to the search path
9087 if test -f /etc/ld.so.conf; then
9088 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' ' '`
9089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9092 # We used to test for /lib/ld.so.1 and disable shared libraries on
9093 # powerpc, because MkLinux only supported shared libraries with the
9094 # GNU dynamic linker. Since this was broken with cross compilers,
9095 # most powerpc-linux boxes support dynamic linking these days and
9096 # people can always --disable-shared, the test was removed, and we
9097 # assume the GNU/Linux dynamic linker is in use.
9098 dynamic_linker='GNU/Linux ld.so'
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9110 dynamic_linker='GNU ld.so'
9117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9120 dynamic_linker='NetBSD (a.out) ld.so'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 dynamic_linker='NetBSD ld.elf_so'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9150 sys_lib_dlsearch_path_spec="/usr/lib"
9152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9155 *) need_version=no ;;
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9162 openbsd2.[89] | openbsd2.[89].*)
9163 shlibpath_overrides_runpath=no
9166 shlibpath_overrides_runpath=yes
9170 shlibpath_overrides_runpath=yes
9175 libname_spec='$name'
9178 library_names_spec='$libname${shared_ext} $libname.a'
9179 dynamic_linker='OS/2 ld.exe'
9180 shlibpath_var=LIBPATH
9183 osf3* | osf4* | osf5*)
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes
9202 hardcode_into_libs=yes
9203 # ldd complains unless libraries are executable
9204 postinstall_cmds='chmod +x $lib'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 if test "$with_gnu_ld" = yes; then
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 case $host_vendor in
9226 shlibpath_overrides_runpath=no
9228 export_dynamic_flag_spec='${wl}-Blargedynsym'
9229 runpath_var=LD_RUN_PATH
9237 shlibpath_overrides_runpath=no
9238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9244 if test -d /usr/nec ;then
9246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9247 soname_spec='$libname${shared_ext}.$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9253 version_type=freebsd-elf
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 hardcode_into_libs=yes
9260 if test "$with_gnu_ld" = yes; then
9261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9262 shlibpath_overrides_runpath=no
9264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9265 shlibpath_overrides_runpath=yes
9268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9272 sys_lib_dlsearch_path_spec='/usr/lib'
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 shlibpath_var=LD_LIBRARY_PATH
9286 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9287 echo "${ECHO_T}$dynamic_linker" >&6; }
9288 test "$dynamic_linker" = no && can_build_shared=no
9290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9291 if test "$GCC" = yes; then
9292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9296 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9297 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9298 if test "${libltdl_cv_shlibext+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 eval libltdl_cv_shlibext=$shrext_cmds
9306 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9307 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9308 if test -n "$libltdl_cv_shlibext"; then
9310 cat >>confdefs.h <<_ACEOF
9311 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9317 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9318 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9319 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 libltdl_cv_shlibpath_var="$shlibpath_var"
9324 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9325 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9326 if test -n "$libltdl_cv_shlibpath_var"; then
9328 cat >>confdefs.h <<_ACEOF
9329 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9335 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9336 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9337 if test "${libltdl_cv_sys_search_path+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9343 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9344 if test -n "$libltdl_cv_sys_search_path"; then
9346 for dir in $libltdl_cv_sys_search_path; do
9347 if test -z "$sys_search_path"; then
9348 sys_search_path="$dir"
9350 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9360 { echo "$as_me:$LINENO: checking for objdir" >&5
9361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9362 if test "${libltdl_cv_objdir+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 libltdl_cv_objdir="$objdir"
9366 if test -n "$objdir"; then
9369 rm -f .libs 2>/dev/null
9370 mkdir .libs 2>/dev/null
9371 if test -d .libs; then
9372 libltdl_cv_objdir=.libs
9374 # MS-DOS does not allow filenames that begin with a dot.
9375 libltdl_cv_objdir=_libs
9377 rmdir .libs 2>/dev/null
9381 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9382 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9384 cat >>confdefs.h <<_ACEOF
9385 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9393 # Check for command to grab the raw symbol name followed by C symbol from nm.
9394 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9395 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9396 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 # These are sane defaults that work on at least a few old systems.
9401 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9403 # Character class describing NM global symbol codes.
9404 symcode='[BCDEGRST]'
9406 # Regexp to match symbols that can be accessed directly from C.
9407 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9409 # Transform an extracted symbol line into a proper C declaration
9410 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9412 # Transform an extracted symbol line into symbol name and symbol address
9413 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'"
9415 # Define system-specific variables.
9420 cygwin* | mingw* | pw32*)
9421 symcode='[ABCDGISTW]'
9423 hpux*) # Its linker distinguishes data from code symbols
9424 if test "$host_cpu" = ia64; then
9425 symcode='[ABCDEGRST]'
9427 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9428 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'"
9431 if test "$host_cpu" = ia64; then
9432 symcode='[ABCDGIRSTW]'
9433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9434 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'"
9438 symcode='[BCDEGRST]'
9441 symcode='[BCDEGQRST]'
9452 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9460 # Handle CRLF in mingw tool chain
9464 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9468 # If we're using GNU nm, then use its standard symbol codes.
9469 case `$NM -V 2>&1` in
9470 *GNU* | *'with BFD'*)
9471 symcode='[ABCDGIRSTW]' ;;
9474 # Try without a prefix undercore, then with it.
9475 for ac_symprfx in "" "_"; do
9477 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9478 symxfrm="\\1 $ac_symprfx\\2 \\2"
9480 # Write the raw and C identifiers.
9481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9483 # Check to see that the pipe works correctly.
9487 cat > conftest.$ac_ext <<EOF
9492 void nm_test_func(){}
9496 int main(){nm_test_var='a';nm_test_func();return(0);}
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; then
9504 # Now try to grab the symbols.
9506 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9507 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && test -s "$nlist"; then
9511 # Try sorting and uniquifying the output.
9512 if sort "$nlist" | uniq > "$nlist"T; then
9513 mv -f "$nlist"T "$nlist"
9518 # Make sure that we snagged all the symbols we need.
9519 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9520 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9521 cat <<EOF > conftest.$ac_ext
9527 # Now generate the symbol file.
9528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9530 cat <<EOF >> conftest.$ac_ext
9531 #if defined (__STDC__) && __STDC__
9532 # define lt_ptr_t void *
9534 # define lt_ptr_t char *
9538 /* The mapping between symbol names and symbols. */
9543 lt_preloaded_symbols[] =
9546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9547 cat <<\EOF >> conftest.$ac_ext
9555 # Now try linking the two files.
9556 mv conftest.$ac_objext conftstm.$ac_objext
9557 lt_save_LIBS="$LIBS"
9558 lt_save_CFLAGS="$CFLAGS"
9559 LIBS="conftstm.$ac_objext"
9560 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9568 LIBS="$lt_save_LIBS"
9569 CFLAGS="$lt_save_CFLAGS"
9571 echo "cannot find nm_test_func in $nlist" >&5
9574 echo "cannot find nm_test_var in $nlist" >&5
9577 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9580 echo "$progname: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9583 rm -f conftest* conftst*
9585 # Do not use the global_symbol_pipe unless it works.
9586 if test "$pipe_works" = yes; then
9589 lt_cv_sys_global_symbol_pipe=
9595 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9596 lt_cv_sys_global_symbol_to_cdecl=
9598 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9599 { echo "$as_me:$LINENO: result: failed" >&5
9600 echo "${ECHO_T}failed" >&6; }
9602 { echo "$as_me:$LINENO: result: ok" >&5
9603 echo "${ECHO_T}ok" >&6; }
9607 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9608 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9609 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9613 libltdl_cv_preloaded_symbols=yes
9615 libltdl_cv_preloaded_symbols=no
9619 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9620 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9621 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_PRELOADED_SYMBOLS 1
9632 ac_cpp='$CPP $CPPFLAGS'
9633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9638 { echo "$as_me:$LINENO: checking for shl_load" >&5
9639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9640 if test "${ac_cv_func_shl_load+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9651 #define shl_load innocuous_shl_load
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char shl_load (); below.
9655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9656 <limits.h> exists even on freestanding compilers. */
9659 # include <limits.h>
9661 # include <assert.h>
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined __stub_shl_load || defined __stub___shl_load
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_try") 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_cv_func_shl_load=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_cv_func_shl_load=no
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9733 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9735 if test $ac_cv_func_shl_load = yes; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_SHL_LOAD 1
9742 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9743 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9744 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 ac_check_lib_save_LIBS=$LIBS
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_lib_dld_shl_load=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_lib_dld_shl_load=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9817 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9818 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9819 if test $ac_cv_lib_dld_shl_load = yes; then
9821 cat >>confdefs.h <<\_ACEOF
9822 #define HAVE_SHL_LOAD 1
9825 LIBADD_DL="$LIBADD_DL -ldld"
9827 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9828 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 ac_check_lib_save_LIBS=$LIBS
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_link") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_lib_dl_dlopen=yes
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_cv_lib_dl_dlopen=no
9898 rm -f core conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9904 if test $ac_cv_lib_dl_dlopen = yes; then
9906 cat >>confdefs.h <<\_ACEOF
9907 #define HAVE_LIBDL 1
9910 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9945 { (case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_try") 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_LIBDL 1
9968 libltdl_cv_func_dlopen="yes"
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9974 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 ac_check_lib_save_LIBS=$LIBS
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017 { (case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_try") 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_svld_dlopen=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_svld_dlopen=no
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10049 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10050 if test $ac_cv_lib_svld_dlopen = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_LIBDL 1
10056 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10058 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10059 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10060 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_check_lib_save_LIBS=$LIBS
10065 cat >conftest.$ac_ext <<_ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10072 /* Override any GCC internal prototype to avoid an error.
10073 Use char because int might match the return type of a GCC
10074 builtin and then its argument prototype would still apply. */
10082 return dld_link ();
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10102 { (case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_try") 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest$ac_exeext'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_cv_lib_dld_dld_link=yes
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_cv_lib_dld_dld_link=no
10129 rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10134 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10135 if test $ac_cv_lib_dld_dld_link = yes; then
10137 cat >>confdefs.h <<\_ACEOF
10141 LIBADD_DL="$LIBADD_DL -ldld"
10143 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10144 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10145 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10156 #define _dyld_func_lookup innocuous__dyld_func_lookup
10158 /* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char _dyld_func_lookup (); below.
10160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10161 <limits.h> exists even on freestanding compilers. */
10164 # include <limits.h>
10166 # include <assert.h>
10169 #undef _dyld_func_lookup
10171 /* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10177 char _dyld_func_lookup ();
10178 /* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10188 return _dyld_func_lookup ();
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10202 grep -v '^ *+' conftest.er1 >conftest.err
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10208 { (case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_try") 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_func__dyld_func_lookup=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_cv_func__dyld_func_lookup=no
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10238 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10239 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10240 if test $ac_cv_func__dyld_func_lookup = yes; then
10242 cat >>confdefs.h <<\_ACEOF
10243 #define HAVE_DYLD 1
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10269 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10271 lt_save_LIBS="$LIBS"
10272 LIBS="$LIBS $LIBADD_DL"
10274 for ac_func in dlerror
10276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10290 #define $ac_func innocuous_$ac_func
10292 /* System header to define __stub macros and hopefully few prototypes,
10293 which can conflict with char $ac_func (); below.
10294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10295 <limits.h> exists even on freestanding compilers. */
10298 # include <limits.h>
10300 # include <assert.h>
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10312 /* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315 #if defined __stub_$ac_func || defined __stub___$ac_func
10322 return $ac_func ();
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10342 { (case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_try") 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 eval "$as_ac_var=yes"
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 eval "$as_ac_var=no"
10369 rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10372 ac_res=`eval echo '${'$as_ac_var'}'`
10373 { echo "$as_me:$LINENO: result: $ac_res" >&5
10374 echo "${ECHO_T}$ac_res" >&6; }
10375 if test `eval echo '${'$as_ac_var'}'` = yes; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10383 LIBS="$lt_save_LIBS"
10386 ac_cpp='$CPP $CPPFLAGS'
10387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10394 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10395 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 ac_cv_sys_symbol_underscore=no
10399 cat > conftest.$ac_ext <<EOF
10400 void nm_test_func(){}
10401 int main(){nm_test_func;return 0;}
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
10408 # Now try to grab the symbols.
10409 ac_nlist=conftest.nm
10410 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s "$ac_nlist"; then
10415 # See whether the symbols have a leading underscore.
10416 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10417 ac_cv_sys_symbol_underscore=yes
10419 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10422 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10426 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10429 echo "configure: failed program was:" >&5
10435 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10436 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10439 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10440 if test x"$libltdl_cv_func_dlopen" = xyes ||
10441 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10442 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10443 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10444 if test "${libltdl_cv_need_uscore+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 libltdl_cv_need_uscore=unknown
10449 LIBS="$LIBS $LIBADD_DL"
10450 if test "$cross_compiling" = yes; then :
10451 libltdl_cv_need_uscore=cross
10453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10454 lt_status=$lt_dlunknown
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10466 # define LT_DLGLOBAL RTLD_GLOBAL
10469 # define LT_DLGLOBAL DL_GLOBAL
10471 # define LT_DLGLOBAL 0
10475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10476 find out it does not work in some platform. */
10477 #ifndef LT_DLLAZY_OR_NOW
10479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10482 # define LT_DLLAZY_OR_NOW DL_LAZY
10485 # define LT_DLLAZY_OR_NOW RTLD_NOW
10488 # define LT_DLLAZY_OR_NOW DL_NOW
10490 # define LT_DLLAZY_OR_NOW 0
10498 extern "C" void exit (int);
10501 void fnord() { int i=42;}
10504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10505 int status = $lt_dlunknown;
10509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10511 /* dlclose (self); */
10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520 (eval $ac_link) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10524 (./conftest; exit; ) >&5 2>/dev/null
10526 case x$lt_status in
10527 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10528 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10529 x$lt_dlunknown|x*) ;;
10532 # compilation failed
10541 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10542 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10546 if test x"$libltdl_cv_need_uscore" = xyes; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define NEED_USCORE 1
10555 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10556 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10557 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 # PORTME does your system automatically load deplibs for dlopen?
10561 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10562 # For now, we just catch OSes we know something about -- in the
10563 # future, we'll try test this programmatically.
10564 libltdl_cv_sys_dlopen_deplibs=unknown
10566 aix3*|aix4.1.*|aix4.2.*)
10567 # Unknown whether this is true for these versions of AIX, but
10568 # we want this `case' here to explicitly catch those versions.
10569 libltdl_cv_sys_dlopen_deplibs=unknown
10572 libltdl_cv_sys_dlopen_deplibs=yes
10575 # Assuming the user has installed a libdl from somewhere, this is true
10576 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10577 libltdl_cv_sys_dlopen_deplibs=yes
10579 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10580 # GNU and its variants, using gnu ld.so (Glibc)
10581 libltdl_cv_sys_dlopen_deplibs=yes
10584 libltdl_cv_sys_dlopen_deplibs=yes
10587 libltdl_cv_sys_dlopen_deplibs=yes
10589 irix[12345]*|irix6.[01]*)
10590 # Catch all versions of IRIX before 6.2, and indicate that we don't
10591 # know how it worked for any of those versions.
10592 libltdl_cv_sys_dlopen_deplibs=unknown
10595 # The case above catches anything before 6.2, and it's known that
10596 # at 6.2 and later dlopen does load deplibs.
10597 libltdl_cv_sys_dlopen_deplibs=yes
10600 libltdl_cv_sys_dlopen_deplibs=yes
10603 libltdl_cv_sys_dlopen_deplibs=yes
10606 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10607 # it did *not* use an RPATH in a shared library to find objects the
10608 # library depends on, so we explicitly say `no'.
10609 libltdl_cv_sys_dlopen_deplibs=no
10611 osf5.0|osf5.0a|osf5.1)
10612 # dlopen *does* load deplibs and with the right loader patch applied
10613 # it even uses RPATH in a shared library to search for shared objects
10614 # that the library depends on, but there's no easy way to know if that
10615 # patch is installed. Since this is the case, all we can really
10616 # say is unknown -- it depends on the patch being installed. If
10617 # it is, this changes to `yes'. Without it, it would be `no'.
10618 libltdl_cv_sys_dlopen_deplibs=unknown
10621 # the two cases above should catch all versions of osf <= 5.1. Read
10622 # the comments above for what we know about them.
10623 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10624 # is used to find them so we can finally say `yes'.
10625 libltdl_cv_sys_dlopen_deplibs=yes
10628 libltdl_cv_sys_dlopen_deplibs=yes
10630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10631 libltdl_cv_sys_dlopen_deplibs=yes
10636 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10637 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10638 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define LTDL_DLOPEN_DEPLIBS 1
10647 for ac_header in argz.h
10649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 ac_res=`eval echo '${'$as_ac_Header'}'`
10657 { echo "$as_me:$LINENO: result: $ac_res" >&5
10658 echo "${ECHO_T}$ac_res" >&6; }
10660 # Is the header compilable?
10661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 $ac_includes_default
10670 #include <$ac_header>
10672 rm -f conftest.$ac_objext
10673 if { (ac_try="$ac_compile"
10674 case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_compile") 2>conftest.er1
10681 grep -v '^ *+' conftest.er1 >conftest.err
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
10686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10687 { (case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_try") 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest.$ac_objext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_header_compiler=yes
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_header_compiler=no
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716 echo "${ECHO_T}$ac_header_compiler" >&6; }
10718 # Is the header present?
10719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #include <$ac_header>
10729 if { (ac_try="$ac_cpp conftest.$ac_ext"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } >/dev/null; then
10742 if test -s conftest.err; then
10743 ac_cpp_err=$ac_c_preproc_warn_flag
10744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10751 if test -z "$ac_cpp_err"; then
10752 ac_header_preproc=yes
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10757 ac_header_preproc=no
10760 rm -f conftest.err conftest.$ac_ext
10761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10762 echo "${ECHO_T}$ac_header_preproc" >&6; }
10764 # So? What about this header?
10765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10771 ac_header_preproc=yes
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10787 ## ----------------------------------- ##
10788 ## Report this to llvmbugs@cs.uiuc.edu ##
10789 ## ----------------------------------- ##
10791 ) | sed "s/^/$as_me: WARNING: /" >&2
10794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 eval "$as_ac_Header=\$ac_header_preproc"
10801 ac_res=`eval echo '${'$as_ac_Header'}'`
10802 { echo "$as_me:$LINENO: result: $ac_res" >&5
10803 echo "${ECHO_T}$ac_res" >&6; }
10806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10807 cat >>confdefs.h <<_ACEOF
10808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816 { echo "$as_me:$LINENO: checking for error_t" >&5
10817 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10818 if test "${ac_cv_type_error_t+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10831 typedef error_t ac__type_new_;
10835 if ((ac__type_new_ *) 0)
10837 if (sizeof (ac__type_new_))
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_compile") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10858 { (case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_try") 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 ac_cv_type_error_t=yes
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 ac_cv_type_error_t=no
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10888 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10889 if test $ac_cv_type_error_t = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define HAVE_ERROR_T 1
10898 cat >>confdefs.h <<\_ACEOF
10899 #define error_t int
10910 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10934 # include <limits.h>
10936 # include <assert.h>
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10958 return $ac_func ();
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_try") 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 eval "$as_ac_var=yes"
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 eval "$as_ac_var=no"
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11008 ac_res=`eval echo '${'$as_ac_var'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11011 if test `eval echo '${'$as_ac_var'}'` = yes; then
11012 cat >>confdefs.h <<_ACEOF
11013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11046 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11060 # Is the header compilable?
11061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 #include <$ac_header>
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_header_compiler=no
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116 echo "${ECHO_T}$ac_header_compiler" >&6; }
11118 # Is the header present?
11119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <$ac_header>
11129 if { (ac_try="$ac_cpp conftest.$ac_ext"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11151 if test -z "$ac_cpp_err"; then
11152 ac_header_preproc=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_preproc=no
11160 rm -f conftest.err conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 echo "${ECHO_T}$ac_header_preproc" >&6; }
11164 # So? What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11187 ## ----------------------------------- ##
11188 ## Report this to llvmbugs@cs.uiuc.edu ##
11189 ## ----------------------------------- ##
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 eval "$as_ac_Header=\$ac_header_preproc"
11201 ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203 echo "${ECHO_T}$ac_res" >&6; }
11206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11219 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 ac_res=`eval echo '${'$as_ac_Header'}'`
11229 { echo "$as_me:$LINENO: result: $ac_res" >&5
11230 echo "${ECHO_T}$ac_res" >&6; }
11232 # Is the header compilable?
11233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 $ac_includes_default
11242 #include <$ac_header>
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259 { (case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_try") 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11278 ac_header_compiler=yes
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 ac_header_compiler=no
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11288 echo "${ECHO_T}$ac_header_compiler" >&6; }
11290 # Is the header present?
11291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <$ac_header>
11301 if { (ac_try="$ac_cpp conftest.$ac_ext"
11302 case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } >/dev/null; then
11314 if test -s conftest.err; then
11315 ac_cpp_err=$ac_c_preproc_warn_flag
11316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323 if test -z "$ac_cpp_err"; then
11324 ac_header_preproc=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_header_preproc=no
11332 rm -f conftest.err conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11334 echo "${ECHO_T}$ac_header_preproc" >&6; }
11336 # So? What about this header?
11337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11343 ac_header_preproc=yes
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11359 ## ----------------------------------- ##
11360 ## Report this to llvmbugs@cs.uiuc.edu ##
11361 ## ----------------------------------- ##
11363 ) | sed "s/^/$as_me: WARNING: /" >&2
11366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 eval "$as_ac_Header=\$ac_header_preproc"
11373 ac_res=`eval echo '${'$as_ac_Header'}'`
11374 { echo "$as_me:$LINENO: result: $ac_res" >&5
11375 echo "${ECHO_T}$ac_res" >&6; }
11378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389 for ac_header in string.h strings.h
11391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 ac_res=`eval echo '${'$as_ac_Header'}'`
11399 { echo "$as_me:$LINENO: result: $ac_res" >&5
11400 echo "${ECHO_T}$ac_res" >&6; }
11402 # Is the header compilable?
11403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 #include <$ac_header>
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_compile") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_try") 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_header_compiler=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_compiler=no
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458 echo "${ECHO_T}$ac_header_compiler" >&6; }
11460 # Is the header present?
11461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <$ac_header>
11471 if { (ac_try="$ac_cpp conftest.$ac_ext"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } >/dev/null; then
11484 if test -s conftest.err; then
11485 ac_cpp_err=$ac_c_preproc_warn_flag
11486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11493 if test -z "$ac_cpp_err"; then
11494 ac_header_preproc=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_preproc=no
11502 rm -f conftest.err conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6; }
11506 # So? What about this header?
11507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513 ac_header_preproc=yes
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11529 ## ----------------------------------- ##
11530 ## Report this to llvmbugs@cs.uiuc.edu ##
11531 ## ----------------------------------- ##
11533 ) | sed "s/^/$as_me: WARNING: /" >&2
11536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 eval "$as_ac_Header=\$ac_header_preproc"
11543 ac_res=`eval echo '${'$as_ac_Header'}'`
11544 { echo "$as_me:$LINENO: result: $ac_res" >&5
11545 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560 for ac_func in strchr index
11562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11576 #define $ac_func innocuous_$ac_func
11578 /* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func (); below.
11580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11581 <limits.h> exists even on freestanding compilers. */
11584 # include <limits.h>
11586 # include <assert.h>
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11598 /* The GNU C library defines this for functions which it implements
11599 to always fail with ENOSYS. Some functions are actually named
11600 something starting with __ and the normal name is an alias. */
11601 #if defined __stub_$ac_func || defined __stub___$ac_func
11608 return $ac_func ();
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (ac_try="$ac_link"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 eval "$as_ac_var=no"
11655 rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11658 ac_res=`eval echo '${'$as_ac_var'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_var'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 for ac_func in strrchr rindex
11673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11687 #define $ac_func innocuous_$ac_func
11689 /* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below.
11691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 <limits.h> exists even on freestanding compilers. */
11695 # include <limits.h>
11697 # include <assert.h>
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11709 /* The GNU C library defines this for functions which it implements
11710 to always fail with ENOSYS. Some functions are actually named
11711 something starting with __ and the normal name is an alias. */
11712 #if defined __stub_$ac_func || defined __stub___$ac_func
11719 return $ac_func ();
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 eval "$as_ac_var=yes"
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 eval "$as_ac_var=no"
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11769 ac_res=`eval echo '${'$as_ac_var'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782 for ac_func in memcpy bcopy
11784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11798 #define $ac_func innocuous_$ac_func
11800 /* System header to define __stub macros and hopefully few prototypes,
11801 which can conflict with char $ac_func (); below.
11802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803 <limits.h> exists even on freestanding compilers. */
11806 # include <limits.h>
11808 # include <assert.h>
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11820 /* The GNU C library defines this for functions which it implements
11821 to always fail with ENOSYS. Some functions are actually named
11822 something starting with __ and the normal name is an alias. */
11823 #if defined __stub_$ac_func || defined __stub___$ac_func
11830 return $ac_func ();
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (ac_try="$ac_link"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_link") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 eval "$as_ac_var=yes"
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 eval "$as_ac_var=no"
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11880 ac_res=`eval echo '${'$as_ac_var'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882 echo "${ECHO_T}$ac_res" >&6; }
11883 if test `eval echo '${'$as_ac_var'}'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893 for ac_func in memmove strcmp
11895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11917 # include <limits.h>
11919 # include <assert.h>
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 return $ac_func ();
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_link") 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11961 { (case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_try") 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 eval "$as_ac_var=yes"
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 eval "$as_ac_var=no"
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11991 ac_res=`eval echo '${'$as_ac_var'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_var'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005 for ac_func in closedir opendir readdir
12007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 cat >conftest.$ac_ext <<_ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12021 #define $ac_func innocuous_$ac_func
12023 /* System header to define __stub macros and hopefully few prototypes,
12024 which can conflict with char $ac_func (); below.
12025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12026 <limits.h> exists even on freestanding compilers. */
12029 # include <limits.h>
12031 # include <assert.h>
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12043 /* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046 #if defined __stub_$ac_func || defined __stub___$ac_func
12053 return $ac_func ();
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12067 grep -v '^ *+' conftest.er1 >conftest.err
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 eval "$as_ac_var=yes"
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 eval "$as_ac_var=no"
12100 rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12103 ac_res=`eval echo '${'$as_ac_var'}'`
12104 { echo "$as_me:$LINENO: result: $ac_res" >&5
12105 echo "${ECHO_T}$ac_res" >&6; }
12106 if test `eval echo '${'$as_ac_var'}'` = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12117 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12130 if test "$GCC" != "yes" && test "$ICC" != "yes"
12132 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12133 echo "$as_me: error: gcc|icc required but not found" >&2;}
12134 { (exit 1); exit 1; }; }
12137 if test "$GXX" != "yes" && test "$IXX" != "yes"
12139 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12140 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12141 { (exit 1); exit 1; }; }
12144 if test "$GCC" = "yes"
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #if !defined(__GNUC__) || __GNUC__ < 3
12148 #error Unsupported GCC version
12152 rm -f conftest.$ac_objext
12153 if { (ac_try="$ac_compile"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_compile") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest.$ac_objext'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12192 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12193 { (exit 1); exit 1; }; }
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 if test -z "$llvm_cv_gnu_make_command"
12201 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12202 echo "$as_me: error: GNU Make required but not found" >&2;}
12203 { (exit 1); exit 1; }; }
12206 { echo "$as_me:$LINENO: result: ok" >&5
12207 echo "${ECHO_T}ok" >&6; }
12209 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12210 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12211 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12213 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12215 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12216 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12220 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12221 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_m_sin+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_check_lib_save_LIBS=$LIBS
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12264 { (case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_try") 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_lib_m_sin=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12296 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12297 if test $ac_cv_lib_m_sin = yes; then
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_LIBM 1
12306 if test "$llvm_cv_os_type" = "MingW" ; then
12308 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12309 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12310 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-limagehlp $LIBS"
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12346 { (case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_try") 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_try") 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_lib_imagehlp_main=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_lib_imagehlp_main=no
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12377 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12378 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12379 if test $ac_cv_lib_imagehlp_main = yes; then
12380 cat >>confdefs.h <<_ACEOF
12381 #define HAVE_LIBIMAGEHLP 1
12384 LIBS="-limagehlp $LIBS"
12389 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12390 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12391 if test "${ac_cv_lib_psapi_main+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lpsapi $LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_link") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427 { (case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_try") 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_lib_psapi_main=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_lib_psapi_main=no
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12458 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12459 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12460 if test $ac_cv_lib_psapi_main = yes; then
12461 cat >>confdefs.h <<_ACEOF
12462 #define HAVE_LIBPSAPI 1
12465 LIBS="-lpsapi $LIBS"
12471 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12472 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_dlopen+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12499 for ac_lib in '' dl; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_search_dlopen=$ac_res
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f core conftest.err conftest.$ac_objext \
12550 if test "${ac_cv_search_dlopen+set}" = set; then
12554 if test "${ac_cv_search_dlopen+set}" = set; then
12557 ac_cv_search_dlopen=no
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12563 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12564 ac_res=$ac_cv_search_dlopen
12565 if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_DLOPEN 1
12573 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12574 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12578 if test "$llvm_cv_enable_libffi" = "yes" ; then
12579 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12580 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12581 if test "${ac_cv_search_ffi_call+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 ac_func_search_save_LIBS=$LIBS
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12602 return ffi_call ();
12607 for ac_lib in '' ffi; do
12608 if test -z "$ac_lib"; then
12609 ac_res="none required"
12612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_link") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_try") 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_search_ffi_call=$ac_res
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12656 rm -f core conftest.err conftest.$ac_objext \
12658 if test "${ac_cv_search_ffi_call+set}" = set; then
12662 if test "${ac_cv_search_ffi_call+set}" = set; then
12665 ac_cv_search_ffi_call=no
12667 rm conftest.$ac_ext
12668 LIBS=$ac_func_search_save_LIBS
12670 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12671 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12672 ac_res=$ac_cv_search_ffi_call
12673 if test "$ac_res" != no; then
12674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12676 cat >>confdefs.h <<\_ACEOF
12677 #define HAVE_FFI_CALL 1
12681 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12682 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12683 { (exit 1); exit 1; }; }
12688 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12689 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12690 if test "${ac_cv_search_mallinfo+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 ac_func_search_save_LIBS=$LIBS
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12711 return mallinfo ();
12716 for ac_lib in '' malloc; do
12717 if test -z "$ac_lib"; then
12718 ac_res="none required"
12721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_try") 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest$ac_exeext'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_cv_search_mallinfo=$ac_res
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12765 rm -f core conftest.err conftest.$ac_objext \
12767 if test "${ac_cv_search_mallinfo+set}" = set; then
12771 if test "${ac_cv_search_mallinfo+set}" = set; then
12774 ac_cv_search_mallinfo=no
12776 rm conftest.$ac_ext
12777 LIBS=$ac_func_search_save_LIBS
12779 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12780 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12781 ac_res=$ac_cv_search_mallinfo
12782 if test "$ac_res" != no; then
12783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_MALLINFO 1
12792 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12794 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12795 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12796 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 ac_check_lib_save_LIBS=$LIBS
12800 LIBS="-lpthread $LIBS"
12801 cat >conftest.$ac_ext <<_ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12814 char pthread_mutex_init ();
12818 return pthread_mutex_init ();
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (ac_try="$ac_link"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_link") 2>conftest.er1
12832 grep -v '^ *+' conftest.er1 >conftest.err
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_pthread_pthread_mutex_init=yes
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_lib_pthread_pthread_mutex_init=no
12865 rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12870 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12871 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12872 cat >>confdefs.h <<_ACEOF
12873 #define HAVE_LIBPTHREAD 1
12876 LIBS="-lpthread $LIBS"
12880 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12881 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12882 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 ac_func_search_save_LIBS=$LIBS
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12899 char pthread_mutex_lock ();
12903 return pthread_mutex_lock ();
12908 for ac_lib in '' pthread; do
12909 if test -z "$ac_lib"; then
12910 ac_res="none required"
12913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (ac_try="$ac_link"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_search_pthread_mutex_lock=$ac_res
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f core conftest.err conftest.$ac_objext \
12959 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12963 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12966 ac_cv_search_pthread_mutex_lock=no
12968 rm conftest.$ac_ext
12969 LIBS=$ac_func_search_save_LIBS
12971 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12972 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12973 ac_res=$ac_cv_search_pthread_mutex_lock
12974 if test "$ac_res" != no; then
12975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977 cat >>confdefs.h <<\_ACEOF
12978 #define HAVE_PTHREAD_MUTEX_LOCK 1
12983 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12984 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12985 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 ac_func_search_save_LIBS=$LIBS
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13002 char pthread_rwlock_init ();
13006 return pthread_rwlock_init ();
13011 for ac_lib in '' pthread; do
13012 if test -z "$ac_lib"; then
13013 ac_res="none required"
13016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (ac_try="$ac_link"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_link") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13033 { (case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_try") 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_search_pthread_rwlock_init=$ac_res
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13060 rm -f core conftest.err conftest.$ac_objext \
13062 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13066 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13069 ac_cv_search_pthread_rwlock_init=no
13071 rm conftest.$ac_ext
13072 LIBS=$ac_func_search_save_LIBS
13074 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13075 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13076 ac_res=$ac_cv_search_pthread_rwlock_init
13077 if test "$ac_res" != no; then
13078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080 cat >>confdefs.h <<\_ACEOF
13081 #define HAVE_PTHREAD_RWLOCK_INIT 1
13086 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13087 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13088 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 ac_func_search_save_LIBS=$LIBS
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13105 char pthread_getspecific ();
13109 return pthread_getspecific ();
13114 for ac_lib in '' pthread; do
13115 if test -z "$ac_lib"; then
13116 ac_res="none required"
13119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_link") 2>conftest.er1
13130 grep -v '^ *+' conftest.er1 >conftest.err
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13136 { (case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_try") 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_search_pthread_getspecific=$ac_res
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13163 rm -f core conftest.err conftest.$ac_objext \
13165 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13169 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13172 ac_cv_search_pthread_getspecific=no
13174 rm conftest.$ac_ext
13175 LIBS=$ac_func_search_save_LIBS
13177 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13178 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13179 ac_res=$ac_cv_search_pthread_getspecific
13180 if test "$ac_res" != no; then
13181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13183 cat >>confdefs.h <<\_ACEOF
13184 #define HAVE_PTHREAD_GETSPECIFIC 1
13192 # Check whether --with-udis86 was given.
13193 if test "${with_udis86+set}" = set; then
13194 withval=$with_udis86;
13199 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13202 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13203 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13204 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-ludis86 $LIBS"
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13216 /* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13231 rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (ac_try="$ac_link"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_lib_udis86_ud_init=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_cv_lib_udis86_ud_init=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13278 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13279 if test $ac_cv_lib_udis86_ud_init = yes; then
13280 cat >>confdefs.h <<_ACEOF
13281 #define HAVE_LIBUDIS86 1
13284 LIBS="-ludis86 $LIBS"
13288 echo "Error! You need to have libudis86 around."
13300 cat >>confdefs.h <<_ACEOF
13301 #define USE_UDIS86 $USE_UDIS86
13306 # Check whether --with-oprofile was given.
13307 if test "${with_oprofile+set}" = set; then
13308 withval=$with_oprofile;
13312 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13313 no) llvm_cv_oppath=
13316 *) llvm_cv_oppath="${withval}/lib/oprofile"
13317 CPPFLAGS="-I${withval}/include";;
13319 if test -n "$llvm_cv_oppath" ; then
13320 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13321 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13322 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13323 if test "${ac_cv_search_bfd_init+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 ac_func_search_save_LIBS=$LIBS
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13344 return bfd_init ();
13349 for ac_lib in '' bfd; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_search_bfd_init=$ac_res
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13398 rm -f core conftest.err conftest.$ac_objext \
13400 if test "${ac_cv_search_bfd_init+set}" = set; then
13404 if test "${ac_cv_search_bfd_init+set}" = set; then
13407 ac_cv_search_bfd_init=no
13409 rm conftest.$ac_ext
13410 LIBS=$ac_func_search_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13413 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13414 ac_res=$ac_cv_search_bfd_init
13415 if test "$ac_res" != no; then
13416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13420 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13421 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13422 if test "${ac_cv_search_op_open_agent+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 ac_func_search_save_LIBS=$LIBS
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13433 /* Override any GCC internal prototype to avoid an error.
13434 Use char because int might match the return type of a GCC
13435 builtin and then its argument prototype would still apply. */
13439 char op_open_agent ();
13443 return op_open_agent ();
13448 for ac_lib in '' opagent; do
13449 if test -z "$ac_lib"; then
13450 ac_res="none required"
13453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_link") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1 >conftest.err
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_cv_search_op_open_agent=$ac_res
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f core conftest.err conftest.$ac_objext \
13499 if test "${ac_cv_search_op_open_agent+set}" = set; then
13503 if test "${ac_cv_search_op_open_agent+set}" = set; then
13506 ac_cv_search_op_open_agent=no
13508 rm conftest.$ac_ext
13509 LIBS=$ac_func_search_save_LIBS
13511 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13512 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13513 ac_res=$ac_cv_search_op_open_agent
13514 if test "$ac_res" != no; then
13515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519 echo "Error! You need to have libopagent around."
13524 if test "${ac_cv_header_opagent_h+set}" = set; then
13525 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13526 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13527 if test "${ac_cv_header_opagent_h+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13531 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13533 # Is the header compilable?
13534 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13535 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13543 #include <opagent.h>
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_header_compiler=no
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6; }
13591 # Is the header present?
13592 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13593 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <opagent.h>
13602 if { (ac_try="$ac_cpp conftest.$ac_ext"
13603 case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13610 grep -v '^ *+' conftest.er1 >conftest.err
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } >/dev/null; then
13615 if test -s conftest.err; then
13616 ac_cpp_err=$ac_c_preproc_warn_flag
13617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13624 if test -z "$ac_cpp_err"; then
13625 ac_header_preproc=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_header_preproc=no
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13637 # So? What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13647 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13660 ## ----------------------------------- ##
13661 ## Report this to llvmbugs@cs.uiuc.edu ##
13662 ## ----------------------------------- ##
13664 ) | sed "s/^/$as_me: WARNING: /" >&2
13667 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13668 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_header_opagent_h+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 ac_cv_header_opagent_h=$ac_header_preproc
13674 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13675 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13678 if test $ac_cv_header_opagent_h = yes; then
13682 echo "Error! You need to have opagent.h around."
13698 cat >>confdefs.h <<_ACEOF
13699 #define USE_OPROFILE $USE_OPROFILE
13709 ac_header_dirent=no
13710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13711 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13712 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13713 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 #include <sys/types.h>
13735 rm -f conftest.$ac_objext
13736 if { (ac_try="$ac_compile"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 eval "$as_ac_Header=yes"
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 eval "$as_ac_Header=no"
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 ac_res=`eval echo '${'$as_ac_Header'}'`
13780 { echo "$as_me:$LINENO: result: $ac_res" >&5
13781 echo "${ECHO_T}$ac_res" >&6; }
13782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13783 cat >>confdefs.h <<_ACEOF
13784 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13787 ac_header_dirent=$ac_hdr; break
13791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13792 if test $ac_header_dirent = dirent.h; then
13793 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13794 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_opendir+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13821 for ac_lib in '' dir; do
13822 if test -z "$ac_lib"; then
13823 ac_res="none required"
13826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_search_opendir=$ac_res
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13870 rm -f core conftest.err conftest.$ac_objext \
13872 if test "${ac_cv_search_opendir+set}" = set; then
13876 if test "${ac_cv_search_opendir+set}" = set; then
13879 ac_cv_search_opendir=no
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13886 ac_res=$ac_cv_search_opendir
13887 if test "$ac_res" != no; then
13888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13895 if test "${ac_cv_search_opendir+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 ac_func_search_save_LIBS=$LIBS
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13921 for ac_lib in '' x; do
13922 if test -z "$ac_lib"; then
13923 ac_res="none required"
13926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_cv_search_opendir=$ac_res
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13970 rm -f core conftest.err conftest.$ac_objext \
13972 if test "${ac_cv_search_opendir+set}" = set; then
13976 if test "${ac_cv_search_opendir+set}" = set; then
13979 ac_cv_search_opendir=no
13981 rm conftest.$ac_ext
13982 LIBS=$ac_func_search_save_LIBS
13984 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13985 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13986 ac_res=$ac_cv_search_opendir
13987 if test "$ac_res" != no; then
13988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13995 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13996 if test "${ac_cv_header_mmap_anon+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 ac_cpp='$CPP $CPPFLAGS'
14001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 #include <sys/mman.h>
14012 #include <unistd.h>
14017 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_header_mmap_anon=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_cv_header_mmap_anon=no
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 ac_cpp='$CPP $CPPFLAGS'
14067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14073 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14074 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14075 if test "$ac_cv_header_mmap_anon" = yes; then
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_MMAP_ANONYMOUS 1
14083 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14084 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14085 if test "${ac_cv_header_stat_broken+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 #include <sys/types.h>
14095 #include <sys/stat.h>
14097 #if defined S_ISBLK && defined S_IFDIR
14098 # if S_ISBLK (S_IFDIR)
14103 #if defined S_ISBLK && defined S_IFCHR
14104 # if S_ISBLK (S_IFCHR)
14109 #if defined S_ISLNK && defined S_IFREG
14110 # if S_ISLNK (S_IFREG)
14115 #if defined S_ISSOCK && defined S_IFREG
14116 # if S_ISSOCK (S_IFREG)
14122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14123 $EGREP "You lose" >/dev/null 2>&1; then
14124 ac_cv_header_stat_broken=yes
14126 ac_cv_header_stat_broken=no
14131 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14132 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14133 if test $ac_cv_header_stat_broken = yes; then
14135 cat >>confdefs.h <<\_ACEOF
14136 #define STAT_MACROS_BROKEN 1
14141 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14143 if test "${ac_cv_header_stdc+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 #include <stdlib.h>
14153 #include <stdarg.h>
14154 #include <string.h>
14165 rm -f conftest.$ac_objext
14166 if { (ac_try="$ac_compile"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_compile") 2>conftest.er1
14174 grep -v '^ *+' conftest.er1 >conftest.err
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_cv_header_stdc=yes
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_header_stdc=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 if test $ac_cv_header_stdc = yes; then
14210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 #include <string.h>
14220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14221 $EGREP "memchr" >/dev/null 2>&1; then
14224 ac_cv_header_stdc=no
14230 if test $ac_cv_header_stdc = yes; then
14231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <stdlib.h>
14241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14242 $EGREP "free" >/dev/null 2>&1; then
14245 ac_cv_header_stdc=no
14251 if test $ac_cv_header_stdc = yes; then
14252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14253 if test "$cross_compiling" = yes; then
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14263 #include <stdlib.h>
14264 #if ((' ' & 0x0FF) == 0x020)
14265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14268 # define ISLOWER(c) \
14269 (('a' <= (c) && (c) <= 'i') \
14270 || ('j' <= (c) && (c) <= 'r') \
14271 || ('s' <= (c) && (c) <= 'z'))
14272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14280 for (i = 0; i < 256; i++)
14281 if (XOR (islower (i), ISLOWER (i))
14282 || toupper (i) != TOUPPER (i))
14287 rm -f conftest$ac_exeext
14288 if { (ac_try="$ac_link"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14309 echo "$as_me: program exited with status $ac_status" >&5
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ( exit $ac_status )
14314 ac_cv_header_stdc=no
14316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14323 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14324 if test $ac_cv_header_stdc = yes; then
14326 cat >>confdefs.h <<\_ACEOF
14327 #define STDC_HEADERS 1
14332 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14333 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14334 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14344 #include <sys/wait.h>
14345 #ifndef WEXITSTATUS
14346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14362 rm -f conftest.$ac_objext
14363 if { (ac_try="$ac_compile"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_compile") 2>conftest.er1
14371 grep -v '^ *+' conftest.er1 >conftest.err
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
14376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14377 { (case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_try") 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest.$ac_objext'
14387 { (case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_try") 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_header_sys_wait_h=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_cv_header_sys_wait_h=no
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14407 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14408 if test $ac_cv_header_sys_wait_h = yes; then
14410 cat >>confdefs.h <<\_ACEOF
14411 #define HAVE_SYS_WAIT_H 1
14416 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14417 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14418 if test "${ac_cv_header_time+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <sys/types.h>
14428 #include <sys/time.h>
14434 if ((struct tm *) 0)
14440 rm -f conftest.$ac_objext
14441 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_header_time=yes
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_header_time=no
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14485 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14486 if test $ac_cv_header_time = yes; then
14488 cat >>confdefs.h <<\_ACEOF
14489 #define TIME_WITH_SYS_TIME 1
14501 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 ac_res=`eval echo '${'$as_ac_Header'}'`
14511 { echo "$as_me:$LINENO: result: $ac_res" >&5
14512 echo "${ECHO_T}$ac_res" >&6; }
14514 # Is the header compilable?
14515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 $ac_includes_default
14524 #include <$ac_header>
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_compile") 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 ac_header_compiler=yes
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_header_compiler=no
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14570 echo "${ECHO_T}$ac_header_compiler" >&6; }
14572 # Is the header present?
14573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <$ac_header>
14583 if { (ac_try="$ac_cpp conftest.$ac_ext"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } >/dev/null; then
14596 if test -s conftest.err; then
14597 ac_cpp_err=$ac_c_preproc_warn_flag
14598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14605 if test -z "$ac_cpp_err"; then
14606 ac_header_preproc=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_header_preproc=no
14614 rm -f conftest.err conftest.$ac_ext
14615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14616 echo "${ECHO_T}$ac_header_preproc" >&6; }
14618 # So? What about this header?
14619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14625 ac_header_preproc=yes
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14641 ## ----------------------------------- ##
14642 ## Report this to llvmbugs@cs.uiuc.edu ##
14643 ## ----------------------------------- ##
14645 ) | sed "s/^/$as_me: WARNING: /" >&2
14648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 eval "$as_ac_Header=\$ac_header_preproc"
14655 ac_res=`eval echo '${'$as_ac_Header'}'`
14656 { echo "$as_me:$LINENO: result: $ac_res" >&5
14657 echo "${ECHO_T}$ac_res" >&6; }
14660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14661 cat >>confdefs.h <<_ACEOF
14662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 ac_res=`eval echo '${'$as_ac_Header'}'`
14685 { echo "$as_me:$LINENO: result: $ac_res" >&5
14686 echo "${ECHO_T}$ac_res" >&6; }
14688 # Is the header compilable?
14689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 $ac_includes_default
14698 #include <$ac_header>
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14715 { (case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_try") 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_try") 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_header_compiler=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_header_compiler=no
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <$ac_header>
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null; then
14770 if test -s conftest.err; then
14771 ac_cpp_err=$ac_c_preproc_warn_flag
14772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14779 if test -z "$ac_cpp_err"; then
14780 ac_header_preproc=yes
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_header_preproc=no
14788 rm -f conftest.err conftest.$ac_ext
14789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14790 echo "${ECHO_T}$ac_header_preproc" >&6; }
14792 # So? What about this header?
14793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14799 ac_header_preproc=yes
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14815 ## ----------------------------------- ##
14816 ## Report this to llvmbugs@cs.uiuc.edu ##
14817 ## ----------------------------------- ##
14819 ) | sed "s/^/$as_me: WARNING: /" >&2
14822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 eval "$as_ac_Header=\$ac_header_preproc"
14829 ac_res=`eval echo '${'$as_ac_Header'}'`
14830 { echo "$as_me:$LINENO: result: $ac_res" >&5
14831 echo "${ECHO_T}$ac_res" >&6; }
14834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 for ac_header in utime.h windows.h
14847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856 echo "${ECHO_T}$ac_res" >&6; }
14858 # Is the header compilable?
14859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 #include <$ac_header>
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_header_compiler=no
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914 echo "${ECHO_T}$ac_header_compiler" >&6; }
14916 # Is the header present?
14917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <$ac_header>
14927 if { (ac_try="$ac_cpp conftest.$ac_ext"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14935 grep -v '^ *+' conftest.er1 >conftest.err
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14949 if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 ac_header_preproc=no
14958 rm -f conftest.err conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960 echo "${ECHO_T}$ac_header_preproc" >&6; }
14962 # So? What about this header?
14963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14985 ## ----------------------------------- ##
14986 ## Report this to llvmbugs@cs.uiuc.edu ##
14987 ## ----------------------------------- ##
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 eval "$as_ac_Header=\$ac_header_preproc"
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15018 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 ac_res=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029 echo "${ECHO_T}$ac_res" >&6; }
15031 # Is the header compilable?
15032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 $ac_includes_default
15041 #include <$ac_header>
15043 rm -f conftest.$ac_objext
15044 if { (ac_try="$ac_compile"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_compile") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_header_compiler=yes
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_header_compiler=no
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15087 echo "${ECHO_T}$ac_header_compiler" >&6; }
15089 # Is the header present?
15090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 #include <$ac_header>
15100 if { (ac_try="$ac_cpp conftest.$ac_ext"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } >/dev/null; then
15113 if test -s conftest.err; then
15114 ac_cpp_err=$ac_c_preproc_warn_flag
15115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15122 if test -z "$ac_cpp_err"; then
15123 ac_header_preproc=yes
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 ac_header_preproc=no
15131 rm -f conftest.err conftest.$ac_ext
15132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15133 echo "${ECHO_T}$ac_header_preproc" >&6; }
15135 # So? What about this header?
15136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15142 ac_header_preproc=yes
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15158 ## ----------------------------------- ##
15159 ## Report this to llvmbugs@cs.uiuc.edu ##
15160 ## ----------------------------------- ##
15162 ) | sed "s/^/$as_me: WARNING: /" >&2
15165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 eval "$as_ac_Header=\$ac_header_preproc"
15172 ac_res=`eval echo '${'$as_ac_Header'}'`
15173 { echo "$as_me:$LINENO: result: $ac_res" >&5
15174 echo "${ECHO_T}$ac_res" >&6; }
15177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15190 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15203 # Is the header compilable?
15204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15213 #include <$ac_header>
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_header_compiler=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_header_compiler=no
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259 echo "${ECHO_T}$ac_header_compiler" >&6; }
15261 # Is the header present?
15262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <$ac_header>
15272 if { (ac_try="$ac_cpp conftest.$ac_ext"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } >/dev/null; then
15285 if test -s conftest.err; then
15286 ac_cpp_err=$ac_c_preproc_warn_flag
15287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15294 if test -z "$ac_cpp_err"; then
15295 ac_header_preproc=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_header_preproc=no
15303 rm -f conftest.err conftest.$ac_ext
15304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305 echo "${ECHO_T}$ac_header_preproc" >&6; }
15307 # So? What about this header?
15308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15314 ac_header_preproc=yes
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330 ## ----------------------------------- ##
15331 ## Report this to llvmbugs@cs.uiuc.edu ##
15332 ## ----------------------------------- ##
15334 ) | sed "s/^/$as_me: WARNING: /" >&2
15337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 eval "$as_ac_Header=\$ac_header_preproc"
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350 cat >>confdefs.h <<_ACEOF
15351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15359 for ac_header in valgrind/valgrind.h
15361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 ac_res=`eval echo '${'$as_ac_Header'}'`
15369 { echo "$as_me:$LINENO: result: $ac_res" >&5
15370 echo "${ECHO_T}$ac_res" >&6; }
15372 # Is the header compilable?
15373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15382 #include <$ac_header>
15384 rm -f conftest.$ac_objext
15385 if { (ac_try="$ac_compile"
15386 case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_compile") 2>conftest.er1
15393 grep -v '^ *+' conftest.er1 >conftest.err
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15399 { (case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_try") 2>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_header_compiler=yes
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_header_compiler=no
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15428 echo "${ECHO_T}$ac_header_compiler" >&6; }
15430 # Is the header present?
15431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 #include <$ac_header>
15441 if { (ac_try="$ac_cpp conftest.$ac_ext"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } >/dev/null; then
15454 if test -s conftest.err; then
15455 ac_cpp_err=$ac_c_preproc_warn_flag
15456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15463 if test -z "$ac_cpp_err"; then
15464 ac_header_preproc=yes
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_header_preproc=no
15472 rm -f conftest.err conftest.$ac_ext
15473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15474 echo "${ECHO_T}$ac_header_preproc" >&6; }
15476 # So? What about this header?
15477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15483 ac_header_preproc=yes
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15499 ## ----------------------------------- ##
15500 ## Report this to llvmbugs@cs.uiuc.edu ##
15501 ## ----------------------------------- ##
15503 ) | sed "s/^/$as_me: WARNING: /" >&2
15506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 eval "$as_ac_Header=\$ac_header_preproc"
15513 ac_res=`eval echo '${'$as_ac_Header'}'`
15514 { echo "$as_me:$LINENO: result: $ac_res" >&5
15515 echo "${ECHO_T}$ac_res" >&6; }
15518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15519 cat >>confdefs.h <<_ACEOF
15520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528 for ac_header in fenv.h
15530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 ac_res=`eval echo '${'$as_ac_Header'}'`
15538 { echo "$as_me:$LINENO: result: $ac_res" >&5
15539 echo "${ECHO_T}$ac_res" >&6; }
15541 # Is the header compilable?
15542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 $ac_includes_default
15551 #include <$ac_header>
15553 rm -f conftest.$ac_objext
15554 if { (ac_try="$ac_compile"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_compile") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest.$ac_objext'
15578 { (case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_try") 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15587 ac_header_compiler=yes
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ac_header_compiler=no
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15597 echo "${ECHO_T}$ac_header_compiler" >&6; }
15599 # Is the header present?
15600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 #include <$ac_header>
15610 if { (ac_try="$ac_cpp conftest.$ac_ext"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } >/dev/null; then
15623 if test -s conftest.err; then
15624 ac_cpp_err=$ac_c_preproc_warn_flag
15625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15632 if test -z "$ac_cpp_err"; then
15633 ac_header_preproc=yes
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 ac_header_preproc=no
15641 rm -f conftest.err conftest.$ac_ext
15642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15643 echo "${ECHO_T}$ac_header_preproc" >&6; }
15645 # So? What about this header?
15646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15652 ac_header_preproc=yes
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15668 ## ----------------------------------- ##
15669 ## Report this to llvmbugs@cs.uiuc.edu ##
15670 ## ----------------------------------- ##
15672 ) | sed "s/^/$as_me: WARNING: /" >&2
15675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 eval "$as_ac_Header=\$ac_header_preproc"
15682 ac_res=`eval echo '${'$as_ac_Header'}'`
15683 { echo "$as_me:$LINENO: result: $ac_res" >&5
15684 echo "${ECHO_T}$ac_res" >&6; }
15687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15688 cat >>confdefs.h <<_ACEOF
15689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15696 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15698 for ac_header in pthread.h
15700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_res=`eval echo '${'$as_ac_Header'}'`
15708 { echo "$as_me:$LINENO: result: $ac_res" >&5
15709 echo "${ECHO_T}$ac_res" >&6; }
15711 # Is the header compilable?
15712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15721 #include <$ac_header>
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler=yes
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_header_compiler=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15767 echo "${ECHO_T}$ac_header_compiler" >&6; }
15769 # Is the header present?
15770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 #include <$ac_header>
15780 if { (ac_try="$ac_cpp conftest.$ac_ext"
15781 case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15788 grep -v '^ *+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
15795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15802 if test -z "$ac_cpp_err"; then
15803 ac_header_preproc=yes
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_header_preproc=no
15811 rm -f conftest.err conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6; }
15815 # So? What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15838 ## ----------------------------------- ##
15839 ## Report this to llvmbugs@cs.uiuc.edu ##
15840 ## ----------------------------------- ##
15842 ) | sed "s/^/$as_me: WARNING: /" >&2
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 eval "$as_ac_Header=\$ac_header_preproc"
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15875 if test "$llvm_cv_enable_libffi" = "yes" ; then
15878 for ac_header in ffi.h ffi/ffi.h
15880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15891 # Is the header compilable?
15892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15901 #include <$ac_header>
15903 rm -f conftest.$ac_objext
15904 if { (ac_try="$ac_compile"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15912 grep -v '^ *+' conftest.er1 >conftest.err
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_header_compiler=yes
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_header_compiler=no
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15947 echo "${ECHO_T}$ac_header_compiler" >&6; }
15949 # Is the header present?
15950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 #include <$ac_header>
15960 if { (ac_try="$ac_cpp conftest.$ac_ext"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null; then
15973 if test -s conftest.err; then
15974 ac_cpp_err=$ac_c_preproc_warn_flag
15975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15982 if test -z "$ac_cpp_err"; then
15983 ac_header_preproc=yes
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_header_preproc=no
15991 rm -f conftest.err conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15993 echo "${ECHO_T}$ac_header_preproc" >&6; }
15995 # So? What about this header?
15996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16002 ac_header_preproc=yes
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16018 ## ----------------------------------- ##
16019 ## Report this to llvmbugs@cs.uiuc.edu ##
16020 ## ----------------------------------- ##
16022 ) | sed "s/^/$as_me: WARNING: /" >&2
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 eval "$as_ac_Header=\$ac_header_preproc"
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16038 cat >>confdefs.h <<_ACEOF
16039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16049 for ac_header in CrashReporterClient.h
16051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 ac_res=`eval echo '${'$as_ac_Header'}'`
16059 { echo "$as_me:$LINENO: result: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16062 # Is the header compilable?
16063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 #include <$ac_header>
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_header_compiler=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_compiler=no
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16131 if { (ac_try="$ac_cpp conftest.$ac_ext"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null; then
16144 if test -s conftest.err; then
16145 ac_cpp_err=$ac_c_preproc_warn_flag
16146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16153 if test -z "$ac_cpp_err"; then
16154 ac_header_preproc=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_header_preproc=no
16162 rm -f conftest.err conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 echo "${ECHO_T}$ac_header_preproc" >&6; }
16166 # So? What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16189 ## ----------------------------------- ##
16190 ## Report this to llvmbugs@cs.uiuc.edu ##
16191 ## ----------------------------------- ##
16193 ) | sed "s/^/$as_me: WARNING: /" >&2
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 eval "$as_ac_Header=\$ac_header_preproc"
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16218 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16219 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 extern const char *__crashreporter_info__;
16228 __crashreporter_info__ = "test";
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_link") 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 { echo "$as_me:$LINENO: result: yes" >&5
16268 echo "${ECHO_T}yes" >&6; }
16270 cat >>confdefs.h <<\_ACEOF
16271 #define HAVE_CRASHREPORTER_INFO 1
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_CRASHREPORTER_INFO 0
16287 rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16293 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16294 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16295 if test "${ac_cv_huge_val_sanity+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 ac_cpp='$CXXCPP $CPPFLAGS'
16301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16305 ac_save_CXXFLAGS=$CXXFLAGS
16307 if test "$cross_compiling" = yes; then
16308 ac_cv_huge_val_sanity=yes
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16320 double x = HUGE_VAL; return x != x;
16325 rm -f conftest$ac_exeext
16326 if { (ac_try="$ac_link"
16327 case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_link") 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_huge_val_sanity=yes
16347 echo "$as_me: program exited with status $ac_status" >&5
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ( exit $ac_status )
16352 ac_cv_huge_val_sanity=no
16354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16358 CXXFLAGS=$ac_save_CXXFLAGS
16360 ac_cpp='$CPP $CPPFLAGS'
16361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16368 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16369 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16372 { echo "$as_me:$LINENO: checking for pid_t" >&5
16373 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16374 if test "${ac_cv_type_pid_t+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 $ac_includes_default
16384 typedef pid_t ac__type_new_;
16388 if ((ac__type_new_ *) 0)
16390 if (sizeof (ac__type_new_))
16396 rm -f conftest.$ac_objext
16397 if { (ac_try="$ac_compile"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_type_pid_t=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_cv_type_pid_t=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16441 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16442 if test $ac_cv_type_pid_t = yes; then
16446 cat >>confdefs.h <<_ACEOF
16452 { echo "$as_me:$LINENO: checking for size_t" >&5
16453 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16454 if test "${ac_cv_type_size_t+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16464 typedef size_t ac__type_new_;
16468 if ((ac__type_new_ *) 0)
16470 if (sizeof (ac__type_new_))
16476 rm -f conftest.$ac_objext
16477 if { (ac_try="$ac_compile"
16478 case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_compile") 2>conftest.er1
16485 grep -v '^ *+' conftest.er1 >conftest.err
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_cv_type_size_t=yes
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 ac_cv_type_size_t=no
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16521 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16522 if test $ac_cv_type_size_t = yes; then
16526 cat >>confdefs.h <<_ACEOF
16527 #define size_t unsigned int
16533 cat >>confdefs.h <<_ACEOF
16534 #define RETSIGTYPE void
16537 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16538 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16539 if test "${ac_cv_struct_tm+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 #include <sys/types.h>
16554 struct tm *tp; tp->tm_sec;
16559 rm -f conftest.$ac_objext
16560 if { (ac_try="$ac_compile"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_compile") 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_struct_tm=time.h
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 ac_cv_struct_tm=sys/time.h
16601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16604 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16605 if test $ac_cv_struct_tm = sys/time.h; then
16607 cat >>confdefs.h <<\_ACEOF
16608 #define TM_IN_SYS_TIME 1
16613 { echo "$as_me:$LINENO: checking for int64_t" >&5
16614 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16615 if test "${ac_cv_type_int64_t+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.$ac_ext <<_ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 $ac_includes_default
16625 typedef int64_t ac__type_new_;
16629 if ((ac__type_new_ *) 0)
16631 if (sizeof (ac__type_new_))
16637 rm -f conftest.$ac_objext
16638 if { (ac_try="$ac_compile"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_compile") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest.$ac_objext'
16662 { (case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_try") 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_type_int64_t=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_type_int64_t=no
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16682 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16683 if test $ac_cv_type_int64_t = yes; then
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_INT64_T 1
16691 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16692 echo "$as_me: error: Type int64_t required but not found" >&2;}
16693 { (exit 1); exit 1; }; }
16696 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16697 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16698 if test "${ac_cv_type_uint64_t+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 typedef uint64_t ac__type_new_;
16712 if ((ac__type_new_ *) 0)
16714 if (sizeof (ac__type_new_))
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_compile") 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16735 { (case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_try") 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_try") 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_type_uint64_t=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_type_uint64_t=no
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16765 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16766 if test $ac_cv_type_uint64_t = yes; then
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_UINT64_T 1
16774 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16775 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16776 if test "${ac_cv_type_u_int64_t+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16786 typedef u_int64_t ac__type_new_;
16790 if ((ac__type_new_ *) 0)
16792 if (sizeof (ac__type_new_))
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_cv_type_u_int64_t=yes
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_cv_type_u_int64_t=no
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16843 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16844 if test $ac_cv_type_u_int64_t = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_U_INT64_T 1
16852 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16853 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16854 { (exit 1); exit 1; }; }
16868 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884 #define $ac_func innocuous_$ac_func
16886 /* System header to define __stub macros and hopefully few prototypes,
16887 which can conflict with char $ac_func (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
16892 # include <limits.h>
16894 # include <assert.h>
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16906 /* The GNU C library defines this for functions which it implements
16907 to always fail with ENOSYS. Some functions are actually named
16908 something starting with __ and the normal name is an alias. */
16909 #if defined __stub_$ac_func || defined __stub___$ac_func
16916 return $ac_func ();
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_link") 2>conftest.er1
16930 grep -v '^ *+' conftest.er1 >conftest.err
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_try") 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 eval "$as_ac_var=yes"
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 eval "$as_ac_var=no"
16963 rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16966 ac_res=`eval echo '${'$as_ac_var'}'`
16967 { echo "$as_me:$LINENO: result: $ac_res" >&5
16968 echo "${ECHO_T}$ac_res" >&6; }
16969 if test `eval echo '${'$as_ac_var'}'` = yes; then
16970 cat >>confdefs.h <<_ACEOF
16971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16981 for ac_func in powf fmodf strtof round
16983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define $ac_func innocuous_$ac_func
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17005 # include <limits.h>
17007 # include <assert.h>
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_$ac_func || defined __stub___$ac_func
17029 return $ac_func ();
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 eval "$as_ac_var=yes"
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 eval "$as_ac_var=no"
17076 rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17079 ac_res=`eval echo '${'$as_ac_var'}'`
17080 { echo "$as_me:$LINENO: result: $ac_res" >&5
17081 echo "${ECHO_T}$ac_res" >&6; }
17082 if test `eval echo '${'$as_ac_var'}'` = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17111 #define $ac_func innocuous_$ac_func
17113 /* System header to define __stub macros and hopefully few prototypes,
17114 which can conflict with char $ac_func (); below.
17115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116 <limits.h> exists even on freestanding compilers. */
17119 # include <limits.h>
17121 # include <assert.h>
17126 /* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
17133 /* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
17136 #if defined __stub_$ac_func || defined __stub___$ac_func
17143 return $ac_func ();
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 eval "$as_ac_var=yes"
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 eval "$as_ac_var=no"
17190 rm -f core conftest.err conftest.$ac_objext \
17191 conftest$ac_exeext conftest.$ac_ext
17193 ac_res=`eval echo '${'$as_ac_var'}'`
17194 { echo "$as_me:$LINENO: result: $ac_res" >&5
17195 echo "${ECHO_T}$ac_res" >&6; }
17196 if test `eval echo '${'$as_ac_var'}'` = yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17207 for ac_func in isatty mkdtemp mkstemp
17209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17223 #define $ac_func innocuous_$ac_func
17225 /* System header to define __stub macros and hopefully few prototypes,
17226 which can conflict with char $ac_func (); below.
17227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17228 <limits.h> exists even on freestanding compilers. */
17231 # include <limits.h>
17233 # include <assert.h>
17238 /* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17245 /* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
17248 #if defined __stub_$ac_func || defined __stub___$ac_func
17255 return $ac_func ();
17260 rm -f conftest.$ac_objext conftest$ac_exeext
17261 if { (ac_try="$ac_link"
17262 case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
17269 grep -v '^ *+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 eval "$as_ac_var=yes"
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 eval "$as_ac_var=no"
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17305 ac_res=`eval echo '${'$as_ac_var'}'`
17306 { echo "$as_me:$LINENO: result: $ac_res" >&5
17307 echo "${ECHO_T}$ac_res" >&6; }
17308 if test `eval echo '${'$as_ac_var'}'` = yes; then
17309 cat >>confdefs.h <<_ACEOF
17310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17338 #define $ac_func innocuous_$ac_func
17340 /* System header to define __stub macros and hopefully few prototypes,
17341 which can conflict with char $ac_func (); below.
17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17343 <limits.h> exists even on freestanding compilers. */
17346 # include <limits.h>
17348 # include <assert.h>
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17360 /* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363 #if defined __stub_$ac_func || defined __stub___$ac_func
17370 return $ac_func ();
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17384 grep -v '^ *+' conftest.er1 >conftest.err
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 eval "$as_ac_var=yes"
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 eval "$as_ac_var=no"
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17420 ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422 echo "${ECHO_T}$ac_res" >&6; }
17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17434 for ac_func in strerror strerror_r setenv
17436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17450 #define $ac_func innocuous_$ac_func
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17458 # include <limits.h>
17460 # include <assert.h>
17465 /* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply. */
17472 /* The GNU C library defines this for functions which it implements
17473 to always fail with ENOSYS. Some functions are actually named
17474 something starting with __ and the normal name is an alias. */
17475 #if defined __stub_$ac_func || defined __stub___$ac_func
17482 return $ac_func ();
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 eval "$as_ac_var=no"
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17532 ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 if test `eval echo '${'$as_ac_var'}'` = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17547 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17563 #define $ac_func innocuous_$ac_func
17565 /* System header to define __stub macros and hopefully few prototypes,
17566 which can conflict with char $ac_func (); below.
17567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17568 <limits.h> exists even on freestanding compilers. */
17571 # include <limits.h>
17573 # include <assert.h>
17578 /* Override any GCC internal prototype to avoid an error.
17579 Use char because int might match the return type of a GCC
17580 builtin and then its argument prototype would still apply. */
17585 /* The GNU C library defines this for functions which it implements
17586 to always fail with ENOSYS. Some functions are actually named
17587 something starting with __ and the normal name is an alias. */
17588 #if defined __stub_$ac_func || defined __stub___$ac_func
17595 return $ac_func ();
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 eval "$as_ac_var=yes"
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 eval "$as_ac_var=no"
17642 rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17645 ac_res=`eval echo '${'$as_ac_var'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17648 if test `eval echo '${'$as_ac_var'}'` = yes; then
17649 cat >>confdefs.h <<_ACEOF
17650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17677 #define $ac_func innocuous_$ac_func
17679 /* System header to define __stub macros and hopefully few prototypes,
17680 which can conflict with char $ac_func (); below.
17681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17682 <limits.h> exists even on freestanding compilers. */
17685 # include <limits.h>
17687 # include <assert.h>
17692 /* Override any GCC internal prototype to avoid an error.
17693 Use char because int might match the return type of a GCC
17694 builtin and then its argument prototype would still apply. */
17699 /* The GNU C library defines this for functions which it implements
17700 to always fail with ENOSYS. Some functions are actually named
17701 something starting with __ and the normal name is an alias. */
17702 #if defined __stub_$ac_func || defined __stub___$ac_func
17709 return $ac_func ();
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest$ac_exeext'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17748 eval "$as_ac_var=yes"
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 eval "$as_ac_var=no"
17756 rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17759 ac_res=`eval echo '${'$as_ac_var'}'`
17760 { echo "$as_me:$LINENO: result: $ac_res" >&5
17761 echo "${ECHO_T}$ac_res" >&6; }
17762 if test `eval echo '${'$as_ac_var'}'` = yes; then
17763 cat >>confdefs.h <<_ACEOF
17764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17770 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17771 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17772 if test "${llvm_cv_c_printf_a+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 ac_cpp='$CPP $CPPFLAGS'
17777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17781 if test "$cross_compiling" = yes; then
17782 llvmac_cv_c_printf_a=no
17784 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17793 #include <stdlib.h>
17799 volatile double A, B;
17803 sprintf(Buffer, "%a", A);
17807 if (A != 0x1.999999999999ap-4)
17814 rm -f conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 llvm_cv_c_printf_a=yes
17836 echo "$as_me: program exited with status $ac_status" >&5
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ( exit $ac_status )
17841 llvmac_cv_c_printf_a=no
17843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17854 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17855 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17856 if test "$llvm_cv_c_printf_a" = "yes"; then
17858 cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_PRINTF_A 1
17865 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17866 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17867 if test "${ac_cv_func_rand48+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 ac_cpp='$CXXCPP $CPPFLAGS'
17872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 #include <stdlib.h>
17886 srand48(0);lrand48();drand48();
17891 rm -f conftest.$ac_objext
17892 if { (ac_try="$ac_compile"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_compile") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_cv_func_rand48=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_cv_func_rand48=no
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 ac_cpp='$CPP $CPPFLAGS'
17936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17941 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17942 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17944 if test "$ac_cv_func_rand48" = "yes" ; then
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_RAND48 1
17953 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17954 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17955 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17964 $ac_includes_default
17969 char *p = (char *) strerror_s;
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_have_decl_strerror_s=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_have_decl_strerror_s=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18022 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18023 if test $ac_cv_have_decl_strerror_s = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define HAVE_DECL_STRERROR_S 1
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_DECL_STRERROR_S 0
18040 if test "$llvm_cv_os_type" = "MingW" ; then
18041 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18042 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18043 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 ac_check_lib_save_LIBS=$LIBS
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18055 /* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18070 rm -f conftest.$ac_objext conftest$ac_exeext
18071 if { (ac_try="$ac_link"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_link") 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_try") 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_cv_lib_gcc__alloca=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_lib_gcc__alloca=no
18112 rm -f core conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114 LIBS=$ac_check_lib_save_LIBS
18116 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18117 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18118 if test $ac_cv_lib_gcc__alloca = yes; then
18120 cat >>confdefs.h <<\_ACEOF
18121 #define HAVE__ALLOCA 1
18126 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18127 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18128 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 ac_check_lib_save_LIBS=$LIBS
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18140 /* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
18150 return __alloca ();
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18164 grep -v '^ *+' conftest.er1 >conftest.err
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_lib_gcc___alloca=yes
18191 echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18194 ac_cv_lib_gcc___alloca=no
18197 rm -f core conftest.err conftest.$ac_objext \
18198 conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18201 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18202 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18203 if test $ac_cv_lib_gcc___alloca = yes; then
18205 cat >>confdefs.h <<\_ACEOF
18206 #define HAVE___ALLOCA 1
18211 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18212 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18213 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18235 return __chkstk ();
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_lib_gcc___chkstk=yes
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18279 ac_cv_lib_gcc___chkstk=no
18282 rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18286 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18287 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18288 if test $ac_cv_lib_gcc___chkstk = yes; then
18290 cat >>confdefs.h <<\_ACEOF
18291 #define HAVE___CHKSTK 1
18296 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18297 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18298 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 ac_check_lib_save_LIBS=$LIBS
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18320 return ___chkstk ();
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 ac_cv_lib_gcc____chkstk=yes
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 ac_cv_lib_gcc____chkstk=no
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18371 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18372 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18373 if test $ac_cv_lib_gcc____chkstk = yes; then
18375 cat >>confdefs.h <<\_ACEOF
18376 #define HAVE____CHKSTK 1
18382 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18383 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18384 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 ac_check_lib_save_LIBS=$LIBS
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18406 return __ashldi3 ();
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (ac_try="$ac_link"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_link") 2>conftest.er1
18420 grep -v '^ *+' conftest.er1 >conftest.err
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_try") 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_gcc___ashldi3=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_lib_gcc___ashldi3=no
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18457 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18458 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18459 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE___ASHLDI3 1
18467 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18468 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18469 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 ac_check_lib_save_LIBS=$LIBS
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18491 return __ashrdi3 ();
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 ac_cv_lib_gcc___ashrdi3=yes
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 ac_cv_lib_gcc___ashrdi3=no
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18540 LIBS=$ac_check_lib_save_LIBS
18542 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18543 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18544 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18546 cat >>confdefs.h <<\_ACEOF
18547 #define HAVE___ASHRDI3 1
18552 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18553 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18554 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 ac_check_lib_save_LIBS=$LIBS
18559 cat >conftest.$ac_ext <<_ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18566 /* Override any GCC internal prototype to avoid an error.
18567 Use char because int might match the return type of a GCC
18568 builtin and then its argument prototype would still apply. */
18576 return __divdi3 ();
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_link") 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_try") 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_lib_gcc___divdi3=yes
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_cv_lib_gcc___divdi3=no
18623 rm -f core conftest.err conftest.$ac_objext \
18624 conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS
18627 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18628 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18629 if test $ac_cv_lib_gcc___divdi3 = yes; then
18631 cat >>confdefs.h <<\_ACEOF
18632 #define HAVE___DIVDI3 1
18637 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18638 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18639 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 ac_check_lib_save_LIBS=$LIBS
18644 cat >conftest.$ac_ext <<_ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18651 /* Override any GCC internal prototype to avoid an error.
18652 Use char because int might match the return type of a GCC
18653 builtin and then its argument prototype would still apply. */
18661 return __fixdfdi ();
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (ac_try="$ac_link"
18668 case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_link") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_lib_gcc___fixdfdi=yes
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_lib_gcc___fixdfdi=no
18708 rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18710 LIBS=$ac_check_lib_save_LIBS
18712 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18713 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18714 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18716 cat >>confdefs.h <<\_ACEOF
18717 #define HAVE___FIXDFDI 1
18722 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18723 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18724 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 ac_check_lib_save_LIBS=$LIBS
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18746 return __fixsfdi ();
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (ac_try="$ac_link"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_link") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest$ac_exeext'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_lib_gcc___fixsfdi=yes
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_lib_gcc___fixsfdi=no
18793 rm -f core conftest.err conftest.$ac_objext \
18794 conftest$ac_exeext conftest.$ac_ext
18795 LIBS=$ac_check_lib_save_LIBS
18797 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18798 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18799 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18801 cat >>confdefs.h <<\_ACEOF
18802 #define HAVE___FIXSFDI 1
18807 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18808 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS=$LIBS
18814 cat >conftest.$ac_ext <<_ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18827 char __floatdidf ();
18831 return __floatdidf ();
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 ac_cv_lib_gcc___floatdidf=yes
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18875 ac_cv_lib_gcc___floatdidf=no
18878 rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880 LIBS=$ac_check_lib_save_LIBS
18882 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18883 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18884 if test $ac_cv_lib_gcc___floatdidf = yes; then
18886 cat >>confdefs.h <<\_ACEOF
18887 #define HAVE___FLOATDIDF 1
18892 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18893 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18894 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 ac_check_lib_save_LIBS=$LIBS
18899 cat >conftest.$ac_ext <<_ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18916 return __lshrdi3 ();
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (ac_try="$ac_link"
18923 case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_link") 2>conftest.er1
18930 grep -v '^ *+' conftest.er1 >conftest.err
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_cv_lib_gcc___lshrdi3=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_lib_gcc___lshrdi3=no
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18968 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18969 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18971 cat >>confdefs.h <<\_ACEOF
18972 #define HAVE___LSHRDI3 1
18977 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18978 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18979 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 ac_check_lib_save_LIBS=$LIBS
18984 cat >conftest.$ac_ext <<_ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
19001 return __moddi3 ();
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_link") 2>conftest.er1
19015 grep -v '^ *+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
19020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest$ac_exeext'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_lib_gcc___moddi3=yes
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19045 ac_cv_lib_gcc___moddi3=no
19048 rm -f core conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050 LIBS=$ac_check_lib_save_LIBS
19052 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19053 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19054 if test $ac_cv_lib_gcc___moddi3 = yes; then
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE___MODDI3 1
19062 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19063 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19064 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 ac_check_lib_save_LIBS=$LIBS
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19076 /* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19086 return __udivdi3 ();
19091 rm -f conftest.$ac_objext conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>conftest.er1
19100 grep -v '^ *+' conftest.er1 >conftest.err
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_lib_gcc___udivdi3=yes
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_lib_gcc___udivdi3=no
19133 rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19137 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19138 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19139 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE___UDIVDI3 1
19147 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19148 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19149 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 ac_check_lib_save_LIBS=$LIBS
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 /* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19171 return __umoddi3 ();
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (ac_try="$ac_link"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_link") 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_try") 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_lib_gcc___umoddi3=yes
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_cv_lib_gcc___umoddi3=no
19218 rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 LIBS=$ac_check_lib_save_LIBS
19222 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19223 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19224 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19227 #define HAVE___UMODDI3 1
19233 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19234 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19235 if test "${ac_cv_lib_gcc___main+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 ac_check_lib_save_LIBS=$LIBS
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19262 rm -f conftest.$ac_objext conftest$ac_exeext
19263 if { (ac_try="$ac_link"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_link") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest$ac_exeext'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_lib_gcc___main=yes
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_cv_lib_gcc___main=no
19304 rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19308 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19309 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19310 if test $ac_cv_lib_gcc___main = yes; then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE___MAIN 1
19318 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19319 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19320 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19342 return __cmpdi2 ();
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19356 grep -v '^ *+' conftest.er1 >conftest.err
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_gcc___cmpdi2=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_cv_lib_gcc___cmpdi2=no
19389 rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 LIBS=$ac_check_lib_save_LIBS
19393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19394 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19395 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE___CMPDI2 1
19405 if test "$llvm_cv_os_type" = "MingW" ; then
19406 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19407 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19409 #include <windows.h>
19410 #include <imagehlp.h>
19411 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19412 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19414 rm -f conftest.$ac_objext
19415 if { (ac_try="$ac_compile"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19449 { echo "$as_me:$LINENO: result: yes" >&5
19450 echo "${ECHO_T}yes" >&6; }
19451 llvm_cv_win32_elmcb_pcstr="PCSTR"
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19458 { echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6; }
19460 llvm_cv_win32_elmcb_pcstr="PSTR"
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 cat >>confdefs.h <<_ACEOF
19467 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19473 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19474 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19475 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 ac_cpp='$CXXCPP $CPPFLAGS'
19480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19499 rm -f conftest.$ac_objext
19500 if { (ac_try="$ac_compile"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_cv_func_isnan_in_math_h=yes
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_cv_func_isnan_in_math_h=no
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 ac_cpp='$CPP $CPPFLAGS'
19544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19550 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19553 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_ISNAN_IN_MATH_H 1
19561 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19562 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19563 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 ac_cpp='$CXXCPP $CPPFLAGS'
19568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_func_isnan_in_cmath=yes
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_func_isnan_in_cmath=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19638 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19640 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_ISNAN_IN_CMATH 1
19648 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19649 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19650 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 ac_cpp='$CXXCPP $CPPFLAGS'
19655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19669 float f; std::isnan(f);
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_compile") 2>conftest.er1
19683 grep -v '^ *+' conftest.er1 >conftest.err
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_func_std_isnan_in_cmath=yes
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_cv_func_std_isnan_in_cmath=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 ac_cpp='$CPP $CPPFLAGS'
19719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19724 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19725 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19727 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19729 cat >>confdefs.h <<\_ACEOF
19730 #define HAVE_STD_ISNAN_IN_CMATH 1
19736 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19737 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19738 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_func_isinf_in_math_h=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_func_isinf_in_math_h=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19812 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19813 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19815 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_ISINF_IN_MATH_H 1
19823 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19824 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19825 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_cpp='$CXXCPP $CPPFLAGS'
19830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_cv_func_isinf_in_cmath=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_func_isinf_in_cmath=no
19891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 ac_cpp='$CPP $CPPFLAGS'
19894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19899 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19900 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19902 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_ISINF_IN_CMATH 1
19910 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19911 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19912 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19931 float f; std::isinf(f)}
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_cv_func_std_isinf_in_cmath=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_func_std_isinf_in_cmath=no
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19986 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19987 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19989 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_STD_ISINF_IN_CMATH 1
19997 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19998 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19999 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 ac_cpp='$CXXCPP $CPPFLAGS'
20004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 #include <ieeefp.h>
20018 float f; finite(f);
20023 rm -f conftest.$ac_objext
20024 if { (ac_try="$ac_compile"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_func_finite_in_ieeefp_h=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_func_finite_in_ieeefp_h=no
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 ac_cpp='$CPP $CPPFLAGS'
20068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20073 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20074 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20076 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20078 cat >>confdefs.h <<\_ACEOF
20079 #define HAVE_FINITE_IN_IEEEFP_H 1
20086 if test "$llvm_cv_platform_type" = "Unix" ; then
20089 for ac_header in stdlib.h unistd.h
20091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 ac_res=`eval echo '${'$as_ac_Header'}'`
20099 { echo "$as_me:$LINENO: result: $ac_res" >&5
20100 echo "${ECHO_T}$ac_res" >&6; }
20102 # Is the header compilable?
20103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 $ac_includes_default
20112 #include <$ac_header>
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1 >conftest.err
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_header_compiler=yes
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 echo "${ECHO_T}$ac_header_compiler" >&6; }
20160 # Is the header present?
20161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <$ac_header>
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179 grep -v '^ *+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } >/dev/null; then
20184 if test -s conftest.err; then
20185 ac_cpp_err=$ac_c_preproc_warn_flag
20186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20193 if test -z "$ac_cpp_err"; then
20194 ac_header_preproc=yes
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_preproc=no
20202 rm -f conftest.err conftest.$ac_ext
20203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20204 echo "${ECHO_T}$ac_header_preproc" >&6; }
20206 # So? What about this header?
20207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20213 ac_header_preproc=yes
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20229 ## ----------------------------------- ##
20230 ## Report this to llvmbugs@cs.uiuc.edu ##
20231 ## ----------------------------------- ##
20233 ) | sed "s/^/$as_me: WARNING: /" >&2
20236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 eval "$as_ac_Header=\$ac_header_preproc"
20243 ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result: $ac_res" >&5
20245 echo "${ECHO_T}$ac_res" >&6; }
20248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20249 cat >>confdefs.h <<_ACEOF
20250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20258 for ac_func in getpagesize
20260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20274 #define $ac_func innocuous_$ac_func
20276 /* System header to define __stub macros and hopefully few prototypes,
20277 which can conflict with char $ac_func (); below.
20278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20279 <limits.h> exists even on freestanding compilers. */
20282 # include <limits.h>
20284 # include <assert.h>
20289 /* Override any GCC internal prototype to avoid an error.
20290 Use char because int might match the return type of a GCC
20291 builtin and then its argument prototype would still apply. */
20296 /* The GNU C library defines this for functions which it implements
20297 to always fail with ENOSYS. Some functions are actually named
20298 something starting with __ and the normal name is an alias. */
20299 #if defined __stub_$ac_func || defined __stub___$ac_func
20306 return $ac_func ();
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20320 grep -v '^ *+' conftest.er1 >conftest.err
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20326 { (case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_try") 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 eval "$as_ac_var=yes"
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 eval "$as_ac_var=no"
20353 rm -f core conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20356 ac_res=`eval echo '${'$as_ac_var'}'`
20357 { echo "$as_me:$LINENO: result: $ac_res" >&5
20358 echo "${ECHO_T}$ac_res" >&6; }
20359 if test `eval echo '${'$as_ac_var'}'` = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20367 { echo "$as_me:$LINENO: checking for working mmap" >&5
20368 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20369 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 if test "$cross_compiling" = yes; then
20373 ac_cv_func_mmap_fixed_mapped=no
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 $ac_includes_default
20382 /* malloc might have been renamed as rpl_malloc. */
20385 /* Thanks to Mike Haertel and Jim Avera for this test.
20386 Here is a matrix of mmap possibilities:
20387 mmap private not fixed
20388 mmap private fixed at somewhere currently unmapped
20389 mmap private fixed at somewhere already mapped
20390 mmap shared not fixed
20391 mmap shared fixed at somewhere currently unmapped
20392 mmap shared fixed at somewhere already mapped
20393 For private mappings, we should verify that changes cannot be read()
20394 back from the file, nor mmap's back from the file at a different
20395 address. (There have been systems where private was not correctly
20396 implemented like the infamous i386 svr4.0, and systems where the
20397 VM page cache was not coherent with the file system buffer cache
20398 like early versions of FreeBSD and possibly contemporary NetBSD.)
20399 For shared mappings, we should conversely verify that changes get
20400 propagated back to all the places they're supposed to be.
20402 Grep wants private fixed already mapped.
20403 The main things grep needs to know about mmap are:
20404 * does it exist and is it safe to write into the mmap'd area
20405 * how to use it (BSD variants) */
20408 #include <sys/mman.h>
20410 #if !STDC_HEADERS && !HAVE_STDLIB_H
20414 /* This mess was copied from the GNU getpagesize.h. */
20415 #if !HAVE_GETPAGESIZE
20416 /* Assume that all systems that can run configure have sys/param.h. */
20417 # if !HAVE_SYS_PARAM_H
20418 # define HAVE_SYS_PARAM_H 1
20421 # ifdef _SC_PAGESIZE
20422 # define getpagesize() sysconf(_SC_PAGESIZE)
20423 # else /* no _SC_PAGESIZE */
20424 # if HAVE_SYS_PARAM_H
20425 # include <sys/param.h>
20426 # ifdef EXEC_PAGESIZE
20427 # define getpagesize() EXEC_PAGESIZE
20428 # else /* no EXEC_PAGESIZE */
20430 # define getpagesize() NBPG * CLSIZE
20433 # endif /* no CLSIZE */
20434 # else /* no NBPG */
20436 # define getpagesize() NBPC
20437 # else /* no NBPC */
20439 # define getpagesize() PAGESIZE
20440 # endif /* PAGESIZE */
20441 # endif /* no NBPC */
20442 # endif /* no NBPG */
20443 # endif /* no EXEC_PAGESIZE */
20444 # else /* no HAVE_SYS_PARAM_H */
20445 # define getpagesize() 8192 /* punt totally */
20446 # endif /* no HAVE_SYS_PARAM_H */
20447 # endif /* no _SC_PAGESIZE */
20449 #endif /* no HAVE_GETPAGESIZE */
20454 char *data, *data2, *data3;
20458 pagesize = getpagesize ();
20460 /* First, make a file with some known garbage in it. */
20461 data = (char *) malloc (pagesize);
20464 for (i = 0; i < pagesize; ++i)
20465 *(data + i) = rand ();
20467 fd = creat ("conftest.mmap", 0600);
20470 if (write (fd, data, pagesize) != pagesize)
20474 /* Next, try to mmap the file at a fixed address which already has
20475 something else allocated at it. If we can, also make sure that
20476 we see the same garbage. */
20477 fd = open ("conftest.mmap", O_RDWR);
20480 data2 = (char *) malloc (2 * pagesize);
20483 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20484 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20485 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20487 for (i = 0; i < pagesize; ++i)
20488 if (*(data + i) != *(data2 + i))
20491 /* Finally, make sure that changes to the mapped area do not
20492 percolate back to the file as seen by read(). (This is a bug on
20493 some variants of i386 svr4.0.) */
20494 for (i = 0; i < pagesize; ++i)
20495 *(data2 + i) = *(data2 + i) + 1;
20496 data3 = (char *) malloc (pagesize);
20499 if (read (fd, data3, pagesize) != pagesize)
20501 for (i = 0; i < pagesize; ++i)
20502 if (*(data + i) != *(data3 + i))
20508 rm -f conftest$ac_exeext
20509 if { (ac_try="$ac_link"
20510 case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_link") 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20519 { (case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_try") 2>&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_cv_func_mmap_fixed_mapped=yes
20530 echo "$as_me: program exited with status $ac_status" >&5
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 ( exit $ac_status )
20535 ac_cv_func_mmap_fixed_mapped=no
20537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20542 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20543 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_MMAP 1
20551 rm -f conftest.mmap
20553 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20554 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20555 if test "${ac_cv_func_mmap_file+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20564 if test "$cross_compiling" = yes; then
20565 ac_cv_func_mmap_file=no
20567 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 #include <sys/types.h>
20576 #include <sys/mman.h>
20584 fd = creat ("foo",0777);
20585 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20587 return (fd != (int) MAP_FAILED);
20592 rm -f conftest$ac_exeext
20593 if { (ac_try="$ac_link"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_link") 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20603 { (case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_try") 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 ac_cv_func_mmap_file=yes
20614 echo "$as_me: program exited with status $ac_status" >&5
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ( exit $ac_status )
20619 ac_cv_func_mmap_file=no
20621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20626 ac_cpp='$CPP $CPPFLAGS'
20627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20633 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20634 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20635 if test "$ac_cv_func_mmap_file" = yes; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_MMAP_FILE
20645 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20646 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20647 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 if test "$llvm_cv_os_type" = "Interix" ; then
20651 ac_cv_need_dev_zero_for_mmap=yes
20653 ac_cv_need_dev_zero_for_mmap=no
20657 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20658 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20659 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define NEED_DEV_ZERO_FOR_MMAP 1
20667 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20669 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20670 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20672 if test "$ac_cv_func_mmap_file" = "no"
20674 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20675 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20679 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20680 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20682 ac_cpp='$CXXCPP $CPPFLAGS'
20683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20694 volatile unsigned long val = 1;
20695 __sync_synchronize();
20696 __sync_val_compare_and_swap(&val, 1, 0);
20697 __sync_add_and_fetch(&val, 1);
20698 __sync_sub_and_fetch(&val, 1);
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (ac_try="$ac_link"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_link") 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest$ac_exeext'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20738 ac_cpp='$CPP $CPPFLAGS'
20739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743 { echo "$as_me:$LINENO: result: yes" >&5
20744 echo "${ECHO_T}yes" >&6; }
20746 cat >>confdefs.h <<\_ACEOF
20747 #define LLVM_HAS_ATOMICS 1
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 { echo "$as_me:$LINENO: result: no" >&5
20755 echo "${ECHO_T}no" >&6; }
20757 cat >>confdefs.h <<\_ACEOF
20758 #define LLVM_HAS_ATOMICS 0
20761 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20762 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20765 rm -f core conftest.err conftest.$ac_objext \
20766 conftest$ac_exeext conftest.$ac_ext
20769 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20770 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20771 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20772 if test "${llvm_cv_linux_mixed+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 error: Not x86-64 even if uname says so!
20799 rm -f conftest.$ac_objext
20800 if { (ac_try="$ac_compile"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_compile") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20814 { (case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_try") 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 llvm_cv_linux_mixed=no
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 llvm_cv_linux_mixed=yes
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 ac_cpp='$CPP $CPPFLAGS'
20844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20851 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20853 if test "$llvm_cv_linux_mixed" = "yes"; then
20854 llvm_cv_target_arch="x86"
20860 for ac_func in __dso_handle
20862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20876 #define $ac_func innocuous_$ac_func
20878 /* System header to define __stub macros and hopefully few prototypes,
20879 which can conflict with char $ac_func (); below.
20880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20881 <limits.h> exists even on freestanding compilers. */
20884 # include <limits.h>
20886 # include <assert.h>
20891 /* Override any GCC internal prototype to avoid an error.
20892 Use char because int might match the return type of a GCC
20893 builtin and then its argument prototype would still apply. */
20898 /* The GNU C library defines this for functions which it implements
20899 to always fail with ENOSYS. Some functions are actually named
20900 something starting with __ and the normal name is an alias. */
20901 #if defined __stub_$ac_func || defined __stub___$ac_func
20908 return $ac_func ();
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (ac_try="$ac_link"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_link") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20928 { (case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_try") 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 eval "$as_ac_var=yes"
20949 echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20952 eval "$as_ac_var=no"
20955 rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20958 ac_res=`eval echo '${'$as_ac_var'}'`
20959 { echo "$as_me:$LINENO: result: $ac_res" >&5
20960 echo "${ECHO_T}$ac_res" >&6; }
20961 if test `eval echo '${'$as_ac_var'}'` = yes; then
20962 cat >>confdefs.h <<_ACEOF
20963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20970 SHLIBEXT=$libltdl_cv_shlibext
20973 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20976 # Translate the various configuration directories and other basic
20977 # information into substitutions that will end up in Makefile.config.in
20978 # that these configured values can be used by the makefiles
20979 if test "${prefix}" = "NONE" ; then
20980 prefix="/usr/local"
20982 eval LLVM_PREFIX="${prefix}";
20983 eval LLVM_BINDIR="${prefix}/bin";
20984 eval LLVM_LIBDIR="${prefix}/lib";
20985 eval LLVM_DATADIR="${prefix}/share/llvm";
20986 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20987 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20988 eval LLVM_INCLUDEDIR="${prefix}/include";
20989 eval LLVM_INFODIR="${prefix}/info";
20990 eval LLVM_MANDIR="${prefix}/man";
20991 LLVM_CONFIGTIME=`date`
21003 # Place the various directores into the config.h file as #defines so that we
21004 # can know about the installation paths within LLVM.
21006 cat >>confdefs.h <<_ACEOF
21007 #define LLVM_PREFIX "$LLVM_PREFIX"
21011 cat >>confdefs.h <<_ACEOF
21012 #define LLVM_BINDIR "$LLVM_BINDIR"
21016 cat >>confdefs.h <<_ACEOF
21017 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21021 cat >>confdefs.h <<_ACEOF
21022 #define LLVM_DATADIR "$LLVM_DATADIR"
21026 cat >>confdefs.h <<_ACEOF
21027 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21031 cat >>confdefs.h <<_ACEOF
21032 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21036 cat >>confdefs.h <<_ACEOF
21037 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21041 cat >>confdefs.h <<_ACEOF
21042 #define LLVM_INFODIR "$LLVM_INFODIR"
21046 cat >>confdefs.h <<_ACEOF
21047 #define LLVM_MANDIR "$LLVM_MANDIR"
21051 cat >>confdefs.h <<_ACEOF
21052 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21056 cat >>confdefs.h <<_ACEOF
21057 #define LLVM_HOSTTRIPLE "$host"
21061 # Determine which bindings to build.
21062 if test "$BINDINGS_TO_BUILD" = auto ; then
21063 BINDINGS_TO_BUILD=""
21064 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21065 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21068 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21071 # This isn't really configurey, but it avoids having to repeat the list in
21076 # Do any work necessary to ensure that bindings have what they need.
21077 binding_prereqs_failed=0
21078 for a_binding in $BINDINGS_TO_BUILD ; do
21079 case "$a_binding" in
21081 if test "x$OCAMLC" = x ; then
21082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21083 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21084 binding_prereqs_failed=1
21086 if test "x$OCAMLDEP" = x ; then
21087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21089 binding_prereqs_failed=1
21091 if test "x$OCAMLOPT" = x ; then
21092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21093 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21095 if test "x$with_ocaml_libdir" != xauto ; then
21096 OCAML_LIBDIR=$with_ocaml_libdir
21099 ocaml_stdlib="`"$OCAMLC" -where`"
21100 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21102 # ocaml stdlib is beneath our prefix; use stdlib
21103 OCAML_LIBDIR=$ocaml_stdlib
21106 # ocaml stdlib is outside our prefix; use libdir/ocaml
21107 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21114 if test "$binding_prereqs_failed" = 1 ; then
21115 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21116 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21117 { (exit 1); exit 1; }; }
21120 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21121 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21122 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 ac_cpp='$CXXCPP $CPPFLAGS'
21127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21131 oldcxxflags="$CXXFLAGS"
21132 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 llvm_cv_cxx_visibility_inlines_hidden=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 llvm_cv_cxx_visibility_inlines_hidden=no
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 CXXFLAGS="$oldcxxflags"
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21201 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21202 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21203 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21206 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21211 if test "$llvm_cv_link_use_r" = "yes" ; then
21218 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21219 RDYNAMIC="-Wl,-export-dynamic"
21226 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21233 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21235 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21237 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21239 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21241 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21244 ac_config_files="$ac_config_files Makefile.config"
21247 ac_config_files="$ac_config_files llvm.spec"
21250 ac_config_files="$ac_config_files docs/doxygen.cfg"
21252 if test -f ${srcdir}/tools/clang/README.txt; then
21253 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21257 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21260 ac_config_commands="$ac_config_commands setup"
21262 ac_config_commands="$ac_config_commands Makefile"
21265 ac_config_commands="$ac_config_commands Makefile.common"
21268 ac_config_commands="$ac_config_commands examples/Makefile"
21271 ac_config_commands="$ac_config_commands lib/Makefile"
21274 ac_config_commands="$ac_config_commands runtime/Makefile"
21277 ac_config_commands="$ac_config_commands test/Makefile"
21280 ac_config_commands="$ac_config_commands test/Makefile.tests"
21283 ac_config_commands="$ac_config_commands unittests/Makefile"
21286 ac_config_commands="$ac_config_commands tools/Makefile"
21289 ac_config_commands="$ac_config_commands utils/Makefile"
21292 ac_config_commands="$ac_config_commands projects/Makefile"
21295 ac_config_commands="$ac_config_commands bindings/Makefile"
21298 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21302 cat >confcache <<\_ACEOF
21303 # This file is a shell script that caches the results of configure
21304 # tests run on this system so they can be shared between configure
21305 # scripts and configure runs, see configure's option --config-cache.
21306 # It is not useful on other systems. If it contains results you don't
21307 # want to keep, you may remove or edit it.
21309 # config.status only pays attention to the cache file if you give it
21310 # the --recheck option to rerun configure.
21312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21314 # following values.
21318 # The following way of writing the cache mishandles newlines in values,
21319 # but we know of no workaround that is simple, portable, and efficient.
21320 # So, we kill variables containing newlines.
21321 # Ultrix sh set writes to stderr and can't be redirected directly,
21322 # and sets the high bit in the cache file unless we assign to the vars.
21324 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21325 eval ac_val=\$$ac_var
21329 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21330 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21333 _ | IFS | as_nl) ;; #(
21334 *) $as_unset $ac_var ;;
21340 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21341 *${as_nl}ac_space=\ *)
21342 # `set' does not quote correctly, so add quotes (double-quote
21343 # substitution turns \\\\ into \\, and sed turns \\ into \).
21346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21349 # `set' quotes correctly as required by POSIX, so do not add quotes.
21350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21361 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21363 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21364 if test -w "$cache_file"; then
21365 test "x$cache_file" != "x/dev/null" &&
21366 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21367 echo "$as_me: updating cache $cache_file" >&6;}
21368 cat confcache >$cache_file
21370 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21371 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21377 # Let make expand exec_prefix.
21378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21380 DEFS=-DHAVE_CONFIG_H
21384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21385 # 1. Remove the extension, and $U if already installed.
21386 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21387 ac_i=`echo "$ac_i" | sed "$ac_script"`
21388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21389 # will be set to the directory where LIBOBJS objects are built.
21390 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21391 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21393 LIBOBJS=$ac_libobjs
21395 LTLIBOBJS=$ac_ltlibobjs
21398 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21399 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21400 Usually this means the macro was only invoked conditionally." >&5
21401 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21402 Usually this means the macro was only invoked conditionally." >&2;}
21403 { (exit 1); exit 1; }; }
21405 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21406 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21407 Usually this means the macro was only invoked conditionally." >&5
21408 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21409 Usually this means the macro was only invoked conditionally." >&2;}
21410 { (exit 1); exit 1; }; }
21413 : ${CONFIG_STATUS=./config.status}
21414 ac_clean_files_save=$ac_clean_files
21415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21416 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21417 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21418 cat >$CONFIG_STATUS <<_ACEOF
21420 # Generated by $as_me.
21421 # Run this file to recreate the current configuration.
21422 # Compiler output produced by configure, useful for debugging
21423 # configure, is in config.log if it exists.
21426 ac_cs_recheck=false
21428 SHELL=\${CONFIG_SHELL-$SHELL}
21431 cat >>$CONFIG_STATUS <<\_ACEOF
21432 ## --------------------- ##
21433 ## M4sh Initialization. ##
21434 ## --------------------- ##
21436 # Be Bourne compatible
21437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21440 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21441 # is contrary to our usage. Disable this feature.
21442 alias -g '${1+"$@"}'='"$@"'
21443 setopt NO_GLOB_SUBST
21445 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21447 BIN_SH=xpg4; export BIN_SH # for Tru64
21448 DUALCASE=1; export DUALCASE # for MKS sh
21452 # Avoid depending upon Character Ranges.
21453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21456 as_cr_digits='0123456789'
21457 as_cr_alnum=$as_cr_Letters$as_cr_digits
21459 # The user is always right.
21460 if test "${PATH_SEPARATOR+set}" != set; then
21461 echo "#! /bin/sh" >conf$$.sh
21462 echo "exit 0" >>conf$$.sh
21464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21472 # Support unset when possible.
21473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21481 # We need space, tab and new line, in precisely that order. Quoting is
21482 # there to prevent editors from complaining about space-tab.
21483 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21484 # splitting by setting IFS to empty value.)
21489 # Find who we are. Look in the path if we contain no directory separator.
21491 *[\\/]* ) as_myself=$0 ;;
21492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21493 for as_dir in $PATH
21496 test -z "$as_dir" && as_dir=.
21497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21503 # We did not find ourselves, most probably we were run as `sh COMMAND'
21504 # in which case we are not to be found in the path.
21505 if test "x$as_myself" = x; then
21508 if test ! -f "$as_myself"; then
21509 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21510 { (exit 1); exit 1; }
21513 # Work around bugs in pre-3.0 UWIN ksh.
21514 for as_var in ENV MAIL MAILPATH
21515 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21523 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21524 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21525 LC_TELEPHONE LC_TIME
21527 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21528 eval $as_var=C; export $as_var
21530 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21534 # Required to use basename.
21535 if expr a : '\(a\)' >/dev/null 2>&1 &&
21536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21543 as_basename=basename
21549 # Name of the executable.
21550 as_me=`$as_basename -- "$0" ||
21551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21552 X"$0" : 'X\(//\)$' \| \
21553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21555 sed '/^.*\/\([^/][^/]*\)\/*$/{
21574 as_lineno_1=$LINENO
21575 as_lineno_2=$LINENO
21576 test "x$as_lineno_1" != "x$as_lineno_2" &&
21577 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21580 # uniformly replaced by the line number. The first 'sed' inserts a
21581 # line-number line after each line using $LINENO; the second 'sed'
21582 # does the real work. The second script uses 'N' to pair each
21583 # line-number line with the line containing $LINENO, and appends
21584 # trailing '-' during substitution so that $LINENO is not a special
21585 # case at line end.
21586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21587 # scripts with optimization help from Paolo Bonzini. Blame Lee
21588 # E. McMahon (1931-1989) for sed's syntax. :-)
21600 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21603 ' >$as_me.lineno &&
21604 chmod +x "$as_me.lineno" ||
21605 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21606 { (exit 1); exit 1; }; }
21608 # Don't try to exec as it changes $[0], causing all sort of problems
21609 # (the dirname of $[0] is not the place where we might find the
21610 # original and so on. Autoconf is especially sensitive to this).
21611 . "./$as_me.lineno"
21612 # Exit status is that of the last command.
21617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21623 ECHO_C= ECHO_N= ECHO_T=
21624 case `echo -n x` in
21626 case `echo 'x\c'` in
21627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21634 if expr a : '\(a\)' >/dev/null 2>&1 &&
21635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21641 rm -f conf$$ conf$$.exe conf$$.file
21642 if test -d conf$$.dir; then
21643 rm -f conf$$.dir/conf$$.file
21649 if ln -s conf$$.file conf$$ 2>/dev/null; then
21651 # ... but there are two gotchas:
21652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21654 # In both cases, we have to default to `cp -p'.
21655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21657 elif ln conf$$.file conf$$ 2>/dev/null; then
21662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21663 rmdir conf$$.dir 2>/dev/null
21665 if mkdir -p . 2>/dev/null; then
21668 test -d ./-p && rmdir ./-p
21672 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21673 # systems may use methods other than mode bits to determine executability.
21674 cat >conf$$.file <<_ASEOF
21678 chmod +x conf$$.file
21679 if test -x conf$$.file >/dev/null 2>&1; then
21680 as_executable_p="test -x"
21686 # Sed expression to map a string onto a valid CPP name.
21687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21689 # Sed expression to map a string onto a valid variable name.
21690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21695 # Save the log message, to keep $[0] and so on meaningful, and to
21696 # report actual input values of CONFIG_FILES etc. instead of their
21697 # values after options handling.
21699 This file was extended by llvm $as_me 3.0svn, which was
21700 generated by GNU Autoconf 2.60. Invocation command line was
21702 CONFIG_FILES = $CONFIG_FILES
21703 CONFIG_HEADERS = $CONFIG_HEADERS
21704 CONFIG_LINKS = $CONFIG_LINKS
21705 CONFIG_COMMANDS = $CONFIG_COMMANDS
21708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21713 cat >>$CONFIG_STATUS <<_ACEOF
21714 # Files that config.status was made for.
21715 config_files="$ac_config_files"
21716 config_headers="$ac_config_headers"
21717 config_commands="$ac_config_commands"
21721 cat >>$CONFIG_STATUS <<\_ACEOF
21723 \`$as_me' instantiates files from templates according to the
21724 current configuration.
21726 Usage: $0 [OPTIONS] [FILE]...
21728 -h, --help print this help, then exit
21729 -V, --version print version number, then exit
21730 -q, --quiet do not print progress messages
21731 -d, --debug don't remove temporary files
21732 --recheck update $as_me by reconfiguring in the same conditions
21733 --file=FILE[:TEMPLATE]
21734 instantiate the configuration file FILE
21735 --header=FILE[:TEMPLATE]
21736 instantiate the configuration header FILE
21738 Configuration files:
21741 Configuration headers:
21744 Configuration commands:
21747 Report bugs to <bug-autoconf@gnu.org>."
21750 cat >>$CONFIG_STATUS <<_ACEOF
21752 llvm config.status 3.0svn
21753 configured by $0, generated by GNU Autoconf 2.60,
21754 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21756 Copyright (C) 2006 Free Software Foundation, Inc.
21757 This config.status script is free software; the Free Software Foundation
21758 gives unlimited permission to copy, distribute and modify it."
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 # If no file are specified by the user, then we need to provide default
21767 # value. By we need to know if files were specified by the user.
21773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21774 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21785 # Handling of the options.
21786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21789 echo "$ac_cs_version"; exit ;;
21790 --debug | --debu | --deb | --de | --d | -d )
21792 --file | --fil | --fi | --f )
21794 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21795 ac_need_defaults=false;;
21796 --header | --heade | --head | --hea )
21798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21799 ac_need_defaults=false;;
21801 # Conflict between --help and --header
21802 { echo "$as_me: error: ambiguous option: $1
21803 Try \`$0 --help' for more information." >&2
21804 { (exit 1); exit 1; }; };;
21805 --help | --hel | -h )
21806 echo "$ac_cs_usage"; exit ;;
21807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21808 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21811 # This is an error.
21812 -*) { echo "$as_me: error: unrecognized option: $1
21813 Try \`$0 --help' for more information." >&2
21814 { (exit 1); exit 1; }; } ;;
21816 *) ac_config_targets="$ac_config_targets $1"
21817 ac_need_defaults=false ;;
21823 ac_configure_extra_args=
21825 if $ac_cs_silent; then
21827 ac_configure_extra_args="$ac_configure_extra_args --silent"
21831 cat >>$CONFIG_STATUS <<_ACEOF
21832 if \$ac_cs_recheck; then
21833 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21834 CONFIG_SHELL=$SHELL
21835 export CONFIG_SHELL
21836 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21840 cat >>$CONFIG_STATUS <<\_ACEOF
21844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21845 ## Running $as_me. ##
21851 cat >>$CONFIG_STATUS <<_ACEOF
21855 llvm_src="${srcdir}"
21859 cat >>$CONFIG_STATUS <<\_ACEOF
21861 # Handling of arguments.
21862 for ac_config_target in $ac_config_targets
21864 case $ac_config_target in
21865 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21866 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21867 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21868 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21869 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21870 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21871 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21872 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21873 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21874 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21875 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21876 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21877 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21878 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21879 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21880 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21881 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21882 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21883 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21884 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21885 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21886 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21887 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21888 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21889 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21890 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21893 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21894 { (exit 1); exit 1; }; };;
21899 # If the user did not use the arguments to specify the items to instantiate,
21900 # then the envvar interface is used. Set only those that are not.
21901 # We use the long form for the default assignment because of an extremely
21902 # bizarre bug on SunOS 4.1.3.
21903 if $ac_need_defaults; then
21904 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21905 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21909 # Have a temporary directory for convenience. Make it in the build tree
21910 # simply because there is no reason against having it here, and in addition,
21911 # creating and moving files from /tmp can sometimes cause problems.
21912 # Hook for its removal unless debugging.
21913 # Note that there is a small window in which the directory will not be cleaned:
21914 # after its creation but before its name has been assigned to `$tmp'.
21918 trap 'exit_status=$?
21919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21921 trap '{ (exit 1); exit 1; }' 1 2 13 15
21923 # Create a (secure) tmp directory for tmp files.
21926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21927 test -n "$tmp" && test -d "$tmp"
21930 tmp=./conf$$-$RANDOM
21931 (umask 077 && mkdir "$tmp")
21934 echo "$me: cannot create a temporary directory in ." >&2
21935 { (exit 1); exit 1; }
21939 # Set up the sed scripts for CONFIG_FILES section.
21942 # No need to generate the scripts if there are no CONFIG_FILES.
21943 # This happens for instance when ./config.status config.h
21944 if test -n "$CONFIG_FILES"; then
21951 for ac_last_try in false false false false false :; do
21952 cat >conf$$subs.sed <<_ACEOF
21953 SHELL!$SHELL$ac_delim
21954 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21955 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21956 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21957 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21958 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21959 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21960 exec_prefix!$exec_prefix$ac_delim
21961 prefix!$prefix$ac_delim
21962 program_transform_name!$program_transform_name$ac_delim
21963 bindir!$bindir$ac_delim
21964 sbindir!$sbindir$ac_delim
21965 libexecdir!$libexecdir$ac_delim
21966 datarootdir!$datarootdir$ac_delim
21967 datadir!$datadir$ac_delim
21968 sysconfdir!$sysconfdir$ac_delim
21969 sharedstatedir!$sharedstatedir$ac_delim
21970 localstatedir!$localstatedir$ac_delim
21971 includedir!$includedir$ac_delim
21972 oldincludedir!$oldincludedir$ac_delim
21973 docdir!$docdir$ac_delim
21974 infodir!$infodir$ac_delim
21975 htmldir!$htmldir$ac_delim
21976 dvidir!$dvidir$ac_delim
21977 pdfdir!$pdfdir$ac_delim
21978 psdir!$psdir$ac_delim
21979 libdir!$libdir$ac_delim
21980 localedir!$localedir$ac_delim
21981 mandir!$mandir$ac_delim
21982 DEFS!$DEFS$ac_delim
21983 ECHO_C!$ECHO_C$ac_delim
21984 ECHO_N!$ECHO_N$ac_delim
21985 ECHO_T!$ECHO_T$ac_delim
21986 LIBS!$LIBS$ac_delim
21987 build_alias!$build_alias$ac_delim
21988 host_alias!$host_alias$ac_delim
21989 target_alias!$target_alias$ac_delim
21990 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21992 CFLAGS!$CFLAGS$ac_delim
21993 LDFLAGS!$LDFLAGS$ac_delim
21994 CPPFLAGS!$CPPFLAGS$ac_delim
21995 ac_ct_CC!$ac_ct_CC$ac_delim
21996 EXEEXT!$EXEEXT$ac_delim
21997 OBJEXT!$OBJEXT$ac_delim
21999 CXXFLAGS!$CXXFLAGS$ac_delim
22000 ac_ct_CXX!$ac_ct_CXX$ac_delim
22002 subdirs!$subdirs$ac_delim
22003 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22004 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22005 build!$build$ac_delim
22006 build_cpu!$build_cpu$ac_delim
22007 build_vendor!$build_vendor$ac_delim
22008 build_os!$build_os$ac_delim
22009 host!$host$ac_delim
22010 host_cpu!$host_cpu$ac_delim
22011 host_vendor!$host_vendor$ac_delim
22012 host_os!$host_os$ac_delim
22013 target!$target$ac_delim
22014 target_cpu!$target_cpu$ac_delim
22015 target_vendor!$target_vendor$ac_delim
22016 target_os!$target_os$ac_delim
22018 HOST_OS!$HOST_OS$ac_delim
22019 TARGET_OS!$TARGET_OS$ac_delim
22020 LINKALL!$LINKALL$ac_delim
22021 NOLINKALL!$NOLINKALL$ac_delim
22022 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22023 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22024 ARCH!$ARCH$ac_delim
22025 ENDIAN!$ENDIAN$ac_delim
22026 GREP!$GREP$ac_delim
22027 EGREP!$EGREP$ac_delim
22028 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22029 BUILD_CC!$BUILD_CC$ac_delim
22030 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22031 BUILD_CXX!$BUILD_CXX$ac_delim
22032 CVSBUILD!$CVSBUILD$ac_delim
22033 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22034 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22035 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22036 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22037 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22038 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22039 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22042 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22043 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22044 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22045 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22046 ENABLE_PIC!$ENABLE_PIC$ac_delim
22047 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22048 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22049 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22054 elif $ac_last_try; then
22055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22057 { (exit 1); exit 1; }; }
22059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22064 if test -n "$ac_eof"; then
22065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22066 ac_eof=`expr $ac_eof + 1`
22069 cat >>$CONFIG_STATUS <<_ACEOF
22070 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22075 s/^/s,@/; s/!/@,|#_!!_#|/
22078 s/'"$ac_delim"'$/,g/; t
22080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22081 ' >>$CONFIG_STATUS <conf$$subs.sed
22082 rm -f conf$$subs.sed
22083 cat >>$CONFIG_STATUS <<_ACEOF
22089 for ac_last_try in false false false false false :; do
22090 cat >conf$$subs.sed <<_ACEOF
22091 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22092 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22093 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22094 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22095 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22096 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22097 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22098 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22099 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22100 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22102 ifGNUmake!$ifGNUmake$ac_delim
22103 LN_S!$LN_S$ac_delim
22106 DATE!$DATE$ac_delim
22107 FIND!$FIND$ac_delim
22108 MKDIR!$MKDIR$ac_delim
22110 RANLIB!$RANLIB$ac_delim
22115 BINPWD!$BINPWD$ac_delim
22116 GRAPHVIZ!$GRAPHVIZ$ac_delim
22119 NEATO!$NEATO$ac_delim
22120 TWOPI!$TWOPI$ac_delim
22121 CIRCO!$CIRCO$ac_delim
22123 DOTTY!$DOTTY$ac_delim
22124 XDOT_PY!$XDOT_PY$ac_delim
22125 PERL!$PERL$ac_delim
22126 HAVE_PERL!$HAVE_PERL$ac_delim
22127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22129 INSTALL_DATA!$INSTALL_DATA$ac_delim
22130 BZIP2!$BZIP2$ac_delim
22132 DOXYGEN!$DOXYGEN$ac_delim
22133 GROFF!$GROFF$ac_delim
22134 GZIPBIN!$GZIPBIN$ac_delim
22135 POD2HTML!$POD2HTML$ac_delim
22136 POD2MAN!$POD2MAN$ac_delim
22137 PDFROFF!$PDFROFF$ac_delim
22138 RUNTEST!$RUNTEST$ac_delim
22139 TCLSH!$TCLSH$ac_delim
22141 OCAMLC!$OCAMLC$ac_delim
22142 OCAMLOPT!$OCAMLOPT$ac_delim
22143 OCAMLDEP!$OCAMLDEP$ac_delim
22144 OCAMLDOC!$OCAMLDOC$ac_delim
22146 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22147 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22148 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22149 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22150 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22151 LIBADD_DL!$LIBADD_DL$ac_delim
22152 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22153 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22154 USE_UDIS86!$USE_UDIS86$ac_delim
22155 USE_OPROFILE!$USE_OPROFILE$ac_delim
22156 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22157 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22158 MMAP_FILE!$MMAP_FILE$ac_delim
22159 SHLIBEXT!$SHLIBEXT$ac_delim
22160 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22161 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22162 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22163 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22164 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22165 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22166 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22167 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22168 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22169 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22170 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22171 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22172 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22173 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22174 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22175 RPATH!$RPATH$ac_delim
22176 RDYNAMIC!$RDYNAMIC$ac_delim
22177 LIBOBJS!$LIBOBJS$ac_delim
22178 LTLIBOBJS!$LTLIBOBJS$ac_delim
22181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
22183 elif $ac_last_try; then
22184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22186 { (exit 1); exit 1; }; }
22188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22193 if test -n "$ac_eof"; then
22194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22195 ac_eof=`expr $ac_eof + 1`
22198 cat >>$CONFIG_STATUS <<_ACEOF
22199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22204 s/^/s,@/; s/!/@,|#_!!_#|/
22207 s/'"$ac_delim"'$/,g/; t
22209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22210 ' >>$CONFIG_STATUS <conf$$subs.sed
22211 rm -f conf$$subs.sed
22212 cat >>$CONFIG_STATUS <<_ACEOF
22219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22221 # trailing colons and then remove the whole line if VPATH becomes empty
22222 # (actually we leave an empty line to preserve line numbers).
22223 if test "x$srcdir" = x.; then
22224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22225 s/:*\$(srcdir):*/:/
22226 s/:*\${srcdir}:*/:/
22228 s/^\([^=]*=[ ]*\):*/\1/
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 fi # test -n "$CONFIG_FILES"
22238 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22241 :[FHLC]) ac_mode=$ac_tag; continue;;
22243 case $ac_mode$ac_tag in
22245 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22247 { (exit 1); exit 1; }; };;
22248 :[FH]-) ac_tag=-:-;;
22249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22266 -) ac_f="$tmp/stdin";;
22267 *) # Look for the file first in the build tree, then in the source tree
22268 # (if the path is not absolute). The absolute path cannot be DOS-style,
22269 # because $ac_f cannot contain `:'.
22273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22275 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22277 { (exit 1); exit 1; }; };;
22279 ac_file_inputs="$ac_file_inputs $ac_f"
22282 # Let's still pretend it is `configure' which instantiates (i.e., don't
22283 # use $as_me), people would be surprised to read:
22284 # /* config.h. Generated by config.status. */
22285 configure_input="Generated from "`IFS=:
22286 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22287 if test x"$ac_file" != x-; then
22288 configure_input="$ac_file. $configure_input"
22289 { echo "$as_me:$LINENO: creating $ac_file" >&5
22290 echo "$as_me: creating $ac_file" >&6;}
22294 *:-:* | *:-) cat >"$tmp/stdin";;
22299 ac_dir=`$as_dirname -- "$ac_file" ||
22300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$ac_file" : 'X\(//\)[^/]' \| \
22302 X"$ac_file" : 'X\(//\)$' \| \
22303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22309 /^X\(\/\/\)[^/].*/{
22324 -*) as_dir=./$as_dir;;
22326 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22330 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22331 *) as_qdir=$as_dir;;
22333 as_dirs="'$as_qdir' $as_dirs"
22334 as_dir=`$as_dirname -- "$as_dir" ||
22335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336 X"$as_dir" : 'X\(//\)[^/]' \| \
22337 X"$as_dir" : 'X\(//\)$' \| \
22338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22344 /^X\(\/\/\)[^/].*/{
22357 test -d "$as_dir" && break
22359 test -z "$as_dirs" || eval "mkdir $as_dirs"
22360 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22362 { (exit 1); exit 1; }; }; }
22366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22369 # A ".." for each directory in $ac_dir_suffix.
22370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22371 case $ac_top_builddir_sub in
22372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22376 ac_abs_top_builddir=$ac_pwd
22377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22378 # for backward compatibility:
22379 ac_top_builddir=$ac_top_build_prefix
22382 .) # We are building in place.
22384 ac_top_srcdir=$ac_top_builddir_sub
22385 ac_abs_top_srcdir=$ac_pwd ;;
22386 [\\/]* | ?:[\\/]* ) # Absolute name.
22387 ac_srcdir=$srcdir$ac_dir_suffix;
22388 ac_top_srcdir=$srcdir
22389 ac_abs_top_srcdir=$srcdir ;;
22390 *) # Relative name.
22391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22392 ac_top_srcdir=$ac_top_build_prefix$srcdir
22393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22410 cat >>$CONFIG_STATUS <<\_ACEOF
22411 # If the template does not know about datarootdir, expand it.
22412 # FIXME: This hack should be removed a few years after 2.60.
22413 ac_datarootdir_hack=; ac_datarootdir_seen=
22415 case `sed -n '/datarootdir/ {
22424 ' $ac_file_inputs` in
22425 *datarootdir*) ac_datarootdir_seen=yes;;
22426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22428 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22430 cat >>$CONFIG_STATUS <<_ACEOF
22431 ac_datarootdir_hack='
22432 s&@datadir@&$datadir&g
22433 s&@docdir@&$docdir&g
22434 s&@infodir@&$infodir&g
22435 s&@localedir@&$localedir&g
22436 s&@mandir@&$mandir&g
22437 s&\\\${datarootdir}&$datarootdir&g' ;;
22441 # Neutralize VPATH when `$srcdir' = `.'.
22442 # Shell code in configure.ac might set extrasub.
22443 # FIXME: do we really want to maintain this feature?
22444 cat >>$CONFIG_STATUS <<_ACEOF
22448 cat >>$CONFIG_STATUS <<\_ACEOF
22450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22451 s&@configure_input@&$configure_input&;t t
22452 s&@top_builddir@&$ac_top_builddir_sub&;t t
22453 s&@srcdir@&$ac_srcdir&;t t
22454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22455 s&@top_srcdir@&$ac_top_srcdir&;t t
22456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22457 s&@builddir@&$ac_builddir&;t t
22458 s&@abs_builddir@&$ac_abs_builddir&;t t
22459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22460 s&@INSTALL@&$ac_INSTALL&;t t
22461 $ac_datarootdir_hack
22462 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22467 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22468 which seems to be undefined. Please make sure it is defined." >&5
22469 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22470 which seems to be undefined. Please make sure it is defined." >&2;}
22474 -) cat "$tmp/out"; rm -f "$tmp/out";;
22475 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22484 # Transform confdefs.h into a sed script `conftest.defines', that
22485 # substitutes the proper values into config.h.in to produce config.h.
22486 rm -f conftest.defines conftest.tail
22487 # First, append a space to every undef/define line, to ease matching.
22488 echo 's/$/ /' >conftest.defines
22489 # Then, protect against being on the right side of a sed subst, or in
22490 # an unquoted here document, in config.status. If some macros were
22491 # called several times there might be several #defines for the same
22492 # symbol, which is useless. But do not sort them, since the last
22493 # AC_DEFINE must be honored.
22494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22495 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22496 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22497 # PARAMS is the parameter list in the macro definition--in most cases, it's
22498 # just an empty string.
22499 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22500 ac_dB='\\)[ (].*,\\1define\\2'
22508 s/^[ ]*#[ ]*define[ ][ ]*//
22513 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22514 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22515 ' >>conftest.defines
22517 # Remove the space that was appended to ease matching.
22518 # Then replace #undef with comments. This is necessary, for
22519 # example, in the case of _POSIX_SOURCE, which is predefined and required
22520 # on some systems where configure will not decide to define it.
22521 # (The regexp can be short, since the line contains either #define or #undef.)
22523 s,^[ #]*u.*,/* & */,' >>conftest.defines
22525 # Break up conftest.defines:
22526 ac_max_sed_lines=50
22528 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22529 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22530 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22532 ac_in='$ac_file_inputs'
22533 ac_out='"$tmp/out1"'
22534 ac_nxt='"$tmp/out2"'
22538 # Write a here document:
22539 cat >>$CONFIG_STATUS <<_ACEOF
22540 # First, check the format of the line:
22541 cat >"\$tmp/defines.sed" <<\\CEOF
22542 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22543 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22547 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22549 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22550 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22551 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22552 grep . conftest.tail >/dev/null || break
22553 rm -f conftest.defines
22554 mv conftest.tail conftest.defines
22556 rm -f conftest.defines conftest.tail
22558 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22559 cat >>$CONFIG_STATUS <<\_ACEOF
22560 if test x"$ac_file" != x-; then
22561 echo "/* $configure_input */" >"$tmp/config.h"
22562 cat "$ac_result" >>"$tmp/config.h"
22563 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22565 echo "$as_me: $ac_file is unchanged" >&6;}
22568 mv "$tmp/config.h" $ac_file
22571 echo "/* $configure_input */"
22577 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22578 echo "$as_me: executing $ac_file commands" >&6;}
22583 case $ac_file$ac_mode in
22584 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22585 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22586 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22587 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22588 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22589 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22590 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22591 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22592 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22593 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22594 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22595 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22596 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22597 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22598 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22599 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22600 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22601 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22602 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22603 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22604 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22605 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22606 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22607 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22608 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22609 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22615 { (exit 0); exit 0; }
22617 chmod +x $CONFIG_STATUS
22618 ac_clean_files=$ac_clean_files_save
22621 # configure is writing to config.log, and then calls config.status.
22622 # config.status does its own redirection, appending to config.log.
22623 # Unfortunately, on DOS this fails, as config.log is still kept open
22624 # by configure, so config.status won't be able to write to it; its
22625 # output is simply discarded. So we exec the FD to /dev/null,
22626 # effectively closing config.log, so it can be properly (re)opened and
22627 # appended to by config.status. When coming back to configure, we
22628 # need to make the FD available again.
22629 if test "$no_create" != yes; then
22631 ac_config_status_args=
22632 test "$silent" = yes &&
22633 ac_config_status_args="$ac_config_status_args --quiet"
22635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22638 # would make configure fail if this is the last instruction.
22639 $ac_cs_success || { (exit 1); exit 1; }
22643 # CONFIG_SUBDIRS section.
22645 if test "$no_recursion" != yes; then
22647 # Remove --cache-file and --srcdir arguments so they do not pile up.
22648 ac_sub_configure_args=
22650 eval "set x $ac_configure_args"
22654 if test -n "$ac_prev"; then
22659 -cache-file | --cache-file | --cache-fil | --cache-fi \
22660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22661 ac_prev=cache_file ;;
22662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22666 --config-cache | -C)
22668 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22670 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22672 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22674 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22678 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22680 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22684 # Always prepend --prefix to ensure using the same prefix
22685 # in subdir configurations.
22686 ac_arg="--prefix=$prefix"
22688 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22690 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22693 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22695 # Do not complain, so a configure script can configure whichever
22696 # parts of a large source tree are present.
22697 test -d "$srcdir/$ac_dir" || continue
22699 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22700 echo "$as_me:$LINENO: $ac_msg" >&5
22704 -*) as_dir=./$as_dir;;
22706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22711 *) as_qdir=$as_dir;;
22713 as_dirs="'$as_qdir' $as_dirs"
22714 as_dir=`$as_dirname -- "$as_dir" ||
22715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22716 X"$as_dir" : 'X\(//\)[^/]' \| \
22717 X"$as_dir" : 'X\(//\)$' \| \
22718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22724 /^X\(\/\/\)[^/].*/{
22737 test -d "$as_dir" && break
22739 test -z "$as_dirs" || eval "mkdir $as_dirs"
22740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22742 { (exit 1); exit 1; }; }; }
22746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22749 # A ".." for each directory in $ac_dir_suffix.
22750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22751 case $ac_top_builddir_sub in
22752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22756 ac_abs_top_builddir=$ac_pwd
22757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22758 # for backward compatibility:
22759 ac_top_builddir=$ac_top_build_prefix
22762 .) # We are building in place.
22764 ac_top_srcdir=$ac_top_builddir_sub
22765 ac_abs_top_srcdir=$ac_pwd ;;
22766 [\\/]* | ?:[\\/]* ) # Absolute name.
22767 ac_srcdir=$srcdir$ac_dir_suffix;
22768 ac_top_srcdir=$srcdir
22769 ac_abs_top_srcdir=$srcdir ;;
22770 *) # Relative name.
22771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22772 ac_top_srcdir=$ac_top_build_prefix$srcdir
22773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22780 # Check for guested configure; otherwise get Cygnus style configure.
22781 if test -f "$ac_srcdir/configure.gnu"; then
22782 ac_sub_configure=$ac_srcdir/configure.gnu
22783 elif test -f "$ac_srcdir/configure"; then
22784 ac_sub_configure=$ac_srcdir/configure
22785 elif test -f "$ac_srcdir/configure.in"; then
22786 # This should be Cygnus configure.
22787 ac_sub_configure=$ac_aux_dir/configure
22789 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22790 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22794 # The recursion is here.
22795 if test -n "$ac_sub_configure"; then
22796 # Make the cache file name correct relative to the subdirectory.
22797 case $cache_file in
22798 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22799 *) # Relative name.
22800 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22803 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22804 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22805 # The eval makes quoting arguments work.
22806 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22807 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22808 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22809 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22810 { (exit 1); exit 1; }; }