2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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-2012 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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-polly Use polly if available (default is YES)
1395 --enable-libcpp Use libc++ if available (default is NO)
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-docs Build documents (default is YES)
1409 --enable-doxygen Build doxygen documentation (default is NO)
1410 --enable-threads Use threads if available (default is YES)
1411 --enable-pthreads Use pthreads if available (default is YES)
1412 --enable-pic Build LLVM with Position Independent Code (default
1414 --enable-shared Build a shared library and link tools against it
1416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1417 Win32 DLL (default is NO)
1418 --enable-timestamps Enable embedding timestamp information in build
1420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
1422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, cbe, and cpp (default=all)
1424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
1426 --enable-libffi Check for the presence of libffi (default is NO)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-extra-ld-options Specify additional options to link LLVM with
1436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 --with-clang-srcdir Directory to the out-of-tree Clang source
1439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-gcc-toolchain Directory where gcc is installed.
1445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
1447 --with-bug-report-url Specify the URL where bug reports should be
1448 submitted (default=http://llvm.org/bugs/)
1449 --with-internal-prefix Installation directory for internal files
1450 --with-tclinclude directory where tcl headers are
1451 --with-udis86=<path> Use udis86 external x86 disassembler library
1452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
1454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <http://llvm.org/bugs/>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 LLVM configure 3.1svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by LLVM $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 1
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954 if test ${srcdir} != "." ; then
1955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 for ac_prog in clang llvm-gcc gcc
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2007 test -n "$CC" && break
2010 if test -z "$CC"; then
2012 for ac_prog in clang llvm-gcc gcc
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_ac_ct_CC="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2051 test -n "$ac_ct_CC" && break
2054 if test "x$ac_ct_CC" = x; then
2057 case $cross_compiling:$ac_tool_warned in
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet. If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2112 cat >conftest.$ac_ext <<_ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort. b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions. Remove them first so a
2143 # subsequent execution test works.
2145 for ac_file in $ac_files
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 if { (ac_try="$ac_link_default"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_link_default") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2169 for ac_file in $ac_files
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176 # We found the default executable, but exeext='' is most
2180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2211 # Check that the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 if test "$cross_compiling" = maybe; then
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_link") 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compile") 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.$ac_ext <<_ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2513 grep -v '^ *+' conftest.er1 >conftest.err
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_c_werror_flag=$ac_save_c_werror_flag
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2622 if test "$GCC" = yes; then
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_prog_cc_c89=no
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2659 s = g (p, va_arg (v,int));
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std. */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_cv_prog_cc_c89=$ac_arg
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
2741 rm -f conftest.$ac_ext
2746 case "x$ac_cv_prog_cc_c89" in
2748 { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2754 CC="$CC $ac_cv_prog_cc_c89"
2755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2815 test -n "$CXX" && break
2818 if test -z "$CXX"; then
2820 for ac_prog in clang++ llvm-g++ g++
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2859 test -n "$ac_ct_CXX" && break
2862 if test "x$ac_ct_CXX" = x; then
2865 case $cross_compiling:$ac_tool_warned in
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3186 if test "$GXX" = yes; then
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3209 if test -z "$CPP"; then
3210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 for ac_c_preproc_warn_flag in '' yes
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3232 # include <limits.h>
3234 # include <assert.h>
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260 if test -z "$ac_cpp_err"; then
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 # Broken: fails on valid input.
3270 rm -f conftest.err conftest.$ac_ext
3272 # OK, works on sane cases. Now check whether nonexistent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include <ac_nonexistent.h>
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304 if test -z "$ac_cpp_err"; then
3305 # Broken: success on invalid input.
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Passes both tests.
3316 rm -f conftest.err conftest.$ac_ext
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3336 for ac_c_preproc_warn_flag in '' yes
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 # include <limits.h>
3353 # include <assert.h>
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379 if test -z "$ac_cpp_err"; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 # Broken: fails on valid input.
3389 rm -f conftest.err conftest.$ac_ext
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Passes both tests.
3435 rm -f conftest.err conftest.$ac_ext
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3464 if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3484 for i in `ls ${srcdir}/projects`
3486 if test -d ${srcdir}/projects/${i} ; then
3488 sample) subdirs="$subdirs projects/sample"
3490 privbracket) subdirs="$subdirs projects/privbracket"
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3500 safecode) subdirs="$subdirs projects/safecode"
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3525 case "$enableval" in
3530 default) ENABLE_POLLY=1
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3541 subdirs="$subdirs tools/polly"
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3579 ac_save_IFS=$IFS; IFS='-'
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3616 ac_save_IFS=$IFS; IFS='-'
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3671 program_prefix=${target_alias}-
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
3704 *-*-freebsd* | *-*-kfreebsd-gnu)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 llvm_cv_target_os_type="AIX" ;;
3798 llvm_cv_target_os_type="IRIX" ;;
3800 llvm_cv_target_os_type="Cygwin" ;;
3802 llvm_cv_target_os_type="Darwin" ;;
3804 llvm_cv_target_os_type="Minix" ;;
3805 *-*-freebsd*| *-*-kfreebsd-gnu)
3806 llvm_cv_target_os_type="FreeBSD" ;;
3808 llvm_cv_target_os_type="OpenBSD" ;;
3810 llvm_cv_target_os_type="NetBSD" ;;
3812 llvm_cv_target_os_type="DragonFly" ;;
3814 llvm_cv_target_os_type="HP-UX" ;;
3816 llvm_cv_target_os_type="Interix" ;;
3818 llvm_cv_target_os_type="Linux" ;;
3820 llvm_cv_target_os_type="GNU" ;;
3822 llvm_cv_target_os_type="SunOS" ;;
3824 llvm_cv_target_os_type="AuroraUX" ;;
3826 llvm_cv_target_os_type="Win32" ;;
3828 llvm_cv_target_os_type="MingW" ;;
3830 llvm_cv_target_os_type="Haiku" ;;
3832 llvm_cv_target_os_type="RTEMS" ;;
3834 llvm_cv_target_os_type="NativeClient" ;;
3836 llvm_cv_target_os_type="Freestanding" ;;
3838 llvm_cv_target_os_type="Unknown" ;;
3841 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844 if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3852 HOST_OS=$llvm_cv_os_type
3854 TARGET_OS=$llvm_cv_target_os_type
3857 LINKALL=$llvm_cv_link_all_option
3859 NOLINKALL=$llvm_cv_no_link_all_option
3862 case $llvm_cv_platform_type in
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_UNIX 1
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_WIN32 1
3887 { echo "$as_me:$LINENO: checking target architecture" >&5
3888 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889 if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
3899 mipsel-*) llvm_cv_target_arch="Mips" ;;
3900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
3902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3904 ptx-*) llvm_cv_target_arch="PTX" ;;
3905 *) llvm_cv_target_arch="Unknown" ;;
3908 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911 if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 ARCH=$llvm_cv_target_arch
3927 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3928 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3929 if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 # Extract the first word of "grep ggrep" to use in msg output
3933 if test -z "$GREP"; then
3934 set dummy grep ggrep; ac_prog_name=$2
3935 if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 ac_count=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978 $ac_path_GREP_found && break 3
3988 GREP="$ac_cv_path_GREP"
3989 if test -z "$GREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3996 ac_cv_path_GREP=$GREP
4001 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4002 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4003 GREP="$ac_cv_path_GREP"
4006 { echo "$as_me:$LINENO: checking for egrep" >&5
4007 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4014 # Extract the first word of "egrep" to use in msg output
4015 if test -z "$EGREP"; then
4016 set dummy egrep; ac_prog_name=$2
4017 if test "${ac_cv_path_EGREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_path_EGREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in egrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4031 # Check for GNU ac_path_EGREP and select it if it is found.
4032 # Check for GNU $ac_path_EGREP
4033 case `"$ac_path_EGREP" --version 2>&1` in
4035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 echo 'EGREP' >> "conftest.nl"
4045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_EGREP="$ac_path_EGREP"
4051 ac_path_EGREP_max=$ac_count
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_EGREP_found && break 3
4070 EGREP="$ac_cv_path_EGREP"
4071 if test -z "$EGREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4078 ac_cv_path_EGREP=$EGREP
4084 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4085 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4086 EGREP="$ac_cv_path_EGREP"
4089 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_header_stdc=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_header_stdc=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then
4172 ac_cv_header_stdc=no
4178 if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "free" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201 if test "$cross_compiling" = yes; then
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4212 #if ((' ' & 0x0FF) == 0x020)
4213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4216 # define ISLOWER(c) \
4217 (('a' <= (c) && (c) <= 'i') \
4218 || ('j' <= (c) && (c) <= 'r') \
4219 || ('s' <= (c) && (c) <= 'z'))
4220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228 for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i))
4230 || toupper (i) != TOUPPER (i))
4235 rm -f conftest$ac_exeext
4236 if { (ac_try="$ac_link"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_link") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4257 echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4262 ac_cv_header_stdc=no
4264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4272 if test $ac_cv_header_stdc = yes; then
4274 cat >>confdefs.h <<\_ACEOF
4275 #define STDC_HEADERS 1
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4307 #include <$ac_header>
4309 rm -f conftest.$ac_objext
4310 if { (ac_try="$ac_compile"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_compile") 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 eval "$as_ac_Header=yes"
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 eval "$as_ac_Header=no"
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_res=`eval echo '${'$as_ac_Header'}'`
4354 { echo "$as_me:$LINENO: result: $ac_res" >&5
4355 echo "${ECHO_T}$ac_res" >&6; }
4356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4357 cat >>confdefs.h <<_ACEOF
4358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4367 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4368 if test "${ac_cv_c_bigendian+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 # See if sys/param.h defines the BYTE_ORDER macro.
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 # It does; now see whether it defined to BIG_ENDIAN or not.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4439 #if BYTE_ORDER != BIG_ENDIAN
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_c_bigendian=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_c_bigendian=no
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 # It does not; compile a test program.
4495 if test "$cross_compiling" = yes; then
4496 # try to guess the endianness by grepping values into an object file
4497 ac_cv_c_bigendian=unknown
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4505 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4507 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4508 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4513 _ascii (); _ebcdic ();
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4527 grep -v '^ *+' conftest.er1 >conftest.err
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4553 ac_cv_c_bigendian=yes
4555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556 if test "$ac_cv_c_bigendian" = unknown; then
4557 ac_cv_c_bigendian=no
4559 # finding both strings is unlikely to happen, but who knows?
4560 ac_cv_c_bigendian=unknown
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4583 /* Are we little or big endian? From Harbison&Steele. */
4587 char c[sizeof (long int)];
4590 return u.c[sizeof (long int) - 1] == 1;
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_c_bigendian=no
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_c_bigendian=yes
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635 case $ac_cv_c_bigendian in
4643 { { echo "$as_me:$LINENO: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645 echo "$as_me: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4651 if test "$cross_compiling" = yes; then
4652 LLVM_CROSS_COMPILING=1
4655 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4656 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4657 if test "${ac_cv_build_exeext+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4661 ac_cv_build_exeext=.exe
4663 ac_build_prefix=${build_alias}-
4665 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4666 set dummy ${ac_build_prefix}gcc; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 if test -n "$BUILD_CC"; then
4673 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 BUILD_CC=$ac_cv_prog_BUILD_CC
4693 if test -n "$BUILD_CC"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4695 echo "${ECHO_T}$BUILD_CC" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 if test -z "$BUILD_CC"; then
4703 # Extract the first word of "gcc", so it can be a program name with args.
4704 set dummy gcc; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$BUILD_CC"; then
4711 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_BUILD_CC="gcc"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test -z "$BUILD_CC"; then
4741 # Extract the first word of "cc", so it can be a program name with args.
4742 set dummy cc; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$BUILD_CC"; then
4749 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760 ac_prog_rejected=yes
4763 ac_cv_prog_BUILD_CC="cc"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 if test $ac_prog_rejected = yes; then
4772 # We found a bogon in the path, so make sure we never use it.
4773 set dummy $ac_cv_prog_BUILD_CC
4775 if test $# != 0; then
4776 # We chose a different compiler from the bogus one.
4777 # However, it has the same basename, so the bogon will be chosen
4778 # first if we set BUILD_CC to just the basename; use the full file name.
4780 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4785 BUILD_CC=$ac_cv_prog_BUILD_CC
4786 if test -n "$BUILD_CC"; then
4787 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4788 echo "${ECHO_T}$BUILD_CC" >&6; }
4790 { echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6; }
4797 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
4800 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4802 echo 'int main () { return 0; }' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4805 (eval $ac_build_link) 2>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 for file in conftest.*; do
4811 *.c | *.o | *.obj | *.dSYM) ;;
4812 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4816 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4817 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4818 { (exit 1); exit 1; }; }
4821 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4826 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4827 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4828 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4829 ac_build_exeext=$BUILD_EXEEXT
4831 ac_build_prefix=${build_alias}-
4832 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4833 set dummy ${ac_build_prefix}g++; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$BUILD_CXX"; then
4840 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4860 if test -n "$BUILD_CXX"; then
4861 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4862 echo "${ECHO_T}$BUILD_CXX" >&6; }
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 if test -z "$BUILD_CXX"; then
4870 # Extract the first word of "g++", so it can be a program name with args.
4871 set dummy g++; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 if test -n "$BUILD_CXX"; then
4878 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_BUILD_CXX="g++"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4907 if test -z "$BUILD_CXX"; then
4908 # Extract the first word of "c++", so it can be a program name with args.
4909 set dummy c++; ac_word=$2
4910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 if test -n "$BUILD_CXX"; then
4916 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4927 ac_prog_rejected=yes
4930 ac_cv_prog_BUILD_CXX="c++"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 if test $ac_prog_rejected = yes; then
4939 # We found a bogon in the path, so make sure we never use it.
4940 set dummy $ac_cv_prog_BUILD_CXX
4942 if test $# != 0; then
4943 # We chose a different compiler from the bogus one.
4944 # However, it has the same basename, so the bogon will be chosen
4945 # first if we set BUILD_CXX to just the basename; use the full file name.
4947 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4952 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4953 if test -n "$BUILD_CXX"; then
4954 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4955 echo "${ECHO_T}$BUILD_CXX" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4965 LLVM_CROSS_COMPILING=0
4969 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4980 # Check whether --enable-libcpp was given.
4981 if test "${enable_libcpp+set}" = set; then
4982 enableval=$enable_libcpp;
4987 case "$enableval" in
4988 yes) ENABLE_LIBCPP=1
4992 default) ENABLE_LIBCPP=0
4994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4995 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4999 # Check whether --enable-optimized was given.
5000 if test "${enable_optimized+set}" = set; then
5001 enableval=$enable_optimized;
5006 if test ${enableval} = "no" ; then
5010 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5014 # Check whether --enable-profiling was given.
5015 if test "${enable_profiling+set}" = set; then
5016 enableval=$enable_profiling;
5021 if test ${enableval} = "no" ; then
5025 ENABLE_PROFILING=ENABLE_PROFILING=1
5029 # Check whether --enable-assertions was given.
5030 if test "${enable_assertions+set}" = set; then
5031 enableval=$enable_assertions;
5036 if test ${enableval} = "yes" ; then
5040 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5044 # Check whether --enable-expensive-checks was given.
5045 if test "${enable_expensive_checks+set}" = set; then
5046 enableval=$enable_expensive_checks;
5051 if test ${enableval} = "yes" ; then
5052 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5054 EXPENSIVE_CHECKS=yes
5057 ENABLE_EXPENSIVE_CHECKS=
5063 # Check whether --enable-debug-runtime was given.
5064 if test "${enable_debug_runtime+set}" = set; then
5065 enableval=$enable_debug_runtime;
5070 if test ${enableval} = "no" ; then
5074 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5078 # Check whether --enable-debug-symbols was given.
5079 if test "${enable_debug_symbols+set}" = set; then
5080 enableval=$enable_debug_symbols;
5085 if test ${enableval} = "no" ; then
5089 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5093 # Check whether --enable-jit was given.
5094 if test "${enable_jit+set}" = set; then
5095 enableval=$enable_jit;
5100 if test ${enableval} = "no"
5105 case "$llvm_cv_target_arch" in
5106 x86) TARGET_HAS_JIT=1
5108 Sparc) TARGET_HAS_JIT=0
5110 PowerPC) TARGET_HAS_JIT=1
5112 x86_64) TARGET_HAS_JIT=1
5114 ARM) TARGET_HAS_JIT=1
5116 Mips) TARGET_HAS_JIT=1
5118 XCore) TARGET_HAS_JIT=0
5120 MSP430) TARGET_HAS_JIT=0
5122 Hexagon) TARGET_HAS_JIT=0
5124 MBlaze) TARGET_HAS_JIT=0
5126 PTX) TARGET_HAS_JIT=0
5133 # Check whether --enable-docs was given.
5134 if test "${enable_docs+set}" = set; then
5135 enableval=$enable_docs;
5140 case "$enableval" in
5145 default) ENABLE_DOCS=1
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5152 # Check whether --enable-doxygen was given.
5153 if test "${enable_doxygen+set}" = set; then
5154 enableval=$enable_doxygen;
5159 case "$enableval" in
5160 yes) ENABLE_DOXYGEN=1
5162 no) ENABLE_DOXYGEN=0
5164 default) ENABLE_DOXYGEN=0
5166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5167 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
5171 # Check whether --enable-threads was given.
5172 if test "${enable_threads+set}" = set; then
5173 enableval=$enable_threads;
5178 case "$enableval" in
5179 yes) LLVM_ENABLE_THREADS=1
5181 no) LLVM_ENABLE_THREADS=0
5183 default) LLVM_ENABLE_THREADS=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 cat >>confdefs.h <<_ACEOF
5191 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5195 # Check whether --enable-pthreads was given.
5196 if test "${enable_pthreads+set}" = set; then
5197 enableval=$enable_pthreads;
5202 case "$enableval" in
5203 yes) ENABLE_PTHREADS=1
5205 no) ENABLE_PTHREADS=0
5207 default) ENABLE_PTHREADS=1
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 # Check whether --enable-pic was given.
5215 if test "${enable_pic+set}" = set; then
5216 enableval=$enable_pic;
5221 case "$enableval" in
5226 default) ENABLE_PIC=1
5228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5229 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
5233 cat >>confdefs.h <<_ACEOF
5234 #define ENABLE_PIC $ENABLE_PIC
5238 # Check whether --enable-shared was given.
5239 if test "${enable_shared+set}" = set; then
5240 enableval=$enable_shared;
5245 case "$enableval" in
5246 yes) ENABLE_SHARED=1
5250 default) ENABLE_SHARED=0
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5257 # Check whether --enable-embed-stdcxx was given.
5258 if test "${enable_embed_stdcxx+set}" = set; then
5259 enableval=$enable_embed_stdcxx;
5264 case "$enableval" in
5265 yes) ENABLE_EMBED_STDCXX=1
5267 no) ENABLE_EMBED_STDCXX=0
5269 default) ENABLE_EMBED_STDCXX=0
5271 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5272 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5276 # Check whether --enable-timestamps was given.
5277 if test "${enable_timestamps+set}" = set; then
5278 enableval=$enable_timestamps;
5283 case "$enableval" in
5284 yes) ENABLE_TIMESTAMPS=1
5286 no) ENABLE_TIMESTAMPS=0
5288 default) ENABLE_TIMESTAMPS=1
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5295 cat >>confdefs.h <<_ACEOF
5296 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5301 # Check whether --enable-targets was given.
5302 if test "${enable_targets+set}" = set; then
5303 enableval=$enable_targets;
5308 if test "$enableval" = host-only ; then
5311 case "$enableval" in
5312 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
5313 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5315 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5319 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5321 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5323 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5325 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5326 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5327 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5329 host) case "$llvm_cv_target_arch" in
5330 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5334 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5337 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5338 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5339 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5340 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5342 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5343 echo "$as_me: error: Can not set target to build" >&2;}
5344 { (exit 1); exit 1; }; } ;;
5346 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5347 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5353 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5356 for a_target in $TARGETS_TO_BUILD; do
5357 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5363 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5364 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5365 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5366 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5367 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5371 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5400 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5419 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434 withval=$with_optimize_option;
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5443 case "$llvm_cv_os_type" in
5444 FreeBSD) optimize_option=-O2 ;;
5445 MingW) optimize_option=-O2 ;;
5446 *) optimize_option=-O3 ;;
5448 *) optimize_option="$withval" ;;
5450 OPTIMIZE_OPTION=$optimize_option
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458 withval=$with_extra_options;
5464 default) EXTRA_OPTIONS= ;;
5465 *) EXTRA_OPTIONS=$withval ;;
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473 withval=$with_extra_ld_options;
5479 default) EXTRA_LD_OPTIONS= ;;
5480 *) EXTRA_LD_OPTIONS=$withval ;;
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487 enableval=$enable_bindings;
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495 all ) BINDINGS_TO_BUILD="ocaml" ;;
5496 none | no) BINDINGS_TO_BUILD="" ;;
5497 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498 case "$a_binding" in
5499 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502 { (exit 1); exit 1; }; } ;;
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511 withval=$with_ocaml_libdir;
5517 auto) with_ocaml_libdir="$withval" ;;
5518 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5525 # Check whether --with-clang-srcdir was given.
5526 if test "${with_clang_srcdir+set}" = set; then
5527 withval=$with_clang_srcdir;
5533 -) clang_src_root="" ;;
5534 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5535 *) clang_src_root="$ac_pwd/$withval" ;;
5537 CLANG_SRC_ROOT=$clang_src_root
5541 # Check whether --with-clang-resource-dir was given.
5542 if test "${with_clang_resource_dir+set}" = set; then
5543 withval=$with_clang_resource_dir;
5549 cat >>confdefs.h <<_ACEOF
5550 #define CLANG_RESOURCE_DIR "$withval"
5555 # Check whether --with-c-include-dirs was given.
5556 if test "${with_c_include_dirs+set}" = set; then
5557 withval=$with_c_include_dirs;
5563 cat >>confdefs.h <<_ACEOF
5564 #define C_INCLUDE_DIRS "$withval"
5568 # Clang normally uses the system c++ headers and libraries. With this option,
5569 # clang will use the ones provided by a gcc installation instead. This option should
5570 # be passed the same value that was used with --prefix when configuring gcc.
5572 # Check whether --with-gcc-toolchain was given.
5573 if test "${with_gcc_toolchain+set}" = set; then
5574 withval=$with_gcc_toolchain;
5580 cat >>confdefs.h <<_ACEOF
5581 #define GCC_INSTALL_PREFIX "$withval"
5586 # Check whether --with-binutils-include was given.
5587 if test "${with_binutils_include+set}" = set; then
5588 withval=$with_binutils_include;
5594 default) WITH_BINUTILS_INCDIR=default ;;
5595 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5596 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5597 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5598 { (exit 1); exit 1; }; } ;;
5600 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5601 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5603 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5604 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5605 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5606 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5607 { (exit 1); exit 1; }; };
5612 # Check whether --with-bug-report-url was given.
5613 if test "${with_bug_report_url+set}" = set; then
5614 withval=$with_bug_report_url;
5616 withval="http://llvm.org/bugs/"
5620 cat >>confdefs.h <<_ACEOF
5621 #define BUG_REPORT_URL "$withval"
5625 # Check whether --enable-libffi was given.
5626 if test "${enable_libffi+set}" = set; then
5627 enableval=$enable_libffi; case "$enableval" in
5628 yes) llvm_cv_enable_libffi="yes" ;;
5629 no) llvm_cv_enable_libffi="no" ;;
5630 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5631 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5632 { (exit 1); exit 1; }; } ;;
5635 llvm_cv_enable_libffi=no
5640 # Check whether --with-internal-prefix was given.
5641 if test "${with_internal_prefix+set}" = set; then
5642 withval=$with_internal_prefix;
5647 INTERNAL_PREFIX=$withval
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}"
6897 # Find a good install program. We prefer a C program (faster),
6898 # so one script is as good as another. But avoid the broken or
6899 # incompatible versions:
6900 # SysV /etc/install, /usr/sbin/install
6901 # SunOS /usr/etc/install
6902 # IRIX /sbin/install
6904 # AmigaOS /C/install, which installs bootblocks on floppy discs
6905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6908 # OS/2's system install, which has a completely different semantic
6909 # ./install, which can be erroneously created by make from ./install.sh.
6910 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6912 if test -z "$INSTALL"; then
6913 if test "${ac_cv_path_install+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 # Account for people who put trailing slashes in PATH elements.
6923 ./ | .// | /cC/* | \
6924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6928 # OSF1 and SCO ODT 3.0 have their own names for install.
6929 # Don't use installbsd from OSF since it installs stuff as root
6931 for ac_prog in ginstall scoinst install; do
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6934 if test $ac_prog = install &&
6935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6936 # AIX install. It has an incompatible calling convention.
6938 elif test $ac_prog = install &&
6939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6940 # program-specific install script used by HP pwplus--don't use.
6943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6956 if test "${ac_cv_path_install+set}" = set; then
6957 INSTALL=$ac_cv_path_install
6959 # As a last resort, use the slow shell script. Don't cache a
6960 # value for INSTALL within a source directory, because that will
6961 # break other packages using the cache if that directory is
6962 # removed, or if the value is a relative name.
6963 INSTALL=$ac_install_sh
6966 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6967 echo "${ECHO_T}$INSTALL" >&6; }
6969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6970 # It thinks the first close brace ends the variable substitution.
6971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6978 [\\/$]* | ?:[\\/]* ) ;;
6979 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6982 # Extract the first word of "bzip2", so it can be a program name with args.
6983 set dummy bzip2; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_path_BZIP2+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 BZIP2=$ac_cv_path_BZIP2
7013 if test -n "$BZIP2"; then
7014 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7015 echo "${ECHO_T}$BZIP2" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 # Extract the first word of "cat", so it can be a program name with args.
7023 set dummy cat; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_path_CAT+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 if test -n "$CAT"; then
7054 { echo "$as_me:$LINENO: result: $CAT" >&5
7055 echo "${ECHO_T}$CAT" >&6; }
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7062 # Extract the first word of "doxygen", so it can be a program name with args.
7063 set dummy doxygen; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 DOXYGEN=$ac_cv_path_DOXYGEN
7093 if test -n "$DOXYGEN"; then
7094 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7095 echo "${ECHO_T}$DOXYGEN" >&6; }
7097 { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7102 # Extract the first word of "groff", so it can be a program name with args.
7103 set dummy groff; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_GROFF+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 GROFF=$ac_cv_path_GROFF
7133 if test -n "$GROFF"; then
7134 { echo "$as_me:$LINENO: result: $GROFF" >&5
7135 echo "${ECHO_T}$GROFF" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 # Extract the first word of "gzip", so it can be a program name with args.
7143 set dummy gzip; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 GZIPBIN=$ac_cv_path_GZIPBIN
7173 if test -n "$GZIPBIN"; then
7174 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7175 echo "${ECHO_T}$GZIPBIN" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7182 # Extract the first word of "pod2html", so it can be a program name with args.
7183 set dummy pod2html; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_POD2HTML+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 POD2HTML=$ac_cv_path_POD2HTML
7213 if test -n "$POD2HTML"; then
7214 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7215 echo "${ECHO_T}$POD2HTML" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "pod2man", so it can be a program name with args.
7223 set dummy pod2man; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_POD2MAN+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 POD2MAN=$ac_cv_path_POD2MAN
7253 if test -n "$POD2MAN"; then
7254 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7255 echo "${ECHO_T}$POD2MAN" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7262 # Extract the first word of "pdfroff", so it can be a program name with args.
7263 set dummy pdfroff; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_PDFROFF+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 PDFROFF=$ac_cv_path_PDFROFF
7293 if test -n "$PDFROFF"; then
7294 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7295 echo "${ECHO_T}$PDFROFF" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "runtest", so it can be a program name with args.
7303 set dummy runtest; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_RUNTEST+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 RUNTEST=$ac_cv_path_RUNTEST
7333 if test -n "$RUNTEST"; then
7334 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7335 echo "${ECHO_T}$RUNTEST" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7344 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7345 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7347 # Check whether --with-tclinclude was given.
7348 if test "${with_tclinclude+set}" = set; then
7349 withval=$with_tclinclude; with_tclinclude=${withval}
7354 if test "${ac_cv_path_tclsh+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test x"${with_tclinclude}" != x ; then
7359 if test -f ${with_tclinclude}/tclsh ; then
7360 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7361 elif test -f ${with_tclinclude}/src/tclsh ; then
7362 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7364 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7365 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7366 { (exit 1); exit 1; }; }
7372 if test x"${ac_cv_path_tclsh}" = x ; then
7373 { echo "$as_me:$LINENO: result: none" >&5
7374 echo "${ECHO_T}none" >&6; }
7375 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
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy $ac_prog; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_TCLSH+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 TCLSH=$ac_cv_path_TCLSH
7408 if test -n "$TCLSH"; then
7409 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7410 echo "${ECHO_T}$TCLSH" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 test -n "$TCLSH" && break
7420 if test x"${TCLSH}" = x ; then
7421 ac_cv_path_tclsh='';
7423 ac_cv_path_tclsh="${TCLSH}";
7426 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7427 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7428 TCLSH="${ac_cv_path_tclsh}"
7432 # Extract the first word of "zip", so it can be a program name with args.
7433 set dummy zip; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_ZIP+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$ZIP"; then
7464 { echo "$as_me:$LINENO: result: $ZIP" >&5
7465 echo "${ECHO_T}$ZIP" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 for ac_prog in ocamlc
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLC+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 OCAMLC=$ac_cv_path_OCAMLC
7505 if test -n "$OCAMLC"; then
7506 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7507 echo "${ECHO_T}$OCAMLC" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$OCAMLC" && break
7517 for ac_prog in ocamlopt
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 OCAMLOPT=$ac_cv_path_OCAMLOPT
7550 if test -n "$OCAMLOPT"; then
7551 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7552 echo "${ECHO_T}$OCAMLOPT" >&6; }
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 test -n "$OCAMLOPT" && break
7562 for ac_prog in ocamldep
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 OCAMLDEP=$ac_cv_path_OCAMLDEP
7595 if test -n "$OCAMLDEP"; then
7596 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7597 echo "${ECHO_T}$OCAMLDEP" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 test -n "$OCAMLDEP" && break
7607 for ac_prog in ocamldoc
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 OCAMLDOC=$ac_cv_path_OCAMLDOC
7640 if test -n "$OCAMLDOC"; then
7641 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7642 echo "${ECHO_T}$OCAMLDOC" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 test -n "$OCAMLDOC" && break
7652 for ac_prog in gas as
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_GAS+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 if test -n "$GAS"; then
7686 { echo "$as_me:$LINENO: result: $GAS" >&5
7687 echo "${ECHO_T}$GAS" >&6; }
7689 { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7694 test -n "$GAS" && break
7698 { echo "$as_me:$LINENO: checking for linker version" >&5
7699 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7700 if test "${llvm_cv_link_version+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 version_string="$(ld -v 2>&1 | head -1)"
7707 if (echo "$version_string" | grep -q "ld64"); then
7708 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7710 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7714 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7715 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7717 cat >>confdefs.h <<_ACEOF
7718 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7723 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7724 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7725 if test "${llvm_cv_link_use_r+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735 CFLAGS="$CFLAGS -Wl,-R."
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7766 { (case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_try") 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_try") 2>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 llvm_cv_link_use_r=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 llvm_cv_link_use_r=no
7793 rm -f core conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7805 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7806 if test "$llvm_cv_link_use_r" = yes ; then
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_LINK_R 1
7815 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7816 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7817 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858 { (case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_try") 2>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 llvm_cv_link_use_export_dynamic=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 llvm_cv_link_use_export_dynamic=no
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7897 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7898 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_LINK_EXPORT_DYNAMIC 1
7907 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7908 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7909 if test "${llvm_cv_link_use_version_script+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 # The following code is from the autoconf manual,
7921 # "11.13: Limitations of Usual Tools".
7922 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7923 # Use mktemp if possible; otherwise fall back on mkdir,
7924 # with $RANDOM to make collisions less likely.
7928 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7930 test -n "$tmp" && test -d "$tmp"
7932 tmp=$TMPDIR/foo$$-$RANDOM
7933 (umask 077 && mkdir "$tmp")
7936 echo "{" > "$tmp/export.map"
7937 echo " global: main;" >> "$tmp/export.map"
7938 echo " local: *;" >> "$tmp/export.map"
7939 echo "};" >> "$tmp/export.map"
7941 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 llvm_cv_link_use_version_script=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 llvm_cv_link_use_version_script=no
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 rm "$tmp/export.map"
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8013 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8014 if test "$llvm_cv_link_use_version_script" = yes ; then
8015 HAVE_LINK_VERSION_SCRIPT=1
8022 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8023 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8024 if test "${ac_cv_c_const+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8037 /* FIXME: Include the comments suggested by Paul. */
8039 /* Ultrix mips cc rejects this. */
8040 typedef int charset[2];
8042 /* SunOS 4.1.1 cc rejects this. */
8043 char const *const *ccp;
8045 /* NEC SVR4.0.2 mips cc rejects this. */
8046 struct point {int x, y;};
8047 static struct point const zero = {0,0};
8048 /* AIX XL C 1.02.0.0 rejects this.
8049 It does not let you subtract one const X* pointer from another in
8050 an arm of an if-expression whose if-part is not a constant
8052 const char *g = "string";
8053 ccp = &g + (g ? g-g : 0);
8054 /* HPUX 7.0 cc rejects these. */
8057 ccp = (char const *const *) p;
8058 { /* SCO 3.2v4 cc rejects this. */
8060 char const *s = 0 ? (char *) 0 : (char const *) 0;
8065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8067 const int *foo = &x[0];
8070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8071 typedef const int *iptr;
8075 { /* AIX XL C 1.02.0.0 rejects this saying
8076 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8077 struct s { int j; const int *ap[3]; };
8078 struct s *b; b->j = 5;
8080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8084 return !x[0] && !zero.x;
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8106 { (case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_try") 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest.$ac_objext'
8116 { (case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_try") 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8136 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8137 if test $ac_cv_c_const = no; then
8139 cat >>confdefs.h <<\_ACEOF
8151 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8152 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8153 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8154 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_try") 2>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 eval "$as_ac_Header=yes"
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 eval "$as_ac_Header=no"
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 ac_res=`eval echo '${'$as_ac_Header'}'`
8221 { echo "$as_me:$LINENO: result: $ac_res" >&5
8222 echo "${ECHO_T}$ac_res" >&6; }
8223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8224 cat >>confdefs.h <<_ACEOF
8225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8228 ac_header_dirent=$ac_hdr; break
8232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8233 if test $ac_header_dirent = dirent.h; then
8234 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8236 if test "${ac_cv_search_opendir+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_func_search_save_LIBS=$LIBS
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8247 /* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8262 for ac_lib in '' dir; do
8263 if test -z "$ac_lib"; then
8264 ac_res="none required"
8267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (ac_try="$ac_link"
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_link") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_try") 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_search_opendir=$ac_res
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8311 rm -f core conftest.err conftest.$ac_objext \
8313 if test "${ac_cv_search_opendir+set}" = set; then
8317 if test "${ac_cv_search_opendir+set}" = set; then
8320 ac_cv_search_opendir=no
8323 LIBS=$ac_func_search_save_LIBS
8325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8327 ac_res=$ac_cv_search_opendir
8328 if test "$ac_res" != no; then
8329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8334 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8335 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8336 if test "${ac_cv_search_opendir+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 ac_func_search_save_LIBS=$LIBS
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 /* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8362 for ac_lib in '' x; do
8363 if test -z "$ac_lib"; then
8364 ac_res="none required"
8367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_try") 2>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_search_opendir=$ac_res
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8411 rm -f core conftest.err conftest.$ac_objext \
8413 if test "${ac_cv_search_opendir+set}" = set; then
8417 if test "${ac_cv_search_opendir+set}" = set; then
8420 ac_cv_search_opendir=no
8423 LIBS=$ac_func_search_save_LIBS
8425 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8426 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8427 ac_res=$ac_cv_search_opendir
8428 if test "$ac_res" != no; then
8429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8436 for ac_header in dlfcn.h
8438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_res=`eval echo '${'$as_ac_Header'}'`
8446 { echo "$as_me:$LINENO: result: $ac_res" >&5
8447 echo "${ECHO_T}$ac_res" >&6; }
8449 # Is the header compilable?
8450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #include <$ac_header>
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_header_compiler=yes
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 ac_header_compiler=no
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8505 echo "${ECHO_T}$ac_header_compiler" >&6; }
8507 # Is the header present?
8508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <$ac_header>
8518 if { (ac_try="$ac_cpp conftest.$ac_ext"
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } >/dev/null; then
8531 if test -s conftest.err; then
8532 ac_cpp_err=$ac_c_preproc_warn_flag
8533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8540 if test -z "$ac_cpp_err"; then
8541 ac_header_preproc=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_header_preproc=no
8549 rm -f conftest.err conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8551 echo "${ECHO_T}$ac_header_preproc" >&6; }
8553 # So? What about this header?
8554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8560 ac_header_preproc=yes
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8576 ## ------------------------------------ ##
8577 ## Report this to http://llvm.org/bugs/ ##
8578 ## ------------------------------------ ##
8580 ) | sed "s/^/$as_me: WARNING: /" >&2
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 eval "$as_ac_Header=\$ac_header_preproc"
8590 ac_res=`eval echo '${'$as_ac_Header'}'`
8591 { echo "$as_me:$LINENO: result: $ac_res" >&5
8592 echo "${ECHO_T}$ac_res" >&6; }
8595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 # Check whether --enable-ltdl-install was given.
8605 if test "${enable_ltdl_install+set}" = set; then
8606 enableval=$enable_ltdl_install;
8612 if test x"${enable_ltdl_install-no}" != xno; then
8614 INSTALL_LTDL_FALSE='#'
8616 INSTALL_LTDL_TRUE='#'
8622 if test x"${enable_ltdl_convenience-no}" != xno; then
8623 CONVENIENCE_LTDL_TRUE=
8624 CONVENIENCE_LTDL_FALSE='#'
8626 CONVENIENCE_LTDL_TRUE='#'
8627 CONVENIENCE_LTDL_FALSE=
8631 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8634 libname_spec='lib$name'
8642 shlibpath_overrides_runpath=unknown
8644 dynamic_linker="$host_os ld.so"
8645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8646 if test "$GCC" = yes; then
8647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8649 # if the path contains ";" then we assume it to be the separator
8650 # otherwise default to the standard path separator (i.e. ":") - it is
8651 # assumed that no part of a normal pathname contains ";" but that should
8652 # okay in the real world where ";" in dirpaths is itself problematic.
8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8660 need_lib_prefix=unknown
8661 hardcode_into_libs=no
8663 # when you set need_version to no, make sure it does not cause -set_version
8664 # flags to be left without arguments
8665 need_version=unknown
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8671 shlibpath_var=LIBPATH
8673 # AIX 3 has no versioning support, so we append a major version to the name.
8674 soname_spec='${libname}${release}${shared_ext}$major'
8681 hardcode_into_libs=yes
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 supports IA64
8684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8685 shlibpath_var=LD_LIBRARY_PATH
8687 # With GCC up to 2.95.x, collect2 would create an import file
8688 # for dependence libraries. The import file would start with
8689 # the line `#! .'. This would cause the generated library to
8690 # depend on `.', always an invalid library. This was fixed in
8691 # development snapshots of GCC prior to 3.0.
8693 aix4 | aix4.[01] | aix4.[01].*)
8694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8704 # soname into executable. Probably we can add versioning support to
8705 # collect2, so additional links can be useful in future.
8706 if test "$aix_use_runtimelinking" = yes; then
8707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8708 # instead of lib<name>.a to let people know that these are not
8709 # typical AIX shared libraries.
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 # We preserve .a as extension for shared libraries through AIX4.2
8713 # and later when we are not doing run time linking.
8714 library_names_spec='${libname}${release}.a $libname.a'
8715 soname_spec='${libname}${release}${shared_ext}$major'
8717 shlibpath_var=LIBPATH
8722 library_names_spec='$libname.ixlibrary $libname.a'
8723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8724 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'
8728 library_names_spec='${libname}${shared_ext}'
8729 dynamic_linker="$host_os ld.so"
8730 shlibpath_var=LIBRARY_PATH
8736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8737 soname_spec='${libname}${release}${shared_ext}$major'
8738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8742 # the default ld.so.conf also contains /usr/contrib/lib and
8743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8744 # libtool to hard-code these into programs
8747 cygwin* | mingw* | pw32*)
8748 version_type=windows
8753 case $GCC,$host_os in
8754 yes,cygwin* | yes,mingw* | yes,pw32*)
8755 library_names_spec='$libname.dll.a'
8756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8757 postinstall_cmds='base_file=`basename \${file}`~
8758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8759 dldir=$destdir/`dirname \$dlpath`~
8760 test -d \$dldir || mkdir -p \$dldir~
8761 $install_prog $dir/$dlname \$dldir/$dlname~
8762 chmod a+x \$dldir/$dlname'
8763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8764 dlpath=$dir/\$dldll~
8766 shlibpath_overrides_runpath=yes
8770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8775 # MinGW DLLs use traditional 'lib' prefix
8776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8778 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8779 # It is most probably a Windows format PATH printed by
8780 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8781 # path with ; separators, and with drive letters. We can handle the
8782 # drive letters (cygwin fileutils understands them), so leave them,
8783 # especially as we might pass files found there to a mingw objdump,
8784 # which wouldn't understand a cygwinified path. Ahh.
8785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8791 # pw32 DLLs use 'pw' prefix rather than 'lib'
8792 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8801 dynamic_linker='Win32 ld.exe'
8802 # FIXME: first we should search . and the directory the executable is in
8806 darwin* | rhapsody*)
8807 dynamic_linker="$host_os dyld"
8811 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8812 soname_spec='${libname}${release}${major}$shared_ext'
8813 shlibpath_overrides_runpath=yes
8814 shlibpath_var=DYLD_LIBRARY_PATH
8815 shrext_cmds='.dylib'
8816 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8817 if test "$GCC" = yes; then
8818 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"`
8820 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LD_LIBRARY_PATH
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=no
8846 hardcode_into_libs=yes
8847 dynamic_linker='GNU ld.so'
8850 freebsd* | dragonfly*)
8851 # DragonFly does not have aout. When/if they implement a new
8852 # versioning mechanism, adjust this.
8853 if test -x /usr/bin/objformat; then
8854 objformat=`/usr/bin/objformat`
8857 freebsd[123].*) objformat=aout ;;
8861 version_type=freebsd-$objformat
8862 case $version_type in
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8873 shlibpath_var=LD_LIBRARY_PATH
8876 shlibpath_overrides_runpath=yes
8878 freebsd3.[01]* | freebsdelf3.[01]*)
8879 shlibpath_overrides_runpath=yes
8880 hardcode_into_libs=yes
8882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8884 shlibpath_overrides_runpath=no
8885 hardcode_into_libs=yes
8887 freebsd*) # from 4.6 on
8888 shlibpath_overrides_runpath=yes
8889 hardcode_into_libs=yes
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 hardcode_into_libs=yes
8904 hpux9* | hpux10* | hpux11*)
8905 # Give a soname corresponding to the major version so that dld.sl refuses to
8906 # link against other versions.
8913 hardcode_into_libs=yes
8914 dynamic_linker="$host_os dld.so"
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 if test "X$HPUX_IA64_MODE" = X32; then
8920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8928 hardcode_into_libs=yes
8929 dynamic_linker="$host_os dld.sl"
8930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8939 dynamic_linker="$host_os dld.sl"
8940 shlibpath_var=SHLIB_PATH
8941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8946 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8947 postinstall_cmds='chmod 555 $lib'
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8962 irix5* | irix6* | nonstopux*)
8964 nonstopux*) version_type=nonstopux ;;
8966 if test "$lt_cv_prog_gnu_ld" = yes; then
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8977 irix5* | nonstopux*)
8981 case $LD in # libtool.m4 will add one of these switches to LD
8982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8983 libsuff= shlibsuff= libmagic=32-bit;;
8984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8985 libsuff=32 shlibsuff=N32 libmagic=N32;;
8986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8988 *) libsuff= shlibsuff= libmagic=never-match;;
8992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8993 shlibpath_overrides_runpath=no
8994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8996 hardcode_into_libs=yes
8999 # No shared lib support for Linux oldld, aout, or coff.
9000 linux*oldld* | linux*aout* | linux*coff*)
9004 # This must be Linux ELF.
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'
9011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=no
9014 # This implies no fast_install, which is unacceptable.
9015 # Some rework will be needed to allow for fast_install
9016 # before this can be enabled.
9017 hardcode_into_libs=yes
9019 # Append ld.so.conf contents to the search path
9020 if test -f /etc/ld.so.conf; then
9021 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' ' '`
9022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9025 # We used to test for /lib/ld.so.1 and disable shared libraries on
9026 # powerpc, because MkLinux only supported shared libraries with the
9027 # GNU dynamic linker. Since this was broken with cross compilers,
9028 # most powerpc-linux boxes support dynamic linking these days and
9029 # people can always --disable-shared, the test was removed, and we
9030 # assume the GNU/Linux dynamic linker is in use.
9031 dynamic_linker='GNU/Linux ld.so'
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9043 dynamic_linker='GNU ld.so'
9050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9053 dynamic_linker='NetBSD (a.out) ld.so'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 dynamic_linker='NetBSD ld.elf_so'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=yes
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=yes
9083 sys_lib_dlsearch_path_spec="/usr/lib"
9085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9088 *) need_version=no ;;
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9095 openbsd2.[89] | openbsd2.[89].*)
9096 shlibpath_overrides_runpath=no
9099 shlibpath_overrides_runpath=yes
9103 shlibpath_overrides_runpath=yes
9108 libname_spec='$name'
9111 library_names_spec='$libname${shared_ext} $libname.a'
9112 dynamic_linker='OS/2 ld.exe'
9113 shlibpath_var=LIBPATH
9116 osf3* | osf4* | osf5*)
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9136 # ldd complains unless libraries are executable
9137 postinstall_cmds='chmod +x $lib'
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 if test "$with_gnu_ld" = yes; then
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 case $host_vendor in
9159 shlibpath_overrides_runpath=no
9161 export_dynamic_flag_spec='${wl}-Blargedynsym'
9162 runpath_var=LD_RUN_PATH
9170 shlibpath_overrides_runpath=no
9171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9177 if test -d /usr/nec ;then
9179 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9180 soname_spec='$libname${shared_ext}.$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9186 version_type=freebsd-elf
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 hardcode_into_libs=yes
9193 if test "$with_gnu_ld" = yes; then
9194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9195 shlibpath_overrides_runpath=no
9197 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9198 shlibpath_overrides_runpath=yes
9201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9205 sys_lib_dlsearch_path_spec='/usr/lib'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
9219 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9220 echo "${ECHO_T}$dynamic_linker" >&6; }
9221 test "$dynamic_linker" = no && can_build_shared=no
9223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9224 if test "$GCC" = yes; then
9225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9229 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9230 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9231 if test "${libltdl_cv_shlibext+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 eval libltdl_cv_shlibext=$shrext_cmds
9239 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9240 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9241 if test -n "$libltdl_cv_shlibext"; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9250 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9251 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9252 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 libltdl_cv_shlibpath_var="$shlibpath_var"
9257 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9258 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9259 if test -n "$libltdl_cv_shlibpath_var"; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9268 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9269 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9270 if test "${libltdl_cv_sys_search_path+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9275 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9276 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9277 if test -n "$libltdl_cv_sys_search_path"; then
9279 for dir in $libltdl_cv_sys_search_path; do
9280 if test -z "$sys_search_path"; then
9281 sys_search_path="$dir"
9283 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9287 cat >>confdefs.h <<_ACEOF
9288 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9293 { echo "$as_me:$LINENO: checking for objdir" >&5
9294 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9295 if test "${libltdl_cv_objdir+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 libltdl_cv_objdir="$objdir"
9299 if test -n "$objdir"; then
9302 rm -f .libs 2>/dev/null
9303 mkdir .libs 2>/dev/null
9304 if test -d .libs; then
9305 libltdl_cv_objdir=.libs
9307 # MS-DOS does not allow filenames that begin with a dot.
9308 libltdl_cv_objdir=_libs
9310 rmdir .libs 2>/dev/null
9314 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9315 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9317 cat >>confdefs.h <<_ACEOF
9318 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9326 # Check for command to grab the raw symbol name followed by C symbol from nm.
9327 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9328 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9329 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 # These are sane defaults that work on at least a few old systems.
9334 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9336 # Character class describing NM global symbol codes.
9337 symcode='[BCDEGRST]'
9339 # Regexp to match symbols that can be accessed directly from C.
9340 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9342 # Transform an extracted symbol line into a proper C declaration
9343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9345 # Transform an extracted symbol line into symbol name and symbol address
9346 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'"
9348 # Define system-specific variables.
9353 cygwin* | mingw* | pw32*)
9354 symcode='[ABCDGISTW]'
9356 hpux*) # Its linker distinguishes data from code symbols
9357 if test "$host_cpu" = ia64; then
9358 symcode='[ABCDEGRST]'
9360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9361 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'"
9364 if test "$host_cpu" = ia64; then
9365 symcode='[ABCDGIRSTW]'
9366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9367 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'"
9371 symcode='[BCDEGRST]'
9374 symcode='[BCDEGQRST]'
9385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9393 # Handle CRLF in mingw tool chain
9397 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9401 # If we're using GNU nm, then use its standard symbol codes.
9402 case `$NM -V 2>&1` in
9403 *GNU* | *'with BFD'*)
9404 symcode='[ABCDGIRSTW]' ;;
9407 # Try without a prefix undercore, then with it.
9408 for ac_symprfx in "" "_"; do
9410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9411 symxfrm="\\1 $ac_symprfx\\2 \\2"
9413 # Write the raw and C identifiers.
9414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9416 # Check to see that the pipe works correctly.
9420 cat > conftest.$ac_ext <<EOF
9425 void nm_test_func(){}
9429 int main(){nm_test_var='a';nm_test_func();return(0);}
9432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9433 (eval $ac_compile) 2>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; then
9437 # Now try to grab the symbols.
9439 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9440 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && test -s "$nlist"; then
9444 # Try sorting and uniquifying the output.
9445 if sort "$nlist" | uniq > "$nlist"T; then
9446 mv -f "$nlist"T "$nlist"
9451 # Make sure that we snagged all the symbols we need.
9452 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9453 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9454 cat <<EOF > conftest.$ac_ext
9460 # Now generate the symbol file.
9461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9463 cat <<EOF >> conftest.$ac_ext
9464 #if defined (__STDC__) && __STDC__
9465 # define lt_ptr_t void *
9467 # define lt_ptr_t char *
9471 /* The mapping between symbol names and symbols. */
9476 lt_preloaded_symbols[] =
9479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9480 cat <<\EOF >> conftest.$ac_ext
9488 # Now try linking the two files.
9489 mv conftest.$ac_objext conftstm.$ac_objext
9490 lt_save_LIBS="$LIBS"
9491 lt_save_CFLAGS="$CFLAGS"
9492 LIBS="conftstm.$ac_objext"
9493 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9501 LIBS="$lt_save_LIBS"
9502 CFLAGS="$lt_save_CFLAGS"
9504 echo "cannot find nm_test_func in $nlist" >&5
9507 echo "cannot find nm_test_var in $nlist" >&5
9510 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9513 echo "$progname: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 rm -f conftest* conftst*
9518 # Do not use the global_symbol_pipe unless it works.
9519 if test "$pipe_works" = yes; then
9522 lt_cv_sys_global_symbol_pipe=
9528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9529 lt_cv_sys_global_symbol_to_cdecl=
9531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9532 { echo "$as_me:$LINENO: result: failed" >&5
9533 echo "${ECHO_T}failed" >&6; }
9535 { echo "$as_me:$LINENO: result: ok" >&5
9536 echo "${ECHO_T}ok" >&6; }
9540 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9541 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9542 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9546 libltdl_cv_preloaded_symbols=yes
9548 libltdl_cv_preloaded_symbols=no
9552 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9553 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9554 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9556 cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_PRELOADED_SYMBOLS 1
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9571 { echo "$as_me:$LINENO: checking for shl_load" >&5
9572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9573 if test "${ac_cv_func_shl_load+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 cat >conftest.$ac_ext <<_ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9584 #define shl_load innocuous_shl_load
9586 /* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char shl_load (); below.
9588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 <limits.h> exists even on freestanding compilers. */
9592 # include <limits.h>
9594 # include <assert.h>
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9606 /* The GNU C library defines this for functions which it implements
9607 to always fail with ENOSYS. Some functions are actually named
9608 something starting with __ and the normal name is an alias. */
9609 #if defined __stub_shl_load || defined __stub___shl_load
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_link") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1 >conftest.err
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9636 { (case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_try") 2>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_cv_func_shl_load=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_cv_func_shl_load=no
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9666 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9667 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9668 if test $ac_cv_func_shl_load = yes; then
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_SHL_LOAD 1
9675 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9676 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9677 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 ac_check_lib_save_LIBS=$LIBS
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719 { (case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_try") 2>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_lib_dld_shl_load=yes
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_lib_dld_shl_load=no
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9751 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9752 if test $ac_cv_lib_dld_shl_load = yes; then
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_SHL_LOAD 1
9758 LIBADD_DL="$LIBADD_DL -ldld"
9760 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_lib_dl_dlopen=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_cv_lib_dl_dlopen=no
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9836 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9837 if test $ac_cv_lib_dl_dlopen = yes; then
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_LIBDL 1
9843 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_LIBDL 1
9901 libltdl_cv_func_dlopen="yes"
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9907 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9908 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 ac_check_lib_save_LIBS=$LIBS
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950 { (case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_try") 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_lib_svld_dlopen=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_lib_svld_dlopen=no
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9981 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9982 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9983 if test $ac_cv_lib_svld_dlopen = yes; then
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_LIBDL 1
9989 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9991 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9993 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 ac_check_lib_save_LIBS=$LIBS
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10015 return dld_link ();
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10029 grep -v '^ *+' conftest.er1 >conftest.err
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_dld_dld_link=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_lib_dld_dld_link=no
10062 rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10067 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10068 if test $ac_cv_lib_dld_dld_link = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10074 LIBADD_DL="$LIBADD_DL -ldld"
10076 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10077 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10078 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define _dyld_func_lookup innocuous__dyld_func_lookup
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char _dyld_func_lookup (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10097 # include <limits.h>
10099 # include <assert.h>
10102 #undef _dyld_func_lookup
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10110 char _dyld_func_lookup ();
10111 /* The GNU C library defines this for functions which it implements
10112 to always fail with ENOSYS. Some functions are actually named
10113 something starting with __ and the normal name is an alias. */
10114 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10121 return _dyld_func_lookup ();
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func__dyld_func_lookup=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_func__dyld_func_lookup=no
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10171 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10172 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10173 if test $ac_cv_func__dyld_func_lookup = yes; then
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_DYLD 1
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10202 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10204 lt_save_LIBS="$LIBS"
10205 LIBS="$LIBS $LIBADD_DL"
10207 for ac_func in dlerror
10209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10223 #define $ac_func innocuous_$ac_func
10225 /* System header to define __stub macros and hopefully few prototypes,
10226 which can conflict with char $ac_func (); below.
10227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228 <limits.h> exists even on freestanding compilers. */
10231 # include <limits.h>
10233 # include <assert.h>
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10245 /* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248 #if defined __stub_$ac_func || defined __stub___$ac_func
10255 return $ac_func ();
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1 >conftest.err
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 eval "$as_ac_var=yes"
10296 echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10299 eval "$as_ac_var=no"
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10305 ac_res=`eval echo '${'$as_ac_var'}'`
10306 { echo "$as_me:$LINENO: result: $ac_res" >&5
10307 echo "${ECHO_T}$ac_res" >&6; }
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then
10309 cat >>confdefs.h <<_ACEOF
10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10316 LIBS="$lt_save_LIBS"
10319 ac_cpp='$CPP $CPPFLAGS'
10320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10326 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10327 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10328 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 ac_cv_sys_symbol_underscore=no
10332 cat > conftest.$ac_ext <<EOF
10333 void nm_test_func(){}
10334 int main(){nm_test_func;return 0;}
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; then
10341 # Now try to grab the symbols.
10342 ac_nlist=conftest.nm
10343 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10344 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && test -s "$ac_nlist"; then
10348 # See whether the symbols have a leading underscore.
10349 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10350 ac_cv_sys_symbol_underscore=yes
10352 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10355 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10359 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10362 echo "configure: failed program was:" >&5
10368 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10369 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10372 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10373 if test x"$libltdl_cv_func_dlopen" = xyes ||
10374 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10375 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10376 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10377 if test "${libltdl_cv_need_uscore+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 libltdl_cv_need_uscore=unknown
10382 LIBS="$LIBS $LIBADD_DL"
10383 if test "$cross_compiling" = yes; then :
10384 libltdl_cv_need_uscore=cross
10386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387 lt_status=$lt_dlunknown
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10387 "configure"
10390 #include "confdefs.h"
10399 # define LT_DLGLOBAL RTLD_GLOBAL
10402 # define LT_DLGLOBAL DL_GLOBAL
10404 # define LT_DLGLOBAL 0
10408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409 find out it does not work in some platform. */
10410 #ifndef LT_DLLAZY_OR_NOW
10412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10415 # define LT_DLLAZY_OR_NOW DL_LAZY
10418 # define LT_DLLAZY_OR_NOW RTLD_NOW
10421 # define LT_DLLAZY_OR_NOW DL_NOW
10423 # define LT_DLLAZY_OR_NOW 0
10431 extern "C" void exit (int);
10434 void fnord() { int i=42;}
10437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10438 int status = $lt_dlunknown;
10442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10444 /* dlclose (self); */
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10457 (./conftest; exit; ) >&5 2>/dev/null
10459 case x$lt_status in
10460 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10461 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10462 x$lt_dlunknown|x*) ;;
10465 # compilation failed
10474 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10475 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10479 if test x"$libltdl_cv_need_uscore" = xyes; then
10481 cat >>confdefs.h <<\_ACEOF
10482 #define NEED_USCORE 1
10488 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10489 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10490 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 # PORTME does your system automatically load deplibs for dlopen?
10494 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10495 # For now, we just catch OSes we know something about -- in the
10496 # future, we'll try test this programmatically.
10497 libltdl_cv_sys_dlopen_deplibs=unknown
10499 aix3*|aix4.1.*|aix4.2.*)
10500 # Unknown whether this is true for these versions of AIX, but
10501 # we want this `case' here to explicitly catch those versions.
10502 libltdl_cv_sys_dlopen_deplibs=unknown
10505 libltdl_cv_sys_dlopen_deplibs=yes
10508 # Assuming the user has installed a libdl from somewhere, this is true
10509 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10510 libltdl_cv_sys_dlopen_deplibs=yes
10512 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10513 # GNU and its variants, using gnu ld.so (Glibc)
10514 libltdl_cv_sys_dlopen_deplibs=yes
10517 libltdl_cv_sys_dlopen_deplibs=yes
10520 libltdl_cv_sys_dlopen_deplibs=yes
10522 irix[12345]*|irix6.[01]*)
10523 # Catch all versions of IRIX before 6.2, and indicate that we don't
10524 # know how it worked for any of those versions.
10525 libltdl_cv_sys_dlopen_deplibs=unknown
10528 # The case above catches anything before 6.2, and it's known that
10529 # at 6.2 and later dlopen does load deplibs.
10530 libltdl_cv_sys_dlopen_deplibs=yes
10533 libltdl_cv_sys_dlopen_deplibs=yes
10536 libltdl_cv_sys_dlopen_deplibs=yes
10539 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10540 # it did *not* use an RPATH in a shared library to find objects the
10541 # library depends on, so we explicitly say `no'.
10542 libltdl_cv_sys_dlopen_deplibs=no
10544 osf5.0|osf5.0a|osf5.1)
10545 # dlopen *does* load deplibs and with the right loader patch applied
10546 # it even uses RPATH in a shared library to search for shared objects
10547 # that the library depends on, but there's no easy way to know if that
10548 # patch is installed. Since this is the case, all we can really
10549 # say is unknown -- it depends on the patch being installed. If
10550 # it is, this changes to `yes'. Without it, it would be `no'.
10551 libltdl_cv_sys_dlopen_deplibs=unknown
10554 # the two cases above should catch all versions of osf <= 5.1. Read
10555 # the comments above for what we know about them.
10556 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10557 # is used to find them so we can finally say `yes'.
10558 libltdl_cv_sys_dlopen_deplibs=yes
10561 libltdl_cv_sys_dlopen_deplibs=yes
10563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10564 libltdl_cv_sys_dlopen_deplibs=yes
10569 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10570 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10571 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10573 cat >>confdefs.h <<\_ACEOF
10574 #define LTDL_DLOPEN_DEPLIBS 1
10580 for ac_header in argz.h
10582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 ac_res=`eval echo '${'$as_ac_Header'}'`
10590 { echo "$as_me:$LINENO: result: $ac_res" >&5
10591 echo "${ECHO_T}$ac_res" >&6; }
10593 # Is the header compilable?
10594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 $ac_includes_default
10603 #include <$ac_header>
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620 { (case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_try") 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_try") 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_header_compiler=yes
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_header_compiler=no
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649 echo "${ECHO_T}$ac_header_compiler" >&6; }
10651 # Is the header present?
10652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 #include <$ac_header>
10662 if { (ac_try="$ac_cpp conftest.$ac_ext"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_c_preproc_warn_flag
10677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10684 if test -z "$ac_cpp_err"; then
10685 ac_header_preproc=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_header_preproc=no
10693 rm -f conftest.err conftest.$ac_ext
10694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695 echo "${ECHO_T}$ac_header_preproc" >&6; }
10697 # So? What about this header?
10698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10704 ac_header_preproc=yes
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 ## ------------------------------------ ##
10721 ## Report this to http://llvm.org/bugs/ ##
10722 ## ------------------------------------ ##
10724 ) | sed "s/^/$as_me: WARNING: /" >&2
10727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 eval "$as_ac_Header=\$ac_header_preproc"
10734 ac_res=`eval echo '${'$as_ac_Header'}'`
10735 { echo "$as_me:$LINENO: result: $ac_res" >&5
10736 echo "${ECHO_T}$ac_res" >&6; }
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 { echo "$as_me:$LINENO: checking for error_t" >&5
10750 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10751 if test "${ac_cv_type_error_t+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10764 typedef error_t ac__type_new_;
10768 if ((ac__type_new_ *) 0)
10770 if (sizeof (ac__type_new_))
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_type_error_t=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_type_error_t=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10821 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10822 if test $ac_cv_type_error_t = yes; then
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_ERROR_T 1
10831 cat >>confdefs.h <<\_ACEOF
10832 #define error_t int
10843 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 cat >conftest.$ac_ext <<_ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10859 #define $ac_func innocuous_$ac_func
10861 /* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char $ac_func (); below.
10863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864 <limits.h> exists even on freestanding compilers. */
10867 # include <limits.h>
10869 # include <assert.h>
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10881 /* The GNU C library defines this for functions which it implements
10882 to always fail with ENOSYS. Some functions are actually named
10883 something starting with __ and the normal name is an alias. */
10884 #if defined __stub_$ac_func || defined __stub___$ac_func
10891 return $ac_func ();
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (ac_try="$ac_link"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_link") 2>conftest.er1
10905 grep -v '^ *+' conftest.er1 >conftest.err
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_try") 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 eval "$as_ac_var=yes"
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 eval "$as_ac_var=no"
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10941 ac_res=`eval echo '${'$as_ac_var'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_var'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10979 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 ac_res=`eval echo '${'$as_ac_Header'}'`
10990 { echo "$as_me:$LINENO: result: $ac_res" >&5
10991 echo "${ECHO_T}$ac_res" >&6; }
10993 # Is the header compilable?
10994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 #include <$ac_header>
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_compile") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_header_compiler=yes
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_header_compiler=no
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11049 echo "${ECHO_T}$ac_header_compiler" >&6; }
11051 # Is the header present?
11052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 #include <$ac_header>
11062 if { (ac_try="$ac_cpp conftest.$ac_ext"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11084 if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11120 ## ------------------------------------ ##
11121 ## Report this to http://llvm.org/bugs/ ##
11122 ## ------------------------------------ ##
11124 ) | sed "s/^/$as_me: WARNING: /" >&2
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11152 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 ac_res=`eval echo '${'$as_ac_Header'}'`
11162 { echo "$as_me:$LINENO: result: $ac_res" >&5
11163 echo "${ECHO_T}$ac_res" >&6; }
11165 # Is the header compilable?
11166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 $ac_includes_default
11175 #include <$ac_header>
11177 rm -f conftest.$ac_objext
11178 if { (ac_try="$ac_compile"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_try") 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_header_compiler=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_header_compiler=no
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11221 echo "${ECHO_T}$ac_header_compiler" >&6; }
11223 # Is the header present?
11224 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 #include <$ac_header>
11234 if { (ac_try="$ac_cpp conftest.$ac_ext"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11242 grep -v '^ *+' conftest.er1 >conftest.err
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } >/dev/null; then
11247 if test -s conftest.err; then
11248 ac_cpp_err=$ac_c_preproc_warn_flag
11249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11256 if test -z "$ac_cpp_err"; then
11257 ac_header_preproc=yes
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_header_preproc=no
11265 rm -f conftest.err conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11267 echo "${ECHO_T}$ac_header_preproc" >&6; }
11269 # So? What about this header?
11270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11276 ac_header_preproc=yes
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11292 ## ------------------------------------ ##
11293 ## Report this to http://llvm.org/bugs/ ##
11294 ## ------------------------------------ ##
11296 ) | sed "s/^/$as_me: WARNING: /" >&2
11299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 eval "$as_ac_Header=\$ac_header_preproc"
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 for ac_header in string.h strings.h
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_res=`eval echo '${'$as_ac_Header'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11335 # Is the header compilable?
11336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11345 #include <$ac_header>
11347 rm -f conftest.$ac_objext
11348 if { (ac_try="$ac_compile"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_try") 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_header_compiler=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_compiler=no
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6; }
11393 # Is the header present?
11394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <$ac_header>
11404 if { (ac_try="$ac_cpp conftest.$ac_ext"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null; then
11417 if test -s conftest.err; then
11418 ac_cpp_err=$ac_c_preproc_warn_flag
11419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11426 if test -z "$ac_cpp_err"; then
11427 ac_header_preproc=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462 ## ------------------------------------ ##
11463 ## Report this to http://llvm.org/bugs/ ##
11464 ## ------------------------------------ ##
11466 ) | sed "s/^/$as_me: WARNING: /" >&2
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 eval "$as_ac_Header=\$ac_header_preproc"
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477 { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11482 cat >>confdefs.h <<_ACEOF
11483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 for ac_func in strchr index
11495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11509 #define $ac_func innocuous_$ac_func
11511 /* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func (); below.
11513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514 <limits.h> exists even on freestanding compilers. */
11517 # include <limits.h>
11519 # include <assert.h>
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11531 /* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534 #if defined __stub_$ac_func || defined __stub___$ac_func
11541 return $ac_func ();
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "$as_ac_var=yes"
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 eval "$as_ac_var=no"
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11591 ac_res=`eval echo '${'$as_ac_var'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11604 for ac_func in strrchr rindex
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620 #define $ac_func innocuous_$ac_func
11622 /* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11628 # include <limits.h>
11630 # include <assert.h>
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11642 /* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11652 return $ac_func ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 eval "$as_ac_var=no"
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 for ac_func in memcpy bcopy
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731 #define $ac_func innocuous_$ac_func
11733 /* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11739 # include <limits.h>
11741 # include <assert.h>
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11763 return $ac_func ();
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 eval "$as_ac_var=no"
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 for ac_func in memmove strcmp
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11850 # include <limits.h>
11852 # include <assert.h>
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11874 return $ac_func ();
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 eval "$as_ac_var=no"
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 for ac_func in closedir opendir readdir
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954 #define $ac_func innocuous_$ac_func
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11962 # include <limits.h>
11964 # include <assert.h>
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11986 return $ac_func ();
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12050 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12063 if test "$GCC" != "yes" && test "$ICC" != "yes"
12065 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12066 echo "$as_me: error: gcc|icc required but not found" >&2;}
12067 { (exit 1); exit 1; }; }
12070 if test "$GXX" != "yes" && test "$IXX" != "yes"
12072 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12073 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12074 { (exit 1); exit 1; }; }
12077 if test "$GCC" = "yes"
12079 cat >conftest.$ac_ext <<_ACEOF
12080 #if !defined(__GNUC__) || __GNUC__ < 3
12081 #error Unsupported GCC version
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_compile") 2>conftest.er1
12094 grep -v '^ *+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12100 { (case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12125 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12126 { (exit 1); exit 1; }; }
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 if test -z "$llvm_cv_gnu_make_command"
12134 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12135 echo "$as_me: error: GNU Make required but not found" >&2;}
12136 { (exit 1); exit 1; }; }
12139 { echo "$as_me:$LINENO: result: ok" >&5
12140 echo "${ECHO_T}ok" >&6; }
12142 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12143 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12144 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12146 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12148 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12150 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12151 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12155 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12156 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12157 if test "${ac_cv_lib_m_sin+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 ac_check_lib_save_LIBS=$LIBS
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (ac_try="$ac_link"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_link") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_lib_m_sin=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12226 rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12230 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12231 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12232 if test $ac_cv_lib_m_sin = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234 #define HAVE_LIBM 1
12241 if test "$llvm_cv_os_type" = "MingW" ; then
12243 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12244 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12245 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-limagehlp $LIBS"
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1 >conftest.err
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_lib_imagehlp_main=yes
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ac_cv_lib_imagehlp_main=no
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12312 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12313 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12314 if test $ac_cv_lib_imagehlp_main = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define HAVE_LIBIMAGEHLP 1
12319 LIBS="-limagehlp $LIBS"
12324 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12325 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12326 if test "${ac_cv_lib_psapi_main+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lpsapi $LIBS"
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362 { (case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_try") 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_lib_psapi_main=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_lib_psapi_main=no
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12393 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12394 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12395 if test $ac_cv_lib_psapi_main = yes; then
12396 cat >>confdefs.h <<_ACEOF
12397 #define HAVE_LIBPSAPI 1
12400 LIBS="-lpsapi $LIBS"
12406 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12407 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12408 if test "${ac_cv_search_dlopen+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_func_search_save_LIBS=$LIBS
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12434 for ac_lib in '' dl; do
12435 if test -z "$ac_lib"; then
12436 ac_res="none required"
12439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_search_dlopen=$ac_res
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f core conftest.err conftest.$ac_objext \
12485 if test "${ac_cv_search_dlopen+set}" = set; then
12489 if test "${ac_cv_search_dlopen+set}" = set; then
12492 ac_cv_search_dlopen=no
12494 rm conftest.$ac_ext
12495 LIBS=$ac_func_search_save_LIBS
12497 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12498 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12499 ac_res=$ac_cv_search_dlopen
12500 if test "$ac_res" != no; then
12501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_DLOPEN 1
12508 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12509 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12513 if test "$llvm_cv_enable_libffi" = "yes" ; then
12514 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12515 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12516 if test "${ac_cv_search_ffi_call+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_func_search_save_LIBS=$LIBS
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12537 return ffi_call ();
12542 for ac_lib in '' ffi; do
12543 if test -z "$ac_lib"; then
12544 ac_res="none required"
12547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_cv_search_ffi_call=$ac_res
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12591 rm -f core conftest.err conftest.$ac_objext \
12593 if test "${ac_cv_search_ffi_call+set}" = set; then
12597 if test "${ac_cv_search_ffi_call+set}" = set; then
12600 ac_cv_search_ffi_call=no
12602 rm conftest.$ac_ext
12603 LIBS=$ac_func_search_save_LIBS
12605 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12606 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12607 ac_res=$ac_cv_search_ffi_call
12608 if test "$ac_res" != no; then
12609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_FFI_CALL 1
12616 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12617 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12618 { (exit 1); exit 1; }; }
12623 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12624 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_mallinfo+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12646 return mallinfo ();
12651 for ac_lib in '' malloc; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_search_mallinfo=$ac_res
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12700 rm -f core conftest.err conftest.$ac_objext \
12702 if test "${ac_cv_search_mallinfo+set}" = set; then
12706 if test "${ac_cv_search_mallinfo+set}" = set; then
12709 ac_cv_search_mallinfo=no
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12715 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12716 ac_res=$ac_cv_search_mallinfo
12717 if test "$ac_res" != no; then
12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_MALLINFO 1
12727 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12729 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12730 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12731 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-lpthread $LIBS"
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char pthread_mutex_init ();
12753 return pthread_mutex_init ();
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_lib_pthread_pthread_mutex_init=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_lib_pthread_pthread_mutex_init=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12805 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12806 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_LIBPTHREAD 1
12811 LIBS="-lpthread $LIBS"
12815 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12816 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12817 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 ac_func_search_save_LIBS=$LIBS
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12834 char pthread_mutex_lock ();
12838 return pthread_mutex_lock ();
12843 for ac_lib in '' pthread; do
12844 if test -z "$ac_lib"; then
12845 ac_res="none required"
12848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
12859 grep -v '^ *+' conftest.er1 >conftest.err
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_search_pthread_mutex_lock=$ac_res
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12892 rm -f core conftest.err conftest.$ac_objext \
12894 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12898 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12901 ac_cv_search_pthread_mutex_lock=no
12903 rm conftest.$ac_ext
12904 LIBS=$ac_func_search_save_LIBS
12906 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12907 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12908 ac_res=$ac_cv_search_pthread_mutex_lock
12909 if test "$ac_res" != no; then
12910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAVE_PTHREAD_MUTEX_LOCK 1
12918 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12919 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12920 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 ac_func_search_save_LIBS=$LIBS
12924 cat >conftest.$ac_ext <<_ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12937 char pthread_rwlock_init ();
12941 return pthread_rwlock_init ();
12946 for ac_lib in '' pthread; do
12947 if test -z "$ac_lib"; then
12948 ac_res="none required"
12951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_search_pthread_rwlock_init=$ac_res
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12995 rm -f core conftest.err conftest.$ac_objext \
12997 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13001 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13004 ac_cv_search_pthread_rwlock_init=no
13006 rm conftest.$ac_ext
13007 LIBS=$ac_func_search_save_LIBS
13009 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13010 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13011 ac_res=$ac_cv_search_pthread_rwlock_init
13012 if test "$ac_res" != no; then
13013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_PTHREAD_RWLOCK_INIT 1
13021 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13022 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13023 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 ac_func_search_save_LIBS=$LIBS
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13040 char pthread_getspecific ();
13044 return pthread_getspecific ();
13049 for ac_lib in '' pthread; do
13050 if test -z "$ac_lib"; then
13051 ac_res="none required"
13054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_search_pthread_getspecific=$ac_res
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13098 rm -f core conftest.err conftest.$ac_objext \
13100 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13104 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13107 ac_cv_search_pthread_getspecific=no
13109 rm conftest.$ac_ext
13110 LIBS=$ac_func_search_save_LIBS
13112 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13113 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13114 ac_res=$ac_cv_search_pthread_getspecific
13115 if test "$ac_res" != no; then
13116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_PTHREAD_GETSPECIFIC 1
13127 # Check whether --with-udis86 was given.
13128 if test "${with_udis86+set}" = set; then
13129 withval=$with_udis86;
13134 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13137 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13138 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13139 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-ludis86 $LIBS"
13144 cat >conftest.$ac_ext <<_ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_udis86_ud_init=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_udis86_ud_init=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13212 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13213 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13214 if test $ac_cv_lib_udis86_ud_init = yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_LIBUDIS86 1
13219 LIBS="-ludis86 $LIBS"
13223 echo "Error! You need to have libudis86 around."
13235 cat >>confdefs.h <<_ACEOF
13236 #define USE_UDIS86 $USE_UDIS86
13241 # Check whether --with-oprofile was given.
13242 if test "${with_oprofile+set}" = set; then
13243 withval=$with_oprofile;
13247 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13248 no) llvm_cv_oppath=
13251 *) llvm_cv_oppath="${withval}/lib/oprofile"
13252 CPPFLAGS="-I${withval}/include";;
13254 case $llvm_cv_os_type in
13256 if test -n "$llvm_cv_oppath" ; then
13257 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13258 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13259 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13260 if test "${ac_cv_search_bfd_init+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 ac_func_search_save_LIBS=$LIBS
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13271 /* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13281 return bfd_init ();
13286 for ac_lib in '' bfd; do
13287 if test -z "$ac_lib"; then
13288 ac_res="none required"
13291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13302 grep -v '^ *+' conftest.er1 >conftest.err
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_search_bfd_init=$ac_res
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13335 rm -f core conftest.err conftest.$ac_objext \
13337 if test "${ac_cv_search_bfd_init+set}" = set; then
13341 if test "${ac_cv_search_bfd_init+set}" = set; then
13344 ac_cv_search_bfd_init=no
13346 rm conftest.$ac_ext
13347 LIBS=$ac_func_search_save_LIBS
13349 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13350 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13351 ac_res=$ac_cv_search_bfd_init
13352 if test "$ac_res" != no; then
13353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13357 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13358 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13359 if test "${ac_cv_search_op_open_agent+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_func_search_save_LIBS=$LIBS
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13370 /* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13376 char op_open_agent ();
13380 return op_open_agent ();
13385 for ac_lib in '' opagent; do
13386 if test -z "$ac_lib"; then
13387 ac_res="none required"
13390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_search_op_open_agent=$ac_res
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13434 rm -f core conftest.err conftest.$ac_objext \
13436 if test "${ac_cv_search_op_open_agent+set}" = set; then
13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
13443 ac_cv_search_op_open_agent=no
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13448 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13449 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13450 ac_res=$ac_cv_search_op_open_agent
13451 if test "$ac_res" != no; then
13452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13456 echo "Error! You need to have libopagent around."
13461 if test "${ac_cv_header_opagent_h+set}" = set; then
13462 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13463 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13464 if test "${ac_cv_header_opagent_h+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13468 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13470 # Is the header compilable?
13471 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13472 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13480 #include <opagent.h>
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_try") 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_header_compiler=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_header_compiler=no
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13526 echo "${ECHO_T}$ac_header_compiler" >&6; }
13528 # Is the header present?
13529 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13530 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13531 cat >conftest.$ac_ext <<_ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 #include <opagent.h>
13539 if { (ac_try="$ac_cpp conftest.$ac_ext"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } >/dev/null; then
13552 if test -s conftest.err; then
13553 ac_cpp_err=$ac_c_preproc_warn_flag
13554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13561 if test -z "$ac_cpp_err"; then
13562 ac_header_preproc=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_header_preproc=no
13570 rm -f conftest.err conftest.$ac_ext
13571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 echo "${ECHO_T}$ac_header_preproc" >&6; }
13574 # So? What about this header?
13575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13577 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13578 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13580 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
13584 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13585 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13587 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13589 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13591 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13593 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13595 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13597 ## ------------------------------------ ##
13598 ## Report this to http://llvm.org/bugs/ ##
13599 ## ------------------------------------ ##
13601 ) | sed "s/^/$as_me: WARNING: /" >&2
13604 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13605 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13606 if test "${ac_cv_header_opagent_h+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 ac_cv_header_opagent_h=$ac_header_preproc
13611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13615 if test $ac_cv_header_opagent_h = yes; then
13619 echo "Error! You need to have opagent.h around."
13627 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13628 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13629 { (exit 1); exit 1; }; } ;;
13640 cat >>confdefs.h <<_ACEOF
13641 #define LLVM_USE_OPROFILE $USE_OPROFILE
13646 # Check whether --with-intel-jitevents was given.
13647 if test "${with_intel_jitevents+set}" = set; then
13648 withval=$with_intel_jitevents;
13649 case $llvm_cv_os_type in
13650 Linux|Win32|Cygwin|MingW) ;;
13652 { { echo "$as_me:$LINENO: error:
13653 Intel JIT API support is available on Linux and Windows only.\"" >&5
13654 echo "$as_me: error:
13655 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13656 { (exit 1); exit 1; }; } ;;
13659 USE_INTEL_JITEVENTS=1
13661 case "$llvm_cv_target_arch" in
13662 x86) llvm_intel_jitevents_archdir="lib32";;
13663 x86_64) llvm_intel_jitevents_archdir="lib64";;
13664 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13667 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13668 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13670 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13671 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13678 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13679 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13681 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13682 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13683 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 ac_func_search_save_LIBS=$LIBS
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13694 /* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13700 char iJIT_IsProfilingActive ();
13704 return iJIT_IsProfilingActive ();
13709 for ac_lib in '' jitprofiling; do
13710 if test -z "$ac_lib"; then
13711 ac_res="none required"
13714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13716 rm -f conftest.$ac_objext conftest$ac_exeext
13717 if { (ac_try="$ac_link"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_link") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_try") 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest$ac_exeext'
13741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_try") 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13758 rm -f core conftest.err conftest.$ac_objext \
13760 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13764 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13767 ac_cv_search_iJIT_IsProfilingActive=no
13769 rm conftest.$ac_ext
13770 LIBS=$ac_func_search_save_LIBS
13772 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13773 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13774 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13775 if test "$ac_res" != no; then
13776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13780 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13785 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13786 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13787 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13788 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13792 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13794 # Is the header compilable?
13795 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13796 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13797 cat >conftest.$ac_ext <<_ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13804 #include <jitprofiling.h>
13806 rm -f conftest.$ac_objext
13807 if { (ac_try="$ac_compile"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821 { (case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_try") 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_header_compiler=yes
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13845 ac_header_compiler=no
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850 echo "${ECHO_T}$ac_header_compiler" >&6; }
13852 # Is the header present?
13853 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13854 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <jitprofiling.h>
13863 if { (ac_try="$ac_cpp conftest.$ac_ext"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13871 grep -v '^ *+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } >/dev/null; then
13876 if test -s conftest.err; then
13877 ac_cpp_err=$ac_c_preproc_warn_flag
13878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13885 if test -z "$ac_cpp_err"; then
13886 ac_header_preproc=yes
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_header_preproc=no
13894 rm -f conftest.err conftest.$ac_ext
13895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13896 echo "${ECHO_T}$ac_header_preproc" >&6; }
13898 # So? What about this header?
13899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13901 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13902 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13904 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13905 ac_header_preproc=yes
13908 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13909 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13911 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13913 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13915 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13917 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13919 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13921 ## ------------------------------------ ##
13922 ## Report this to http://llvm.org/bugs/ ##
13923 ## ------------------------------------ ##
13925 ) | sed "s/^/$as_me: WARNING: /" >&2
13928 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13929 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13930 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 ac_cv_header_jitprofiling_h=$ac_header_preproc
13935 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13936 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13939 if test $ac_cv_header_jitprofiling_h = yes; then
13943 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13953 USE_INTEL_JITEVENTS=0
13959 cat >>confdefs.h <<_ACEOF
13960 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13970 ac_header_dirent=no
13971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13972 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <sys/types.h>
13996 rm -f conftest.$ac_objext
13997 if { (ac_try="$ac_compile"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_compile") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 eval "$as_ac_Header=yes"
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 eval "$as_ac_Header=no"
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 ac_res=`eval echo '${'$as_ac_Header'}'`
14041 { echo "$as_me:$LINENO: result: $ac_res" >&5
14042 echo "${ECHO_T}$ac_res" >&6; }
14043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14048 ac_header_dirent=$ac_hdr; break
14052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14053 if test $ac_header_dirent = dirent.h; then
14054 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14056 if test "${ac_cv_search_opendir+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 ac_func_search_save_LIBS=$LIBS
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14082 for ac_lib in '' dir; do
14083 if test -z "$ac_lib"; then
14084 ac_res="none required"
14087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_link") 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_search_opendir=$ac_res
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14131 rm -f core conftest.err conftest.$ac_objext \
14133 if test "${ac_cv_search_opendir+set}" = set; then
14137 if test "${ac_cv_search_opendir+set}" = set; then
14140 ac_cv_search_opendir=no
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14147 ac_res=$ac_cv_search_opendir
14148 if test "$ac_res" != no; then
14149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14154 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14156 if test "${ac_cv_search_opendir+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 ac_func_search_save_LIBS=$LIBS
14160 cat >conftest.$ac_ext <<_ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14167 /* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply. */
14182 for ac_lib in '' x; do
14183 if test -z "$ac_lib"; then
14184 ac_res="none required"
14187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1 >conftest.err
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest$ac_exeext'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_cv_search_opendir=$ac_res
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14231 rm -f core conftest.err conftest.$ac_objext \
14233 if test "${ac_cv_search_opendir+set}" = set; then
14237 if test "${ac_cv_search_opendir+set}" = set; then
14240 ac_cv_search_opendir=no
14242 rm conftest.$ac_ext
14243 LIBS=$ac_func_search_save_LIBS
14245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14247 ac_res=$ac_cv_search_opendir
14248 if test "$ac_res" != no; then
14249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_mmap_anon+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 #include <sys/mman.h>
14273 #include <unistd.h>
14278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14283 rm -f conftest.$ac_objext
14284 if { (ac_try="$ac_compile"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_compile") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1 >conftest.err
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_cv_header_mmap_anon=yes
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_cv_header_mmap_anon=no
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14327 ac_cpp='$CPP $CPPFLAGS'
14328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14336 if test "$ac_cv_header_mmap_anon" = yes; then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_MMAP_ANONYMOUS 1
14344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_stat_broken+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 #include <sys/types.h>
14356 #include <sys/stat.h>
14358 #if defined S_ISBLK && defined S_IFDIR
14359 # if S_ISBLK (S_IFDIR)
14364 #if defined S_ISBLK && defined S_IFCHR
14365 # if S_ISBLK (S_IFCHR)
14370 #if defined S_ISLNK && defined S_IFREG
14371 # if S_ISLNK (S_IFREG)
14376 #if defined S_ISSOCK && defined S_IFREG
14377 # if S_ISSOCK (S_IFREG)
14383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384 $EGREP "You lose" >/dev/null 2>&1; then
14385 ac_cv_header_stat_broken=yes
14387 ac_cv_header_stat_broken=no
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14394 if test $ac_cv_header_stat_broken = yes; then
14396 cat >>confdefs.h <<\_ACEOF
14397 #define STAT_MACROS_BROKEN 1
14402 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/types.h>
14414 #include <sys/wait.h>
14415 #ifndef WEXITSTATUS
14416 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_header_sys_wait_h=yes
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_cv_header_sys_wait_h=no
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14478 if test $ac_cv_header_sys_wait_h = yes; then
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_SYS_WAIT_H 1
14486 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_time+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14498 #include <sys/time.h>
14504 if ((struct tm *) 0)
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_header_time=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_cv_header_time=no
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14556 if test $ac_cv_header_time = yes; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define TIME_WITH_SYS_TIME 1
14571 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_res=`eval echo '${'$as_ac_Header'}'`
14581 { echo "$as_me:$LINENO: result: $ac_res" >&5
14582 echo "${ECHO_T}$ac_res" >&6; }
14584 # Is the header compilable?
14585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 $ac_includes_default
14594 #include <$ac_header>
14596 rm -f conftest.$ac_objext
14597 if { (ac_try="$ac_compile"
14598 case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_compile") 2>conftest.er1
14605 grep -v '^ *+' conftest.er1 >conftest.err
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; } &&
14620 { ac_try='test -s conftest.$ac_objext'
14621 { (case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_try") 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_header_compiler=yes
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ac_header_compiler=no
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14640 echo "${ECHO_T}$ac_header_compiler" >&6; }
14642 # Is the header present?
14643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <$ac_header>
14653 if { (ac_try="$ac_cpp conftest.$ac_ext"
14654 case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14661 grep -v '^ *+' conftest.er1 >conftest.err
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_preproc=no
14684 rm -f conftest.err conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14686 echo "${ECHO_T}$ac_header_preproc" >&6; }
14688 # So? What about this header?
14689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14695 ac_header_preproc=yes
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711 ## ------------------------------------ ##
14712 ## Report this to http://llvm.org/bugs/ ##
14713 ## ------------------------------------ ##
14715 ) | sed "s/^/$as_me: WARNING: /" >&2
14718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 eval "$as_ac_Header=\$ac_header_preproc"
14725 ac_res=`eval echo '${'$as_ac_Header'}'`
14726 { echo "$as_me:$LINENO: result: $ac_res" >&5
14727 echo "${ECHO_T}$ac_res" >&6; }
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14745 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 ac_res=`eval echo '${'$as_ac_Header'}'`
14755 { echo "$as_me:$LINENO: result: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14758 # Is the header compilable?
14759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 $ac_includes_default
14768 #include <$ac_header>
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_compile") 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; } &&
14794 { ac_try='test -s conftest.$ac_objext'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_header_compiler=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_header_compiler=no
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814 echo "${ECHO_T}$ac_header_compiler" >&6; }
14816 # Is the header present?
14817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <$ac_header>
14827 if { (ac_try="$ac_cpp conftest.$ac_ext"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev/null; then
14840 if test -s conftest.err; then
14841 ac_cpp_err=$ac_c_preproc_warn_flag
14842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14849 if test -z "$ac_cpp_err"; then
14850 ac_header_preproc=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_header_preproc=no
14858 rm -f conftest.err conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14860 echo "${ECHO_T}$ac_header_preproc" >&6; }
14862 # So? What about this header?
14863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14869 ac_header_preproc=yes
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14885 ## ------------------------------------ ##
14886 ## Report this to http://llvm.org/bugs/ ##
14887 ## ------------------------------------ ##
14889 ) | sed "s/^/$as_me: WARNING: /" >&2
14892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 eval "$as_ac_Header=\$ac_header_preproc"
14899 ac_res=`eval echo '${'$as_ac_Header'}'`
14900 { echo "$as_me:$LINENO: result: $ac_res" >&5
14901 echo "${ECHO_T}$ac_res" >&6; }
14904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14915 for ac_header in utime.h windows.h
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_res=`eval echo '${'$as_ac_Header'}'`
14925 { echo "$as_me:$LINENO: result: $ac_res" >&5
14926 echo "${ECHO_T}$ac_res" >&6; }
14928 # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 $ac_includes_default
14938 #include <$ac_header>
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14949 grep -v '^ *+' conftest.er1 >conftest.err
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_header_compiler=yes
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_header_compiler=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984 echo "${ECHO_T}$ac_header_compiler" >&6; }
14986 # Is the header present?
14987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989 cat >conftest.$ac_ext <<_ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 #include <$ac_header>
14997 if { (ac_try="$ac_cpp conftest.$ac_ext"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15005 grep -v '^ *+' conftest.er1 >conftest.err
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } >/dev/null; then
15010 if test -s conftest.err; then
15011 ac_cpp_err=$ac_c_preproc_warn_flag
15012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15019 if test -z "$ac_cpp_err"; then
15020 ac_header_preproc=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 ac_header_preproc=no
15028 rm -f conftest.err conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030 echo "${ECHO_T}$ac_header_preproc" >&6; }
15032 # So? What about this header?
15033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039 ac_header_preproc=yes
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15055 ## ------------------------------------ ##
15056 ## Report this to http://llvm.org/bugs/ ##
15057 ## ------------------------------------ ##
15059 ) | sed "s/^/$as_me: WARNING: /" >&2
15062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 eval "$as_ac_Header=\$ac_header_preproc"
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070 { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15088 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15101 # Is the header compilable?
15102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 $ac_includes_default
15111 #include <$ac_header>
15113 rm -f conftest.$ac_objext
15114 if { (ac_try="$ac_compile"
15115 case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_compile") 2>conftest.er1
15122 grep -v '^ *+' conftest.er1 >conftest.err
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
15138 { (case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_try") 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_header_compiler=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_header_compiler=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157 echo "${ECHO_T}$ac_header_compiler" >&6; }
15159 # Is the header present?
15160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 #include <$ac_header>
15170 if { (ac_try="$ac_cpp conftest.$ac_ext"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15178 grep -v '^ *+' conftest.er1 >conftest.err
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } >/dev/null; then
15183 if test -s conftest.err; then
15184 ac_cpp_err=$ac_c_preproc_warn_flag
15185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15192 if test -z "$ac_cpp_err"; then
15193 ac_header_preproc=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_header_preproc=no
15201 rm -f conftest.err conftest.$ac_ext
15202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15203 echo "${ECHO_T}$ac_header_preproc" >&6; }
15205 # So? What about this header?
15206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15212 ac_header_preproc=yes
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15228 ## ------------------------------------ ##
15229 ## Report this to http://llvm.org/bugs/ ##
15230 ## ------------------------------------ ##
15232 ) | sed "s/^/$as_me: WARNING: /" >&2
15235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 eval "$as_ac_Header=\$ac_header_preproc"
15242 ac_res=`eval echo '${'$as_ac_Header'}'`
15243 { echo "$as_me:$LINENO: result: $ac_res" >&5
15244 echo "${ECHO_T}$ac_res" >&6; }
15247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15260 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 ac_res=`eval echo '${'$as_ac_Header'}'`
15270 { echo "$as_me:$LINENO: result: $ac_res" >&5
15271 echo "${ECHO_T}$ac_res" >&6; }
15273 # Is the header compilable?
15274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 $ac_includes_default
15283 #include <$ac_header>
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_compile") 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15300 { (case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_try") 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest.$ac_objext'
15310 { (case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_try") 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_header_compiler=yes
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_compiler=no
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329 echo "${ECHO_T}$ac_header_compiler" >&6; }
15331 # Is the header present?
15332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <$ac_header>
15342 if { (ac_try="$ac_cpp conftest.$ac_ext"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } >/dev/null; then
15355 if test -s conftest.err; then
15356 ac_cpp_err=$ac_c_preproc_warn_flag
15357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15364 if test -z "$ac_cpp_err"; then
15365 ac_header_preproc=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_preproc=no
15373 rm -f conftest.err conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15375 echo "${ECHO_T}$ac_header_preproc" >&6; }
15377 # So? What about this header?
15378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15384 ac_header_preproc=yes
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15400 ## ------------------------------------ ##
15401 ## Report this to http://llvm.org/bugs/ ##
15402 ## ------------------------------------ ##
15404 ) | sed "s/^/$as_me: WARNING: /" >&2
15407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 eval "$as_ac_Header=\$ac_header_preproc"
15414 ac_res=`eval echo '${'$as_ac_Header'}'`
15415 { echo "$as_me:$LINENO: result: $ac_res" >&5
15416 echo "${ECHO_T}$ac_res" >&6; }
15419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15420 cat >>confdefs.h <<_ACEOF
15421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15429 for ac_header in valgrind/valgrind.h
15431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 ac_res=`eval echo '${'$as_ac_Header'}'`
15439 { echo "$as_me:$LINENO: result: $ac_res" >&5
15440 echo "${ECHO_T}$ac_res" >&6; }
15442 # Is the header compilable?
15443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 $ac_includes_default
15452 #include <$ac_header>
15454 rm -f conftest.$ac_objext
15455 if { (ac_try="$ac_compile"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_compile") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest.$ac_objext'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_header_compiler=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_compiler=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498 echo "${ECHO_T}$ac_header_compiler" >&6; }
15500 # Is the header present?
15501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <$ac_header>
15511 if { (ac_try="$ac_cpp conftest.$ac_ext"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null; then
15524 if test -s conftest.err; then
15525 ac_cpp_err=$ac_c_preproc_warn_flag
15526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15533 if test -z "$ac_cpp_err"; then
15534 ac_header_preproc=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_header_preproc=no
15542 rm -f conftest.err conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15544 echo "${ECHO_T}$ac_header_preproc" >&6; }
15546 # So? What about this header?
15547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15553 ac_header_preproc=yes
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15569 ## ------------------------------------ ##
15570 ## Report this to http://llvm.org/bugs/ ##
15571 ## ------------------------------------ ##
15573 ) | sed "s/^/$as_me: WARNING: /" >&2
15576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 eval "$as_ac_Header=\$ac_header_preproc"
15583 ac_res=`eval echo '${'$as_ac_Header'}'`
15584 { echo "$as_me:$LINENO: result: $ac_res" >&5
15585 echo "${ECHO_T}$ac_res" >&6; }
15588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15598 for ac_header in fenv.h
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15611 # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 $ac_includes_default
15621 #include <$ac_header>
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_compile") 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <$ac_header>
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_preproc=no
15711 rm -f conftest.err conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc=yes
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738 ## ------------------------------------ ##
15739 ## Report this to http://llvm.org/bugs/ ##
15740 ## ------------------------------------ ##
15742 ) | sed "s/^/$as_me: WARNING: /" >&2
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 eval "$as_ac_Header=\$ac_header_preproc"
15752 ac_res=`eval echo '${'$as_ac_Header'}'`
15753 { echo "$as_me:$LINENO: result: $ac_res" >&5
15754 echo "${ECHO_T}$ac_res" >&6; }
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15766 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15768 for ac_header in pthread.h
15770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15781 # Is the header compilable?
15782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15791 #include <$ac_header>
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_compile") 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15808 { (case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_try") 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_try") 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_header_compiler=yes
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15832 ac_header_compiler=no
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15837 echo "${ECHO_T}$ac_header_compiler" >&6; }
15839 # Is the header present?
15840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15842 cat >conftest.$ac_ext <<_ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15848 #include <$ac_header>
15850 if { (ac_try="$ac_cpp conftest.$ac_ext"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } >/dev/null; then
15863 if test -s conftest.err; then
15864 ac_cpp_err=$ac_c_preproc_warn_flag
15865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15872 if test -z "$ac_cpp_err"; then
15873 ac_header_preproc=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_header_preproc=no
15881 rm -f conftest.err conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15883 echo "${ECHO_T}$ac_header_preproc" >&6; }
15885 # So? What about this header?
15886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15892 ac_header_preproc=yes
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15908 ## ------------------------------------ ##
15909 ## Report this to http://llvm.org/bugs/ ##
15910 ## ------------------------------------ ##
15912 ) | sed "s/^/$as_me: WARNING: /" >&2
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 eval "$as_ac_Header=\$ac_header_preproc"
15922 ac_res=`eval echo '${'$as_ac_Header'}'`
15923 { echo "$as_me:$LINENO: result: $ac_res" >&5
15924 echo "${ECHO_T}$ac_res" >&6; }
15927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15928 cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15945 if test "$llvm_cv_enable_libffi" = "yes" ; then
15948 for ac_header in ffi.h ffi/ffi.h
15950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 ac_res=`eval echo '${'$as_ac_Header'}'`
15958 { echo "$as_me:$LINENO: result: $ac_res" >&5
15959 echo "${ECHO_T}$ac_res" >&6; }
15961 # Is the header compilable?
15962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 $ac_includes_default
15971 #include <$ac_header>
15973 rm -f conftest.$ac_objext
15974 if { (ac_try="$ac_compile"
15975 case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_compile") 2>conftest.er1
15982 grep -v '^ *+' conftest.er1 >conftest.err
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15988 { (case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_try") 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_try") 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_header_compiler=yes
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_header_compiler=no
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16017 echo "${ECHO_T}$ac_header_compiler" >&6; }
16019 # Is the header present?
16020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 #include <$ac_header>
16030 if { (ac_try="$ac_cpp conftest.$ac_ext"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } >/dev/null; then
16043 if test -s conftest.err; then
16044 ac_cpp_err=$ac_c_preproc_warn_flag
16045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16052 if test -z "$ac_cpp_err"; then
16053 ac_header_preproc=yes
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 ac_header_preproc=no
16061 rm -f conftest.err conftest.$ac_ext
16062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16063 echo "${ECHO_T}$ac_header_preproc" >&6; }
16065 # So? What about this header?
16066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16072 ac_header_preproc=yes
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16088 ## ------------------------------------ ##
16089 ## Report this to http://llvm.org/bugs/ ##
16090 ## ------------------------------------ ##
16092 ) | sed "s/^/$as_me: WARNING: /" >&2
16095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 eval "$as_ac_Header=\$ac_header_preproc"
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16108 cat >>confdefs.h <<_ACEOF
16109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16119 for ac_header in CrashReporterClient.h
16121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 ac_res=`eval echo '${'$as_ac_Header'}'`
16129 { echo "$as_me:$LINENO: result: $ac_res" >&5
16130 echo "${ECHO_T}$ac_res" >&6; }
16132 # Is the header compilable?
16133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16142 #include <$ac_header>
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1 >conftest.err
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
16169 { (case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_try") 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_header_compiler=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_header_compiler=no
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16188 echo "${ECHO_T}$ac_header_compiler" >&6; }
16190 # Is the header present?
16191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 #include <$ac_header>
16201 if { (ac_try="$ac_cpp conftest.$ac_ext"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16209 grep -v '^ *+' conftest.er1 >conftest.err
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } >/dev/null; then
16214 if test -s conftest.err; then
16215 ac_cpp_err=$ac_c_preproc_warn_flag
16216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16223 if test -z "$ac_cpp_err"; then
16224 ac_header_preproc=yes
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16229 ac_header_preproc=no
16232 rm -f conftest.err conftest.$ac_ext
16233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234 echo "${ECHO_T}$ac_header_preproc" >&6; }
16236 # So? What about this header?
16237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16243 ac_header_preproc=yes
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16259 ## ------------------------------------ ##
16260 ## Report this to http://llvm.org/bugs/ ##
16261 ## ------------------------------------ ##
16263 ) | sed "s/^/$as_me: WARNING: /" >&2
16266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 eval "$as_ac_Header=\$ac_header_preproc"
16273 ac_res=`eval echo '${'$as_ac_Header'}'`
16274 { echo "$as_me:$LINENO: result: $ac_res" >&5
16275 echo "${ECHO_T}$ac_res" >&6; }
16278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16288 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16289 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 extern const char *__crashreporter_info__;
16298 __crashreporter_info__ = "test";
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_link") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest$ac_exeext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 { echo "$as_me:$LINENO: result: yes" >&5
16338 echo "${ECHO_T}yes" >&6; }
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_CRASHREPORTER_INFO 1
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 { echo "$as_me:$LINENO: result: no" >&5
16349 echo "${ECHO_T}no" >&6; }
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_CRASHREPORTER_INFO 0
16357 rm -f core conftest.err conftest.$ac_objext \
16358 conftest$ac_exeext conftest.$ac_ext
16363 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16364 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16365 if test "${ac_cv_huge_val_sanity+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 ac_cpp='$CXXCPP $CPPFLAGS'
16371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16375 ac_save_CXXFLAGS=$CXXFLAGS
16376 CXXFLAGS="$CXXFLAGS -pedantic"
16377 if test "$cross_compiling" = yes; then
16378 ac_cv_huge_val_sanity=yes
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16390 double x = HUGE_VAL; return x != x;
16395 rm -f conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_cv_huge_val_sanity=yes
16417 echo "$as_me: program exited with status $ac_status" >&5
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ( exit $ac_status )
16422 ac_cv_huge_val_sanity=no
16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16428 CXXFLAGS=$ac_save_CXXFLAGS
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16437 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16438 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16439 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16442 { echo "$as_me:$LINENO: checking for pid_t" >&5
16443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16444 if test "${ac_cv_type_pid_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 typedef pid_t ac__type_new_;
16458 if ((ac__type_new_ *) 0)
16460 if (sizeof (ac__type_new_))
16466 rm -f conftest.$ac_objext
16467 if { (ac_try="$ac_compile"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16500 ac_cv_type_pid_t=yes
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16505 ac_cv_type_pid_t=no
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16511 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16512 if test $ac_cv_type_pid_t = yes; then
16516 cat >>confdefs.h <<_ACEOF
16522 { echo "$as_me:$LINENO: checking for size_t" >&5
16523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16524 if test "${ac_cv_type_size_t+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 $ac_includes_default
16534 typedef size_t ac__type_new_;
16538 if ((ac__type_new_ *) 0)
16540 if (sizeof (ac__type_new_))
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_compile") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_type_size_t=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_type_size_t=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16592 if test $ac_cv_type_size_t = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define size_t unsigned int
16603 cat >>confdefs.h <<_ACEOF
16604 #define RETSIGTYPE void
16607 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16608 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16609 if test "${ac_cv_struct_tm+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 #include <sys/types.h>
16624 struct tm *tp; tp->tm_sec;
16629 rm -f conftest.$ac_objext
16630 if { (ac_try="$ac_compile"
16631 case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16638 grep -v '^ *+' conftest.er1 >conftest.err
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_cv_struct_tm=time.h
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_cv_struct_tm=sys/time.h
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16674 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16675 if test $ac_cv_struct_tm = sys/time.h; then
16677 cat >>confdefs.h <<\_ACEOF
16678 #define TM_IN_SYS_TIME 1
16683 { echo "$as_me:$LINENO: checking for int64_t" >&5
16684 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16685 if test "${ac_cv_type_int64_t+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16695 typedef int64_t ac__type_new_;
16699 if ((ac__type_new_ *) 0)
16701 if (sizeof (ac__type_new_))
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_type_int64_t=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_type_int64_t=no
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16753 if test $ac_cv_type_int64_t = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_INT64_T 1
16761 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16762 echo "$as_me: error: Type int64_t required but not found" >&2;}
16763 { (exit 1); exit 1; }; }
16766 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16768 if test "${ac_cv_type_uint64_t+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 $ac_includes_default
16778 typedef uint64_t ac__type_new_;
16782 if ((ac__type_new_ *) 0)
16784 if (sizeof (ac__type_new_))
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_compile") 2>conftest.er1
16799 grep -v '^ *+' conftest.er1 >conftest.err
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_type_uint64_t=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_cv_type_uint64_t=no
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16836 if test $ac_cv_type_uint64_t = yes; then
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_UINT64_T 1
16844 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16845 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16846 if test "${ac_cv_type_u_int64_t+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 $ac_includes_default
16856 typedef u_int64_t ac__type_new_;
16860 if ((ac__type_new_ *) 0)
16862 if (sizeof (ac__type_new_))
16868 rm -f conftest.$ac_objext
16869 if { (ac_try="$ac_compile"
16870 case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_compile") 2>conftest.er1
16877 grep -v '^ *+' conftest.er1 >conftest.err
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 ac_cv_type_u_int64_t=yes
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 ac_cv_type_u_int64_t=no
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16913 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16914 if test $ac_cv_type_u_int64_t = yes; then
16916 cat >>confdefs.h <<_ACEOF
16917 #define HAVE_U_INT64_T 1
16922 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16923 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16924 { (exit 1); exit 1; }; }
16938 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 cat >conftest.$ac_ext <<_ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16954 #define $ac_func innocuous_$ac_func
16956 /* System header to define __stub macros and hopefully few prototypes,
16957 which can conflict with char $ac_func (); below.
16958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 <limits.h> exists even on freestanding compilers. */
16962 # include <limits.h>
16964 # include <assert.h>
16969 /* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined __stub_$ac_func || defined __stub___$ac_func
16986 return $ac_func ();
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
17000 grep -v '^ *+' conftest.er1 >conftest.err
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 eval "$as_ac_var=yes"
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 eval "$as_ac_var=no"
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17036 ac_res=`eval echo '${'$as_ac_var'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17039 if test `eval echo '${'$as_ac_var'}'` = yes; then
17040 cat >>confdefs.h <<_ACEOF
17041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17051 for ac_func in powf fmodf strtof round
17053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17067 #define $ac_func innocuous_$ac_func
17069 /* System header to define __stub macros and hopefully few prototypes,
17070 which can conflict with char $ac_func (); below.
17071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17072 <limits.h> exists even on freestanding compilers. */
17075 # include <limits.h>
17077 # include <assert.h>
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined __stub_$ac_func || defined __stub___$ac_func
17099 return $ac_func ();
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (ac_try="$ac_link"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_link") 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17119 { (case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_try") 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_try") 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 eval "$as_ac_var=yes"
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 eval "$as_ac_var=no"
17146 rm -f core conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17149 ac_res=`eval echo '${'$as_ac_var'}'`
17150 { echo "$as_me:$LINENO: result: $ac_res" >&5
17151 echo "${ECHO_T}$ac_res" >&6; }
17152 if test `eval echo '${'$as_ac_var'}'` = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17165 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17181 #define $ac_func innocuous_$ac_func
17183 /* System header to define __stub macros and hopefully few prototypes,
17184 which can conflict with char $ac_func (); below.
17185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186 <limits.h> exists even on freestanding compilers. */
17189 # include <limits.h>
17191 # include <assert.h>
17196 /* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17203 /* The GNU C library defines this for functions which it implements
17204 to always fail with ENOSYS. Some functions are actually named
17205 something starting with __ and the normal name is an alias. */
17206 #if defined __stub_$ac_func || defined __stub___$ac_func
17213 return $ac_func ();
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_link") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest$ac_exeext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 eval "$as_ac_var=yes"
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 eval "$as_ac_var=no"
17260 rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17263 ac_res=`eval echo '${'$as_ac_var'}'`
17264 { echo "$as_me:$LINENO: result: $ac_res" >&5
17265 echo "${ECHO_T}$ac_res" >&6; }
17266 if test `eval echo '${'$as_ac_var'}'` = yes; then
17267 cat >>confdefs.h <<_ACEOF
17268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17277 for ac_func in isatty mkdtemp mkstemp
17279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 cat >conftest.$ac_ext <<_ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17293 #define $ac_func innocuous_$ac_func
17295 /* System header to define __stub macros and hopefully few prototypes,
17296 which can conflict with char $ac_func (); below.
17297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17298 <limits.h> exists even on freestanding compilers. */
17301 # include <limits.h>
17303 # include <assert.h>
17308 /* Override any GCC internal prototype to avoid an error.
17309 Use char because int might match the return type of a GCC
17310 builtin and then its argument prototype would still apply. */
17315 /* The GNU C library defines this for functions which it implements
17316 to always fail with ENOSYS. Some functions are actually named
17317 something starting with __ and the normal name is an alias. */
17318 #if defined __stub_$ac_func || defined __stub___$ac_func
17325 return $ac_func ();
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 eval "$as_ac_var=yes"
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 eval "$as_ac_var=no"
17372 rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17375 ac_res=`eval echo '${'$as_ac_var'}'`
17376 { echo "$as_me:$LINENO: result: $ac_res" >&5
17377 echo "${ECHO_T}$ac_res" >&6; }
17378 if test `eval echo '${'$as_ac_var'}'` = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17393 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17409 #define $ac_func innocuous_$ac_func
17411 /* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func (); below.
17413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 <limits.h> exists even on freestanding compilers. */
17417 # include <limits.h>
17419 # include <assert.h>
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17431 /* The GNU C library defines this for functions which it implements
17432 to always fail with ENOSYS. Some functions are actually named
17433 something starting with __ and the normal name is an alias. */
17434 #if defined __stub_$ac_func || defined __stub___$ac_func
17441 return $ac_func ();
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1 >conftest.err
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_try") 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 eval "$as_ac_var=yes"
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 eval "$as_ac_var=no"
17488 rm -f core conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17491 ac_res=`eval echo '${'$as_ac_var'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17505 for ac_func in strerror strerror_r setenv
17507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.$ac_ext <<_ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17521 #define $ac_func innocuous_$ac_func
17523 /* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func (); below.
17525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526 <limits.h> exists even on freestanding compilers. */
17529 # include <limits.h>
17531 # include <assert.h>
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17543 /* The GNU C library defines this for functions which it implements
17544 to always fail with ENOSYS. Some functions are actually named
17545 something starting with __ and the normal name is an alias. */
17546 #if defined __stub_$ac_func || defined __stub___$ac_func
17553 return $ac_func ();
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17567 grep -v '^ *+' conftest.er1 >conftest.err
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17573 { (case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_try") 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 eval "$as_ac_var=yes"
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 eval "$as_ac_var=no"
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 ac_res=`eval echo '${'$as_ac_var'}'`
17604 { echo "$as_me:$LINENO: result: $ac_res" >&5
17605 echo "${ECHO_T}$ac_res" >&6; }
17606 if test `eval echo '${'$as_ac_var'}'` = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17634 #define $ac_func innocuous_$ac_func
17636 /* System header to define __stub macros and hopefully few prototypes,
17637 which can conflict with char $ac_func (); below.
17638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639 <limits.h> exists even on freestanding compilers. */
17642 # include <limits.h>
17644 # include <assert.h>
17649 /* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17656 /* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659 #if defined __stub_$ac_func || defined __stub___$ac_func
17666 return $ac_func ();
17671 rm -f conftest.$ac_objext conftest$ac_exeext
17672 if { (ac_try="$ac_link"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_link") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest$ac_exeext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 eval "$as_ac_var=yes"
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 eval "$as_ac_var=no"
17713 rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17716 ac_res=`eval echo '${'$as_ac_var'}'`
17717 { echo "$as_me:$LINENO: result: $ac_res" >&5
17718 echo "${ECHO_T}$ac_res" >&6; }
17719 if test `eval echo '${'$as_ac_var'}'` = yes; then
17720 cat >>confdefs.h <<_ACEOF
17721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17732 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 cat >conftest.$ac_ext <<_ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17748 #define $ac_func innocuous_$ac_func
17750 /* System header to define __stub macros and hopefully few prototypes,
17751 which can conflict with char $ac_func (); below.
17752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 <limits.h> exists even on freestanding compilers. */
17756 # include <limits.h>
17758 # include <assert.h>
17763 /* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17770 /* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773 #if defined __stub_$ac_func || defined __stub___$ac_func
17780 return $ac_func ();
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 eval "$as_ac_var=yes"
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 eval "$as_ac_var=no"
17827 rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17830 ac_res=`eval echo '${'$as_ac_var'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_var'}'` = yes; then
17834 cat >>confdefs.h <<_ACEOF
17835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17841 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17842 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17843 if test "${llvm_cv_c_printf_a+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_cpp='$CPP $CPPFLAGS'
17848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852 if test "$cross_compiling" = yes; then
17853 llvmac_cv_c_printf_a=no
17855 cat >conftest.$ac_ext <<_ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17864 #include <stdlib.h>
17870 volatile double A, B;
17874 sprintf(Buffer, "%a", A);
17878 if (A != 0x1.999999999999ap-4)
17885 rm -f conftest$ac_exeext
17886 if { (ac_try="$ac_link"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_link") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 llvm_cv_c_printf_a=yes
17907 echo "$as_me: program exited with status $ac_status" >&5
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ( exit $ac_status )
17912 llvmac_cv_c_printf_a=no
17914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17919 ac_cpp='$CPP $CPPFLAGS'
17920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17925 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17926 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17927 if test "$llvm_cv_c_printf_a" = "yes"; then
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_PRINTF_A 1
17936 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17937 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17938 if test "${ac_cv_func_rand48+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 ac_cpp='$CXXCPP $CPPFLAGS'
17943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 #include <stdlib.h>
17957 srand48(0);lrand48();drand48();
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17977 { (case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_try") 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
17987 { (case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_try") 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_cv_func_rand48=yes
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_cv_func_rand48=no
18004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006 ac_cpp='$CPP $CPPFLAGS'
18007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18012 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18013 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18015 if test "$ac_cv_func_rand48" = "yes" ; then
18017 cat >>confdefs.h <<\_ACEOF
18018 #define HAVE_RAND48 1
18024 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18025 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18026 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18040 char *p = (char *) strerror_s;
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest.$ac_objext'
18073 { (case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_try") 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_have_decl_strerror_s=yes
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_cv_have_decl_strerror_s=no
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18093 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18094 if test $ac_cv_have_decl_strerror_s = yes; then
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_DECL_STRERROR_S 1
18102 cat >>confdefs.h <<_ACEOF
18103 #define HAVE_DECL_STRERROR_S 0
18111 if test "$llvm_cv_os_type" = "MingW" ; then
18112 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18113 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18114 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 ac_check_lib_save_LIBS=$LIBS
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18126 /* Override any GCC internal prototype to avoid an error.
18127 Use char because int might match the return type of a GCC
18128 builtin and then its argument prototype would still apply. */
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_lib_gcc__alloca=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_cv_lib_gcc__alloca=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18188 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18189 if test $ac_cv_lib_gcc__alloca = yes; then
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE__ALLOCA 1
18197 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18198 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18199 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 ac_check_lib_save_LIBS=$LIBS
18204 cat >conftest.$ac_ext <<_ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18211 /* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18221 return __alloca ();
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_cv_lib_gcc___alloca=yes
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_cv_lib_gcc___alloca=no
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18272 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18273 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18274 if test $ac_cv_lib_gcc___alloca = yes; then
18276 cat >>confdefs.h <<\_ACEOF
18277 #define HAVE___ALLOCA 1
18282 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18283 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18284 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 ac_check_lib_save_LIBS=$LIBS
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18296 /* Override any GCC internal prototype to avoid an error.
18297 Use char because int might match the return type of a GCC
18298 builtin and then its argument prototype would still apply. */
18306 return __chkstk ();
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_lib_gcc___chkstk=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_cv_lib_gcc___chkstk=no
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18357 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18358 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18359 if test $ac_cv_lib_gcc___chkstk = yes; then
18361 cat >>confdefs.h <<\_ACEOF
18362 #define HAVE___CHKSTK 1
18367 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18368 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18369 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 ac_check_lib_save_LIBS=$LIBS
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18391 return ___chkstk ();
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_lib_gcc____chkstk=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_lib_gcc____chkstk=no
18438 rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18440 LIBS=$ac_check_lib_save_LIBS
18442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18443 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18444 if test $ac_cv_lib_gcc____chkstk = yes; then
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE____CHKSTK 1
18453 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18454 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18455 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 ac_check_lib_save_LIBS=$LIBS
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18467 /* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18477 return __ashldi3 ();
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_lib_gcc___ashldi3=yes
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_cv_lib_gcc___ashldi3=no
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18529 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18530 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE___ASHLDI3 1
18538 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18539 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18540 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 ac_check_lib_save_LIBS=$LIBS
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18562 return __ashrdi3 ();
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_gcc___ashrdi3=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_lib_gcc___ashrdi3=no
18609 rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18614 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18615 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18617 cat >>confdefs.h <<\_ACEOF
18618 #define HAVE___ASHRDI3 1
18623 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18624 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18625 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 ac_check_lib_save_LIBS=$LIBS
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18647 return __divdi3 ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_cv_lib_gcc___divdi3=yes
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_cv_lib_gcc___divdi3=no
18694 rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18699 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18700 if test $ac_cv_lib_gcc___divdi3 = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE___DIVDI3 1
18708 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18709 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18710 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 ac_check_lib_save_LIBS=$LIBS
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18722 /* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18732 return __fixdfdi ();
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_lib_gcc___fixdfdi=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_lib_gcc___fixdfdi=no
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18784 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18785 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE___FIXDFDI 1
18793 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18794 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 ac_check_lib_save_LIBS=$LIBS
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18817 return __fixsfdi ();
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_try") 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_gcc___fixsfdi=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_lib_gcc___fixsfdi=no
18864 rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18869 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18870 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE___FIXSFDI 1
18878 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18879 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18880 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 ac_check_lib_save_LIBS=$LIBS
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18898 char __floatdidf ();
18902 return __floatdidf ();
18907 rm -f conftest.$ac_objext conftest$ac_exeext
18908 if { (ac_try="$ac_link"
18909 case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_link") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_lib_gcc___floatdidf=yes
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_lib_gcc___floatdidf=no
18949 rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18954 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18955 if test $ac_cv_lib_gcc___floatdidf = yes; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE___FLOATDIDF 1
18963 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18964 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18965 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_check_lib_save_LIBS=$LIBS
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18977 /* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18987 return __lshrdi3 ();
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest$ac_exeext'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_gcc___lshrdi3=yes
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19031 ac_cv_lib_gcc___lshrdi3=no
19034 rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
19036 LIBS=$ac_check_lib_save_LIBS
19038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19039 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19040 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE___LSHRDI3 1
19048 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19049 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19050 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 ac_check_lib_save_LIBS=$LIBS
19055 cat >conftest.$ac_ext <<_ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19062 /* Override any GCC internal prototype to avoid an error.
19063 Use char because int might match the return type of a GCC
19064 builtin and then its argument prototype would still apply. */
19072 return __moddi3 ();
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_link") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_lib_gcc___moddi3=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_cv_lib_gcc___moddi3=no
19119 rm -f core conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121 LIBS=$ac_check_lib_save_LIBS
19123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19124 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19125 if test $ac_cv_lib_gcc___moddi3 = yes; then
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE___MODDI3 1
19133 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19134 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19135 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 ac_check_lib_save_LIBS=$LIBS
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19157 return __udivdi3 ();
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_try") 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_lib_gcc___udivdi3=yes
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_lib_gcc___udivdi3=no
19204 rm -f core conftest.err conftest.$ac_objext \
19205 conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19209 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19210 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19212 cat >>confdefs.h <<\_ACEOF
19213 #define HAVE___UDIVDI3 1
19218 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19219 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19220 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 ac_check_lib_save_LIBS=$LIBS
19225 cat >conftest.$ac_ext <<_ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19232 /* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19242 return __umoddi3 ();
19247 rm -f conftest.$ac_objext conftest$ac_exeext
19248 if { (ac_try="$ac_link"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_link") 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
19261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_lib_gcc___umoddi3=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_cv_lib_gcc___umoddi3=no
19289 rm -f core conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19294 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19295 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE___UMODDI3 1
19304 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19305 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19306 if test "${ac_cv_lib_gcc___main+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 ac_check_lib_save_LIBS=$LIBS
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_link") 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_gcc___main=yes
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_gcc___main=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19380 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19381 if test $ac_cv_lib_gcc___main = yes; then
19383 cat >>confdefs.h <<\_ACEOF
19384 #define HAVE___MAIN 1
19389 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19390 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19391 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 ac_check_lib_save_LIBS=$LIBS
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 /* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19413 return __cmpdi2 ();
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (ac_try="$ac_link"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_link") 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest$ac_exeext'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_lib_gcc___cmpdi2=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_cv_lib_gcc___cmpdi2=no
19460 rm -f core conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19462 LIBS=$ac_check_lib_save_LIBS
19464 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19465 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19466 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE___CMPDI2 1
19476 if test "$llvm_cv_os_type" = "MingW" ; then
19477 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19478 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19479 cat >conftest.$ac_ext <<_ACEOF
19480 #include <windows.h>
19481 #include <imagehlp.h>
19482 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19483 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19500 { (case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_try") 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_try") 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19520 { echo "$as_me:$LINENO: result: yes" >&5
19521 echo "${ECHO_T}yes" >&6; }
19522 llvm_cv_win32_elmcb_pcstr="PCSTR"
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19529 { echo "$as_me:$LINENO: result: no" >&5
19530 echo "${ECHO_T}no" >&6; }
19531 llvm_cv_win32_elmcb_pcstr="PSTR"
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537 cat >>confdefs.h <<_ACEOF
19538 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19544 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19545 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_func_isnan_in_math_h=yes
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_func_isnan_in_math_h=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19621 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19624 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_ISNAN_IN_MATH_H 1
19632 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19633 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19634 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 ac_cpp='$CXXCPP $CPPFLAGS'
19639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_func_isnan_in_cmath=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_func_isnan_in_cmath=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19709 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19711 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_ISNAN_IN_CMATH 1
19719 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19720 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19721 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19740 float f; std::isnan(f);
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_compile") 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_try") 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_func_std_isnan_in_cmath=yes
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_func_std_isnan_in_cmath=no
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 ac_cpp='$CPP $CPPFLAGS'
19790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19796 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19798 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE_STD_ISNAN_IN_CMATH 1
19807 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19808 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19809 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 ac_cpp='$CXXCPP $CPPFLAGS'
19814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_func_isinf_in_math_h=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_func_isinf_in_math_h=no
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877 ac_cpp='$CPP $CPPFLAGS'
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19884 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19886 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_ISINF_IN_MATH_H 1
19894 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19895 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19896 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_cpp='$CXXCPP $CPPFLAGS'
19901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_func_isinf_in_cmath=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_cv_func_isinf_in_cmath=no
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19971 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19973 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19975 cat >>confdefs.h <<\_ACEOF
19976 #define HAVE_ISINF_IN_CMATH 1
19981 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19982 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19983 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 ac_cpp='$CXXCPP $CPPFLAGS'
19988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
20002 float f; std::isinf(f);
20007 rm -f conftest.$ac_objext
20008 if { (ac_try="$ac_compile"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_compile") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 ac_cv_func_std_isinf_in_cmath=yes
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_cv_func_std_isinf_in_cmath=no
20049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 ac_cpp='$CPP $CPPFLAGS'
20052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20058 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20060 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_STD_ISINF_IN_CMATH 1
20068 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20069 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20070 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 ac_cpp='$CXXCPP $CPPFLAGS'
20075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 #include <ieeefp.h>
20089 float f; finite(f);
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_func_finite_in_ieeefp_h=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_func_finite_in_ieeefp_h=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20138 ac_cpp='$CPP $CPPFLAGS'
20139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20144 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20145 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20147 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_FINITE_IN_IEEEFP_H 1
20157 if test "$llvm_cv_platform_type" = "Unix" ; then
20160 for ac_header in stdlib.h unistd.h
20162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 ac_res=`eval echo '${'$as_ac_Header'}'`
20170 { echo "$as_me:$LINENO: result: $ac_res" >&5
20171 echo "${ECHO_T}$ac_res" >&6; }
20173 # Is the header compilable?
20174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 $ac_includes_default
20183 #include <$ac_header>
20185 rm -f conftest.$ac_objext
20186 if { (ac_try="$ac_compile"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
20210 { (case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_try") 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_header_compiler=yes
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_header_compiler=no
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20229 echo "${ECHO_T}$ac_header_compiler" >&6; }
20231 # Is the header present?
20232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 #include <$ac_header>
20242 if { (ac_try="$ac_cpp conftest.$ac_ext"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } >/dev/null; then
20255 if test -s conftest.err; then
20256 ac_cpp_err=$ac_c_preproc_warn_flag
20257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20264 if test -z "$ac_cpp_err"; then
20265 ac_header_preproc=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_header_preproc=no
20273 rm -f conftest.err conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20275 echo "${ECHO_T}$ac_header_preproc" >&6; }
20277 # So? What about this header?
20278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20284 ac_header_preproc=yes
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20300 ## ------------------------------------ ##
20301 ## Report this to http://llvm.org/bugs/ ##
20302 ## ------------------------------------ ##
20304 ) | sed "s/^/$as_me: WARNING: /" >&2
20307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 eval "$as_ac_Header=\$ac_header_preproc"
20314 ac_res=`eval echo '${'$as_ac_Header'}'`
20315 { echo "$as_me:$LINENO: result: $ac_res" >&5
20316 echo "${ECHO_T}$ac_res" >&6; }
20319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20320 cat >>confdefs.h <<_ACEOF
20321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20329 for ac_func in getpagesize
20331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20345 #define $ac_func innocuous_$ac_func
20347 /* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char $ac_func (); below.
20349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350 <limits.h> exists even on freestanding compilers. */
20353 # include <limits.h>
20355 # include <assert.h>
20360 /* Override any GCC internal prototype to avoid an error.
20361 Use char because int might match the return type of a GCC
20362 builtin and then its argument prototype would still apply. */
20367 /* The GNU C library defines this for functions which it implements
20368 to always fail with ENOSYS. Some functions are actually named
20369 something starting with __ and the normal name is an alias. */
20370 #if defined __stub_$ac_func || defined __stub___$ac_func
20377 return $ac_func ();
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_link") 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20397 { (case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_try") 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 eval "$as_ac_var=yes"
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 eval "$as_ac_var=no"
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20427 ac_res=`eval echo '${'$as_ac_var'}'`
20428 { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20430 if test `eval echo '${'$as_ac_var'}'` = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20438 { echo "$as_me:$LINENO: checking for working mmap" >&5
20439 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20440 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 if test "$cross_compiling" = yes; then
20444 ac_cv_func_mmap_fixed_mapped=no
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 $ac_includes_default
20453 /* malloc might have been renamed as rpl_malloc. */
20456 /* Thanks to Mike Haertel and Jim Avera for this test.
20457 Here is a matrix of mmap possibilities:
20458 mmap private not fixed
20459 mmap private fixed at somewhere currently unmapped
20460 mmap private fixed at somewhere already mapped
20461 mmap shared not fixed
20462 mmap shared fixed at somewhere currently unmapped
20463 mmap shared fixed at somewhere already mapped
20464 For private mappings, we should verify that changes cannot be read()
20465 back from the file, nor mmap's back from the file at a different
20466 address. (There have been systems where private was not correctly
20467 implemented like the infamous i386 svr4.0, and systems where the
20468 VM page cache was not coherent with the file system buffer cache
20469 like early versions of FreeBSD and possibly contemporary NetBSD.)
20470 For shared mappings, we should conversely verify that changes get
20471 propagated back to all the places they're supposed to be.
20473 Grep wants private fixed already mapped.
20474 The main things grep needs to know about mmap are:
20475 * does it exist and is it safe to write into the mmap'd area
20476 * how to use it (BSD variants) */
20479 #include <sys/mman.h>
20481 #if !STDC_HEADERS && !HAVE_STDLIB_H
20485 /* This mess was copied from the GNU getpagesize.h. */
20486 #if !HAVE_GETPAGESIZE
20487 /* Assume that all systems that can run configure have sys/param.h. */
20488 # if !HAVE_SYS_PARAM_H
20489 # define HAVE_SYS_PARAM_H 1
20492 # ifdef _SC_PAGESIZE
20493 # define getpagesize() sysconf(_SC_PAGESIZE)
20494 # else /* no _SC_PAGESIZE */
20495 # if HAVE_SYS_PARAM_H
20496 # include <sys/param.h>
20497 # ifdef EXEC_PAGESIZE
20498 # define getpagesize() EXEC_PAGESIZE
20499 # else /* no EXEC_PAGESIZE */
20501 # define getpagesize() NBPG * CLSIZE
20504 # endif /* no CLSIZE */
20505 # else /* no NBPG */
20507 # define getpagesize() NBPC
20508 # else /* no NBPC */
20510 # define getpagesize() PAGESIZE
20511 # endif /* PAGESIZE */
20512 # endif /* no NBPC */
20513 # endif /* no NBPG */
20514 # endif /* no EXEC_PAGESIZE */
20515 # else /* no HAVE_SYS_PARAM_H */
20516 # define getpagesize() 8192 /* punt totally */
20517 # endif /* no HAVE_SYS_PARAM_H */
20518 # endif /* no _SC_PAGESIZE */
20520 #endif /* no HAVE_GETPAGESIZE */
20525 char *data, *data2, *data3;
20529 pagesize = getpagesize ();
20531 /* First, make a file with some known garbage in it. */
20532 data = (char *) malloc (pagesize);
20535 for (i = 0; i < pagesize; ++i)
20536 *(data + i) = rand ();
20538 fd = creat ("conftest.mmap", 0600);
20541 if (write (fd, data, pagesize) != pagesize)
20545 /* Next, try to mmap the file at a fixed address which already has
20546 something else allocated at it. If we can, also make sure that
20547 we see the same garbage. */
20548 fd = open ("conftest.mmap", O_RDWR);
20551 data2 = (char *) malloc (2 * pagesize);
20554 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20555 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20556 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20558 for (i = 0; i < pagesize; ++i)
20559 if (*(data + i) != *(data2 + i))
20562 /* Finally, make sure that changes to the mapped area do not
20563 percolate back to the file as seen by read(). (This is a bug on
20564 some variants of i386 svr4.0.) */
20565 for (i = 0; i < pagesize; ++i)
20566 *(data2 + i) = *(data2 + i) + 1;
20567 data3 = (char *) malloc (pagesize);
20570 if (read (fd, data3, pagesize) != pagesize)
20572 for (i = 0; i < pagesize; ++i)
20573 if (*(data + i) != *(data3 + i))
20579 rm -f conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_func_mmap_fixed_mapped=yes
20601 echo "$as_me: program exited with status $ac_status" >&5
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ( exit $ac_status )
20606 ac_cv_func_mmap_fixed_mapped=no
20608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20613 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20614 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20615 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_MMAP 1
20622 rm -f conftest.mmap
20624 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20625 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20626 if test "${ac_cv_func_mmap_file+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 ac_cpp='$CPP $CPPFLAGS'
20631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20635 if test "$cross_compiling" = yes; then
20636 ac_cv_func_mmap_file=no
20638 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 #include <sys/types.h>
20647 #include <sys/mman.h>
20655 fd = creat ("foo",0777);
20656 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20658 return (fd != (int) MAP_FAILED);
20663 rm -f conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20674 { (case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_try") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_func_mmap_file=yes
20685 echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ( exit $ac_status )
20690 ac_cv_func_mmap_file=no
20692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20705 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20706 if test "$ac_cv_func_mmap_file" = yes; then
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_MMAP_FILE
20716 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20717 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20718 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 if test "$llvm_cv_os_type" = "Interix" ; then
20722 ac_cv_need_dev_zero_for_mmap=yes
20724 ac_cv_need_dev_zero_for_mmap=no
20728 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20729 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20730 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20732 cat >>confdefs.h <<\_ACEOF
20733 #define NEED_DEV_ZERO_FOR_MMAP 1
20738 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20740 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20741 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20743 if test "$ac_cv_func_mmap_file" = "no"
20745 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20746 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20750 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20751 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 volatile unsigned long val = 1;
20766 __sync_synchronize();
20767 __sync_val_compare_and_swap(&val, 1, 0);
20768 __sync_add_and_fetch(&val, 1);
20769 __sync_sub_and_fetch(&val, 1);
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest$ac_exeext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20809 ac_cpp='$CPP $CPPFLAGS'
20810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20814 { echo "$as_me:$LINENO: result: yes" >&5
20815 echo "${ECHO_T}yes" >&6; }
20817 cat >>confdefs.h <<\_ACEOF
20818 #define LLVM_HAS_ATOMICS 1
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 { echo "$as_me:$LINENO: result: no" >&5
20826 echo "${ECHO_T}no" >&6; }
20828 cat >>confdefs.h <<\_ACEOF
20829 #define LLVM_HAS_ATOMICS 0
20832 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20833 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20836 rm -f core conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20840 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20841 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20842 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20843 if test "${llvm_cv_linux_mixed+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_cpp='$CPP $CPPFLAGS'
20848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20859 error: Not x86-64 even if uname says so!
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 llvm_cv_linux_mixed=no
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 llvm_cv_linux_mixed=yes
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20922 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20924 if test "$llvm_cv_linux_mixed" = "yes"; then
20925 llvm_cv_target_arch="x86"
20931 for ac_func in __dso_handle
20933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20947 #define $ac_func innocuous_$ac_func
20949 /* System header to define __stub macros and hopefully few prototypes,
20950 which can conflict with char $ac_func (); below.
20951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20952 <limits.h> exists even on freestanding compilers. */
20955 # include <limits.h>
20957 # include <assert.h>
20962 /* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20969 /* The GNU C library defines this for functions which it implements
20970 to always fail with ENOSYS. Some functions are actually named
20971 something starting with __ and the normal name is an alias. */
20972 #if defined __stub_$ac_func || defined __stub___$ac_func
20979 return $ac_func ();
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 eval "$as_ac_var=yes"
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 eval "$as_ac_var=no"
21026 rm -f core conftest.err conftest.$ac_objext \
21027 conftest$ac_exeext conftest.$ac_ext
21029 ac_res=`eval echo '${'$as_ac_var'}'`
21030 { echo "$as_me:$LINENO: result: $ac_res" >&5
21031 echo "${ECHO_T}$ac_res" >&6; }
21032 if test `eval echo '${'$as_ac_var'}'` = yes; then
21033 cat >>confdefs.h <<_ACEOF
21034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21041 SHLIBEXT=$libltdl_cv_shlibext
21044 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21047 if test "${prefix}" = "NONE" ; then
21048 prefix="/usr/local"
21050 eval LLVM_PREFIX="${prefix}";
21051 eval LLVM_BINDIR="${prefix}/bin";
21052 eval LLVM_LIBDIR="${prefix}/lib";
21053 eval LLVM_DATADIR="${prefix}/share/llvm";
21054 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21055 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21056 eval LLVM_INCLUDEDIR="${prefix}/include";
21057 eval LLVM_INFODIR="${prefix}/info";
21058 eval LLVM_MANDIR="${prefix}/man";
21059 LLVM_CONFIGTIME=`date`
21071 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21072 LLVM_CONFIGTIME="(timestamp not enabled)"
21076 cat >>confdefs.h <<_ACEOF
21077 #define LLVM_PREFIX "$LLVM_PREFIX"
21081 cat >>confdefs.h <<_ACEOF
21082 #define LLVM_BINDIR "$LLVM_BINDIR"
21086 cat >>confdefs.h <<_ACEOF
21087 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21091 cat >>confdefs.h <<_ACEOF
21092 #define LLVM_DATADIR "$LLVM_DATADIR"
21096 cat >>confdefs.h <<_ACEOF
21097 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21101 cat >>confdefs.h <<_ACEOF
21102 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21106 cat >>confdefs.h <<_ACEOF
21107 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21111 cat >>confdefs.h <<_ACEOF
21112 #define LLVM_INFODIR "$LLVM_INFODIR"
21116 cat >>confdefs.h <<_ACEOF
21117 #define LLVM_MANDIR "$LLVM_MANDIR"
21121 cat >>confdefs.h <<_ACEOF
21122 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21126 cat >>confdefs.h <<_ACEOF
21127 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21131 if test "$BINDINGS_TO_BUILD" = auto ; then
21132 BINDINGS_TO_BUILD=""
21133 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21134 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21137 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21143 binding_prereqs_failed=0
21144 for a_binding in $BINDINGS_TO_BUILD ; do
21145 case "$a_binding" in
21147 if test "x$OCAMLC" = x ; then
21148 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21149 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21150 binding_prereqs_failed=1
21152 if test "x$OCAMLDEP" = x ; then
21153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21155 binding_prereqs_failed=1
21157 if test "x$OCAMLOPT" = x ; then
21158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21161 if test "x$with_ocaml_libdir" != xauto ; then
21162 OCAML_LIBDIR=$with_ocaml_libdir
21165 ocaml_stdlib="`"$OCAMLC" -where`"
21166 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21168 # ocaml stdlib is beneath our prefix; use stdlib
21169 OCAML_LIBDIR=$ocaml_stdlib
21172 # ocaml stdlib is outside our prefix; use libdir/ocaml
21173 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21180 if test "$binding_prereqs_failed" = 1 ; then
21181 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21182 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21183 { (exit 1); exit 1; }; }
21186 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21187 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21188 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 ac_cpp='$CXXCPP $CPPFLAGS'
21193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21197 oldcxxflags="$CXXFLAGS"
21198 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21229 { (case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_try") 2>&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
21248 llvm_cv_cxx_visibility_inlines_hidden=yes
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 llvm_cv_cxx_visibility_inlines_hidden=no
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 CXXFLAGS="$oldcxxflags"
21259 ac_cpp='$CPP $CPPFLAGS'
21260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21266 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21267 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21268 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21269 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21272 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21277 if test "$llvm_cv_link_use_r" = "yes" ; then
21284 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21285 RDYNAMIC="-Wl,-export-dynamic"
21292 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21299 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21301 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21303 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21305 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21307 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21310 ac_config_files="$ac_config_files Makefile.config"
21313 ac_config_files="$ac_config_files llvm.spec"
21316 ac_config_files="$ac_config_files docs/doxygen.cfg"
21319 if test "${clang_src_root}" = ""; then
21320 clang_src_root="$srcdir/tools/clang"
21322 if test -f ${clang_src_root}/README.txt; then
21323 configh="include/clang/Config/config.h"
21324 doxy="docs/doxygen.cfg"
21325 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21327 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21331 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21334 ac_config_commands="$ac_config_commands setup"
21336 ac_config_commands="$ac_config_commands Makefile"
21339 ac_config_commands="$ac_config_commands Makefile.common"
21342 ac_config_commands="$ac_config_commands examples/Makefile"
21345 ac_config_commands="$ac_config_commands lib/Makefile"
21348 ac_config_commands="$ac_config_commands runtime/Makefile"
21351 ac_config_commands="$ac_config_commands test/Makefile"
21354 ac_config_commands="$ac_config_commands test/Makefile.tests"
21357 ac_config_commands="$ac_config_commands unittests/Makefile"
21360 ac_config_commands="$ac_config_commands tools/Makefile"
21363 ac_config_commands="$ac_config_commands utils/Makefile"
21366 ac_config_commands="$ac_config_commands projects/Makefile"
21369 ac_config_commands="$ac_config_commands bindings/Makefile"
21372 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21376 cat >confcache <<\_ACEOF
21377 # This file is a shell script that caches the results of configure
21378 # tests run on this system so they can be shared between configure
21379 # scripts and configure runs, see configure's option --config-cache.
21380 # It is not useful on other systems. If it contains results you don't
21381 # want to keep, you may remove or edit it.
21383 # config.status only pays attention to the cache file if you give it
21384 # the --recheck option to rerun configure.
21386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21388 # following values.
21392 # The following way of writing the cache mishandles newlines in values,
21393 # but we know of no workaround that is simple, portable, and efficient.
21394 # So, we kill variables containing newlines.
21395 # Ultrix sh set writes to stderr and can't be redirected directly,
21396 # and sets the high bit in the cache file unless we assign to the vars.
21398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21399 eval ac_val=\$$ac_var
21403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21407 _ | IFS | as_nl) ;; #(
21408 *) $as_unset $ac_var ;;
21414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415 *${as_nl}ac_space=\ *)
21416 # `set' does not quote correctly, so add quotes (double-quote
21417 # substitution turns \\\\ into \\, and sed turns \\ into \).
21420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21423 # `set' quotes correctly as required by POSIX, so do not add quotes.
21424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438 if test -w "$cache_file"; then
21439 test "x$cache_file" != "x/dev/null" &&
21440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21441 echo "$as_me: updating cache $cache_file" >&6;}
21442 cat confcache >$cache_file
21444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21451 # Let make expand exec_prefix.
21452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21454 DEFS=-DHAVE_CONFIG_H
21458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21459 # 1. Remove the extension, and $U if already installed.
21460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21461 ac_i=`echo "$ac_i" | sed "$ac_script"`
21462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21463 # will be set to the directory where LIBOBJS objects are built.
21464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21467 LIBOBJS=$ac_libobjs
21469 LTLIBOBJS=$ac_ltlibobjs
21472 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21473 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21474 Usually this means the macro was only invoked conditionally." >&5
21475 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21476 Usually this means the macro was only invoked conditionally." >&2;}
21477 { (exit 1); exit 1; }; }
21479 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21480 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&5
21482 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21483 Usually this means the macro was only invoked conditionally." >&2;}
21484 { (exit 1); exit 1; }; }
21487 : ${CONFIG_STATUS=./config.status}
21488 ac_clean_files_save=$ac_clean_files
21489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21492 cat >$CONFIG_STATUS <<_ACEOF
21494 # Generated by $as_me.
21495 # Run this file to recreate the current configuration.
21496 # Compiler output produced by configure, useful for debugging
21497 # configure, is in config.log if it exists.
21500 ac_cs_recheck=false
21502 SHELL=\${CONFIG_SHELL-$SHELL}
21505 cat >>$CONFIG_STATUS <<\_ACEOF
21506 ## --------------------- ##
21507 ## M4sh Initialization. ##
21508 ## --------------------- ##
21510 # Be Bourne compatible
21511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21514 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21515 # is contrary to our usage. Disable this feature.
21516 alias -g '${1+"$@"}'='"$@"'
21517 setopt NO_GLOB_SUBST
21519 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21521 BIN_SH=xpg4; export BIN_SH # for Tru64
21522 DUALCASE=1; export DUALCASE # for MKS sh
21526 # Avoid depending upon Character Ranges.
21527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21530 as_cr_digits='0123456789'
21531 as_cr_alnum=$as_cr_Letters$as_cr_digits
21533 # The user is always right.
21534 if test "${PATH_SEPARATOR+set}" != set; then
21535 echo "#! /bin/sh" >conf$$.sh
21536 echo "exit 0" >>conf$$.sh
21538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21546 # Support unset when possible.
21547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21555 # We need space, tab and new line, in precisely that order. Quoting is
21556 # there to prevent editors from complaining about space-tab.
21557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21558 # splitting by setting IFS to empty value.)
21563 # Find who we are. Look in the path if we contain no directory separator.
21565 *[\\/]* ) as_myself=$0 ;;
21566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $PATH
21570 test -z "$as_dir" && as_dir=.
21571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21577 # We did not find ourselves, most probably we were run as `sh COMMAND'
21578 # in which case we are not to be found in the path.
21579 if test "x$as_myself" = x; then
21582 if test ! -f "$as_myself"; then
21583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21584 { (exit 1); exit 1; }
21587 # Work around bugs in pre-3.0 UWIN ksh.
21588 for as_var in ENV MAIL MAILPATH
21589 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21599 LC_TELEPHONE LC_TIME
21601 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21602 eval $as_var=C; export $as_var
21604 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21608 # Required to use basename.
21609 if expr a : '\(a\)' >/dev/null 2>&1 &&
21610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21617 as_basename=basename
21623 # Name of the executable.
21624 as_me=`$as_basename -- "$0" ||
21625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21626 X"$0" : 'X\(//\)$' \| \
21627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21629 sed '/^.*\/\([^/][^/]*\)\/*$/{
21648 as_lineno_1=$LINENO
21649 as_lineno_2=$LINENO
21650 test "x$as_lineno_1" != "x$as_lineno_2" &&
21651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21654 # uniformly replaced by the line number. The first 'sed' inserts a
21655 # line-number line after each line using $LINENO; the second 'sed'
21656 # does the real work. The second script uses 'N' to pair each
21657 # line-number line with the line containing $LINENO, and appends
21658 # trailing '-' during substitution so that $LINENO is not a special
21659 # case at line end.
21660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21661 # scripts with optimization help from Paolo Bonzini. Blame Lee
21662 # E. McMahon (1931-1989) for sed's syntax. :-)
21674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21677 ' >$as_me.lineno &&
21678 chmod +x "$as_me.lineno" ||
21679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21680 { (exit 1); exit 1; }; }
21682 # Don't try to exec as it changes $[0], causing all sort of problems
21683 # (the dirname of $[0] is not the place where we might find the
21684 # original and so on. Autoconf is especially sensitive to this).
21685 . "./$as_me.lineno"
21686 # Exit status is that of the last command.
21691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21697 ECHO_C= ECHO_N= ECHO_T=
21698 case `echo -n x` in
21700 case `echo 'x\c'` in
21701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21708 if expr a : '\(a\)' >/dev/null 2>&1 &&
21709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21715 rm -f conf$$ conf$$.exe conf$$.file
21716 if test -d conf$$.dir; then
21717 rm -f conf$$.dir/conf$$.file
21723 if ln -s conf$$.file conf$$ 2>/dev/null; then
21725 # ... but there are two gotchas:
21726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21728 # In both cases, we have to default to `cp -p'.
21729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21731 elif ln conf$$.file conf$$ 2>/dev/null; then
21736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21737 rmdir conf$$.dir 2>/dev/null
21739 if mkdir -p . 2>/dev/null; then
21742 test -d ./-p && rmdir ./-p
21746 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21747 # systems may use methods other than mode bits to determine executability.
21748 cat >conf$$.file <<_ASEOF
21752 chmod +x conf$$.file
21753 if test -x conf$$.file >/dev/null 2>&1; then
21754 as_executable_p="test -x"
21760 # Sed expression to map a string onto a valid CPP name.
21761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21763 # Sed expression to map a string onto a valid variable name.
21764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21769 # Save the log message, to keep $[0] and so on meaningful, and to
21770 # report actual input values of CONFIG_FILES etc. instead of their
21771 # values after options handling.
21773 This file was extended by LLVM $as_me 3.1svn, which was
21774 generated by GNU Autoconf 2.60. Invocation command line was
21776 CONFIG_FILES = $CONFIG_FILES
21777 CONFIG_HEADERS = $CONFIG_HEADERS
21778 CONFIG_LINKS = $CONFIG_LINKS
21779 CONFIG_COMMANDS = $CONFIG_COMMANDS
21782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 # Files that config.status was made for.
21789 config_files="$ac_config_files"
21790 config_headers="$ac_config_headers"
21791 config_commands="$ac_config_commands"
21795 cat >>$CONFIG_STATUS <<\_ACEOF
21797 \`$as_me' instantiates files from templates according to the
21798 current configuration.
21800 Usage: $0 [OPTIONS] [FILE]...
21802 -h, --help print this help, then exit
21803 -V, --version print version number, then exit
21804 -q, --quiet do not print progress messages
21805 -d, --debug don't remove temporary files
21806 --recheck update $as_me by reconfiguring in the same conditions
21807 --file=FILE[:TEMPLATE]
21808 instantiate the configuration file FILE
21809 --header=FILE[:TEMPLATE]
21810 instantiate the configuration header FILE
21812 Configuration files:
21815 Configuration headers:
21818 Configuration commands:
21821 Report bugs to <bug-autoconf@gnu.org>."
21824 cat >>$CONFIG_STATUS <<_ACEOF
21826 LLVM config.status 3.1svn
21827 configured by $0, generated by GNU Autoconf 2.60,
21828 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21830 Copyright (C) 2006 Free Software Foundation, Inc.
21831 This config.status script is free software; the Free Software Foundation
21832 gives unlimited permission to copy, distribute and modify it."
21839 cat >>$CONFIG_STATUS <<\_ACEOF
21840 # If no file are specified by the user, then we need to provide default
21841 # value. By we need to know if files were specified by the user.
21847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21859 # Handling of the options.
21860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21863 echo "$ac_cs_version"; exit ;;
21864 --debug | --debu | --deb | --de | --d | -d )
21866 --file | --fil | --fi | --f )
21868 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21869 ac_need_defaults=false;;
21870 --header | --heade | --head | --hea )
21872 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21873 ac_need_defaults=false;;
21875 # Conflict between --help and --header
21876 { echo "$as_me: error: ambiguous option: $1
21877 Try \`$0 --help' for more information." >&2
21878 { (exit 1); exit 1; }; };;
21879 --help | --hel | -h )
21880 echo "$ac_cs_usage"; exit ;;
21881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21885 # This is an error.
21886 -*) { echo "$as_me: error: unrecognized option: $1
21887 Try \`$0 --help' for more information." >&2
21888 { (exit 1); exit 1; }; } ;;
21890 *) ac_config_targets="$ac_config_targets $1"
21891 ac_need_defaults=false ;;
21897 ac_configure_extra_args=
21899 if $ac_cs_silent; then
21901 ac_configure_extra_args="$ac_configure_extra_args --silent"
21905 cat >>$CONFIG_STATUS <<_ACEOF
21906 if \$ac_cs_recheck; then
21907 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21908 CONFIG_SHELL=$SHELL
21909 export CONFIG_SHELL
21910 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21914 cat >>$CONFIG_STATUS <<\_ACEOF
21918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21919 ## Running $as_me. ##
21925 cat >>$CONFIG_STATUS <<_ACEOF
21929 llvm_src="${srcdir}"
21933 cat >>$CONFIG_STATUS <<\_ACEOF
21935 # Handling of arguments.
21936 for ac_config_target in $ac_config_targets
21938 case $ac_config_target in
21939 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21940 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21941 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21942 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21943 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21944 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21945 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21947 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21948 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21949 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21950 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21951 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21952 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21953 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21954 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21955 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21956 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21957 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21958 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21959 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21960 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21961 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21962 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21963 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21964 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21965 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21969 { (exit 1); exit 1; }; };;
21974 # If the user did not use the arguments to specify the items to instantiate,
21975 # then the envvar interface is used. Set only those that are not.
21976 # We use the long form for the default assignment because of an extremely
21977 # bizarre bug on SunOS 4.1.3.
21978 if $ac_need_defaults; then
21979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21984 # Have a temporary directory for convenience. Make it in the build tree
21985 # simply because there is no reason against having it here, and in addition,
21986 # creating and moving files from /tmp can sometimes cause problems.
21987 # Hook for its removal unless debugging.
21988 # Note that there is a small window in which the directory will not be cleaned:
21989 # after its creation but before its name has been assigned to `$tmp'.
21993 trap 'exit_status=$?
21994 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21996 trap '{ (exit 1); exit 1; }' 1 2 13 15
21998 # Create a (secure) tmp directory for tmp files.
22001 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22002 test -n "$tmp" && test -d "$tmp"
22005 tmp=./conf$$-$RANDOM
22006 (umask 077 && mkdir "$tmp")
22009 echo "$me: cannot create a temporary directory in ." >&2
22010 { (exit 1); exit 1; }
22014 # Set up the sed scripts for CONFIG_FILES section.
22017 # No need to generate the scripts if there are no CONFIG_FILES.
22018 # This happens for instance when ./config.status config.h
22019 if test -n "$CONFIG_FILES"; then
22026 for ac_last_try in false false false false false :; do
22027 cat >conf$$subs.sed <<_ACEOF
22028 SHELL!$SHELL$ac_delim
22029 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22030 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22031 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22032 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22033 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22034 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22035 exec_prefix!$exec_prefix$ac_delim
22036 prefix!$prefix$ac_delim
22037 program_transform_name!$program_transform_name$ac_delim
22038 bindir!$bindir$ac_delim
22039 sbindir!$sbindir$ac_delim
22040 libexecdir!$libexecdir$ac_delim
22041 datarootdir!$datarootdir$ac_delim
22042 datadir!$datadir$ac_delim
22043 sysconfdir!$sysconfdir$ac_delim
22044 sharedstatedir!$sharedstatedir$ac_delim
22045 localstatedir!$localstatedir$ac_delim
22046 includedir!$includedir$ac_delim
22047 oldincludedir!$oldincludedir$ac_delim
22048 docdir!$docdir$ac_delim
22049 infodir!$infodir$ac_delim
22050 htmldir!$htmldir$ac_delim
22051 dvidir!$dvidir$ac_delim
22052 pdfdir!$pdfdir$ac_delim
22053 psdir!$psdir$ac_delim
22054 libdir!$libdir$ac_delim
22055 localedir!$localedir$ac_delim
22056 mandir!$mandir$ac_delim
22057 DEFS!$DEFS$ac_delim
22058 ECHO_C!$ECHO_C$ac_delim
22059 ECHO_N!$ECHO_N$ac_delim
22060 ECHO_T!$ECHO_T$ac_delim
22061 LIBS!$LIBS$ac_delim
22062 build_alias!$build_alias$ac_delim
22063 host_alias!$host_alias$ac_delim
22064 target_alias!$target_alias$ac_delim
22065 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22067 CFLAGS!$CFLAGS$ac_delim
22068 LDFLAGS!$LDFLAGS$ac_delim
22069 CPPFLAGS!$CPPFLAGS$ac_delim
22070 ac_ct_CC!$ac_ct_CC$ac_delim
22071 EXEEXT!$EXEEXT$ac_delim
22072 OBJEXT!$OBJEXT$ac_delim
22074 CXXFLAGS!$CXXFLAGS$ac_delim
22075 ac_ct_CXX!$ac_ct_CXX$ac_delim
22077 subdirs!$subdirs$ac_delim
22078 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22079 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22080 build!$build$ac_delim
22081 build_cpu!$build_cpu$ac_delim
22082 build_vendor!$build_vendor$ac_delim
22083 build_os!$build_os$ac_delim
22084 host!$host$ac_delim
22085 host_cpu!$host_cpu$ac_delim
22086 host_vendor!$host_vendor$ac_delim
22087 host_os!$host_os$ac_delim
22088 target!$target$ac_delim
22089 target_cpu!$target_cpu$ac_delim
22090 target_vendor!$target_vendor$ac_delim
22091 target_os!$target_os$ac_delim
22093 HOST_OS!$HOST_OS$ac_delim
22094 TARGET_OS!$TARGET_OS$ac_delim
22095 LINKALL!$LINKALL$ac_delim
22096 NOLINKALL!$NOLINKALL$ac_delim
22097 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22098 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22099 ARCH!$ARCH$ac_delim
22100 ENDIAN!$ENDIAN$ac_delim
22101 GREP!$GREP$ac_delim
22102 EGREP!$EGREP$ac_delim
22103 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22104 BUILD_CC!$BUILD_CC$ac_delim
22105 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22106 BUILD_CXX!$BUILD_CXX$ac_delim
22107 CVSBUILD!$CVSBUILD$ac_delim
22108 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22109 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22110 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22111 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22112 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22113 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22114 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22115 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22117 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22118 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22119 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22120 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22121 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22122 ENABLE_PIC!$ENABLE_PIC$ac_delim
22123 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22124 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22127 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22129 elif $ac_last_try; then
22130 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22131 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22132 { (exit 1); exit 1; }; }
22134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22138 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22139 if test -n "$ac_eof"; then
22140 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22141 ac_eof=`expr $ac_eof + 1`
22144 cat >>$CONFIG_STATUS <<_ACEOF
22145 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22149 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22150 s/^/s,@/; s/!/@,|#_!!_#|/
22153 s/'"$ac_delim"'$/,g/; t
22155 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22156 ' >>$CONFIG_STATUS <conf$$subs.sed
22157 rm -f conf$$subs.sed
22158 cat >>$CONFIG_STATUS <<_ACEOF
22164 for ac_last_try in false false false false false :; do
22165 cat >conf$$subs.sed <<_ACEOF
22166 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22167 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22168 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22169 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22170 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22171 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22172 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22173 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22174 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22175 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22176 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22177 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22179 ifGNUmake!$ifGNUmake$ac_delim
22180 LN_S!$LN_S$ac_delim
22183 DATE!$DATE$ac_delim
22184 FIND!$FIND$ac_delim
22185 MKDIR!$MKDIR$ac_delim
22187 RANLIB!$RANLIB$ac_delim
22192 BINPWD!$BINPWD$ac_delim
22193 GRAPHVIZ!$GRAPHVIZ$ac_delim
22196 NEATO!$NEATO$ac_delim
22197 TWOPI!$TWOPI$ac_delim
22198 CIRCO!$CIRCO$ac_delim
22200 DOTTY!$DOTTY$ac_delim
22201 XDOT_PY!$XDOT_PY$ac_delim
22202 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22203 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22204 INSTALL_DATA!$INSTALL_DATA$ac_delim
22205 BZIP2!$BZIP2$ac_delim
22207 DOXYGEN!$DOXYGEN$ac_delim
22208 GROFF!$GROFF$ac_delim
22209 GZIPBIN!$GZIPBIN$ac_delim
22210 POD2HTML!$POD2HTML$ac_delim
22211 POD2MAN!$POD2MAN$ac_delim
22212 PDFROFF!$PDFROFF$ac_delim
22213 RUNTEST!$RUNTEST$ac_delim
22214 TCLSH!$TCLSH$ac_delim
22216 OCAMLC!$OCAMLC$ac_delim
22217 OCAMLOPT!$OCAMLOPT$ac_delim
22218 OCAMLDEP!$OCAMLDEP$ac_delim
22219 OCAMLDOC!$OCAMLDOC$ac_delim
22221 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22222 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22223 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22224 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22225 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22226 LIBADD_DL!$LIBADD_DL$ac_delim
22227 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22228 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22229 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22230 USE_UDIS86!$USE_UDIS86$ac_delim
22231 USE_OPROFILE!$USE_OPROFILE$ac_delim
22232 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22233 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22234 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22235 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22236 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22237 MMAP_FILE!$MMAP_FILE$ac_delim
22238 SHLIBEXT!$SHLIBEXT$ac_delim
22239 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22240 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22241 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22242 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22243 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22244 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22245 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22246 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22247 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22248 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22249 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22250 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22251 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22252 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22253 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22254 RPATH!$RPATH$ac_delim
22255 RDYNAMIC!$RDYNAMIC$ac_delim
22256 LIBOBJS!$LIBOBJS$ac_delim
22257 LTLIBOBJS!$LTLIBOBJS$ac_delim
22260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22262 elif $ac_last_try; then
22263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22265 { (exit 1); exit 1; }; }
22267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22272 if test -n "$ac_eof"; then
22273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22274 ac_eof=`expr $ac_eof + 1`
22277 cat >>$CONFIG_STATUS <<_ACEOF
22278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22283 s/^/s,@/; s/!/@,|#_!!_#|/
22286 s/'"$ac_delim"'$/,g/; t
22288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22289 ' >>$CONFIG_STATUS <conf$$subs.sed
22290 rm -f conf$$subs.sed
22291 cat >>$CONFIG_STATUS <<_ACEOF
22298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22300 # trailing colons and then remove the whole line if VPATH becomes empty
22301 # (actually we leave an empty line to preserve line numbers).
22302 if test "x$srcdir" = x.; then
22303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22304 s/:*\$(srcdir):*/:/
22305 s/:*\${srcdir}:*/:/
22307 s/^\([^=]*=[ ]*\):*/\1/
22313 cat >>$CONFIG_STATUS <<\_ACEOF
22314 fi # test -n "$CONFIG_FILES"
22317 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22320 :[FHLC]) ac_mode=$ac_tag; continue;;
22322 case $ac_mode$ac_tag in
22324 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22325 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22326 { (exit 1); exit 1; }; };;
22327 :[FH]-) ac_tag=-:-;;
22328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22345 -) ac_f="$tmp/stdin";;
22346 *) # Look for the file first in the build tree, then in the source tree
22347 # (if the path is not absolute). The absolute path cannot be DOS-style,
22348 # because $ac_f cannot contain `:'.
22352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22354 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22355 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22356 { (exit 1); exit 1; }; };;
22358 ac_file_inputs="$ac_file_inputs $ac_f"
22361 # Let's still pretend it is `configure' which instantiates (i.e., don't
22362 # use $as_me), people would be surprised to read:
22363 # /* config.h. Generated by config.status. */
22364 configure_input="Generated from "`IFS=:
22365 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22366 if test x"$ac_file" != x-; then
22367 configure_input="$ac_file. $configure_input"
22368 { echo "$as_me:$LINENO: creating $ac_file" >&5
22369 echo "$as_me: creating $ac_file" >&6;}
22373 *:-:* | *:-) cat >"$tmp/stdin";;
22378 ac_dir=`$as_dirname -- "$ac_file" ||
22379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22380 X"$ac_file" : 'X\(//\)[^/]' \| \
22381 X"$ac_file" : 'X\(//\)$' \| \
22382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22388 /^X\(\/\/\)[^/].*/{
22403 -*) as_dir=./$as_dir;;
22405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22410 *) as_qdir=$as_dir;;
22412 as_dirs="'$as_qdir' $as_dirs"
22413 as_dir=`$as_dirname -- "$as_dir" ||
22414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415 X"$as_dir" : 'X\(//\)[^/]' \| \
22416 X"$as_dir" : 'X\(//\)$' \| \
22417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22423 /^X\(\/\/\)[^/].*/{
22436 test -d "$as_dir" && break
22438 test -z "$as_dirs" || eval "mkdir $as_dirs"
22439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22441 { (exit 1); exit 1; }; }; }
22445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22448 # A ".." for each directory in $ac_dir_suffix.
22449 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22450 case $ac_top_builddir_sub in
22451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22455 ac_abs_top_builddir=$ac_pwd
22456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22457 # for backward compatibility:
22458 ac_top_builddir=$ac_top_build_prefix
22461 .) # We are building in place.
22463 ac_top_srcdir=$ac_top_builddir_sub
22464 ac_abs_top_srcdir=$ac_pwd ;;
22465 [\\/]* | ?:[\\/]* ) # Absolute name.
22466 ac_srcdir=$srcdir$ac_dir_suffix;
22467 ac_top_srcdir=$srcdir
22468 ac_abs_top_srcdir=$srcdir ;;
22469 *) # Relative name.
22470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22471 ac_top_srcdir=$ac_top_build_prefix$srcdir
22472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22490 # If the template does not know about datarootdir, expand it.
22491 # FIXME: This hack should be removed a few years after 2.60.
22492 ac_datarootdir_hack=; ac_datarootdir_seen=
22494 case `sed -n '/datarootdir/ {
22503 ' $ac_file_inputs` in
22504 *datarootdir*) ac_datarootdir_seen=yes;;
22505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22506 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22507 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22509 cat >>$CONFIG_STATUS <<_ACEOF
22510 ac_datarootdir_hack='
22511 s&@datadir@&$datadir&g
22512 s&@docdir@&$docdir&g
22513 s&@infodir@&$infodir&g
22514 s&@localedir@&$localedir&g
22515 s&@mandir@&$mandir&g
22516 s&\\\${datarootdir}&$datarootdir&g' ;;
22520 # Neutralize VPATH when `$srcdir' = `.'.
22521 # Shell code in configure.ac might set extrasub.
22522 # FIXME: do we really want to maintain this feature?
22523 cat >>$CONFIG_STATUS <<_ACEOF
22527 cat >>$CONFIG_STATUS <<\_ACEOF
22529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22530 s&@configure_input@&$configure_input&;t t
22531 s&@top_builddir@&$ac_top_builddir_sub&;t t
22532 s&@srcdir@&$ac_srcdir&;t t
22533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22534 s&@top_srcdir@&$ac_top_srcdir&;t t
22535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22536 s&@builddir@&$ac_builddir&;t t
22537 s&@abs_builddir@&$ac_abs_builddir&;t t
22538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22539 s&@INSTALL@&$ac_INSTALL&;t t
22540 $ac_datarootdir_hack
22541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22547 which seems to be undefined. Please make sure it is defined." >&5
22548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22549 which seems to be undefined. Please make sure it is defined." >&2;}
22553 -) cat "$tmp/out"; rm -f "$tmp/out";;
22554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22563 # Transform confdefs.h into a sed script `conftest.defines', that
22564 # substitutes the proper values into config.h.in to produce config.h.
22565 rm -f conftest.defines conftest.tail
22566 # First, append a space to every undef/define line, to ease matching.
22567 echo 's/$/ /' >conftest.defines
22568 # Then, protect against being on the right side of a sed subst, or in
22569 # an unquoted here document, in config.status. If some macros were
22570 # called several times there might be several #defines for the same
22571 # symbol, which is useless. But do not sort them, since the last
22572 # AC_DEFINE must be honored.
22573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22576 # PARAMS is the parameter list in the macro definition--in most cases, it's
22577 # just an empty string.
22578 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22579 ac_dB='\\)[ (].*,\\1define\\2'
22587 s/^[ ]*#[ ]*define[ ][ ]*//
22592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22594 ' >>conftest.defines
22596 # Remove the space that was appended to ease matching.
22597 # Then replace #undef with comments. This is necessary, for
22598 # example, in the case of _POSIX_SOURCE, which is predefined and required
22599 # on some systems where configure will not decide to define it.
22600 # (The regexp can be short, since the line contains either #define or #undef.)
22602 s,^[ #]*u.*,/* & */,' >>conftest.defines
22604 # Break up conftest.defines:
22605 ac_max_sed_lines=50
22607 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22608 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22609 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22611 ac_in='$ac_file_inputs'
22612 ac_out='"$tmp/out1"'
22613 ac_nxt='"$tmp/out2"'
22617 # Write a here document:
22618 cat >>$CONFIG_STATUS <<_ACEOF
22619 # First, check the format of the line:
22620 cat >"\$tmp/defines.sed" <<\\CEOF
22621 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22622 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22631 grep . conftest.tail >/dev/null || break
22632 rm -f conftest.defines
22633 mv conftest.tail conftest.defines
22635 rm -f conftest.defines conftest.tail
22637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 if test x"$ac_file" != x-; then
22640 echo "/* $configure_input */" >"$tmp/config.h"
22641 cat "$ac_result" >>"$tmp/config.h"
22642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22644 echo "$as_me: $ac_file is unchanged" >&6;}
22647 mv "$tmp/config.h" $ac_file
22650 echo "/* $configure_input */"
22656 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22657 echo "$as_me: executing $ac_file commands" >&6;}
22662 case $ac_file$ac_mode in
22663 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22665 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22667 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22669 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22671 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22673 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22675 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22676 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22677 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22678 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22679 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22680 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22681 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22683 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22685 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22687 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22694 { (exit 0); exit 0; }
22696 chmod +x $CONFIG_STATUS
22697 ac_clean_files=$ac_clean_files_save
22700 # configure is writing to config.log, and then calls config.status.
22701 # config.status does its own redirection, appending to config.log.
22702 # Unfortunately, on DOS this fails, as config.log is still kept open
22703 # by configure, so config.status won't be able to write to it; its
22704 # output is simply discarded. So we exec the FD to /dev/null,
22705 # effectively closing config.log, so it can be properly (re)opened and
22706 # appended to by config.status. When coming back to configure, we
22707 # need to make the FD available again.
22708 if test "$no_create" != yes; then
22710 ac_config_status_args=
22711 test "$silent" = yes &&
22712 ac_config_status_args="$ac_config_status_args --quiet"
22714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22717 # would make configure fail if this is the last instruction.
22718 $ac_cs_success || { (exit 1); exit 1; }
22722 # CONFIG_SUBDIRS section.
22724 if test "$no_recursion" != yes; then
22726 # Remove --cache-file and --srcdir arguments so they do not pile up.
22727 ac_sub_configure_args=
22729 eval "set x $ac_configure_args"
22733 if test -n "$ac_prev"; then
22738 -cache-file | --cache-file | --cache-fil | --cache-fi \
22739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22740 ac_prev=cache_file ;;
22741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22745 --config-cache | -C)
22747 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22749 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22751 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22753 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22757 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22759 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22763 # Always prepend --prefix to ensure using the same prefix
22764 # in subdir configurations.
22765 ac_arg="--prefix=$prefix"
22767 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22769 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22772 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22774 # Do not complain, so a configure script can configure whichever
22775 # parts of a large source tree are present.
22776 test -d "$srcdir/$ac_dir" || continue
22778 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22779 echo "$as_me:$LINENO: $ac_msg" >&5
22783 -*) as_dir=./$as_dir;;
22785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22790 *) as_qdir=$as_dir;;
22792 as_dirs="'$as_qdir' $as_dirs"
22793 as_dir=`$as_dirname -- "$as_dir" ||
22794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22795 X"$as_dir" : 'X\(//\)[^/]' \| \
22796 X"$as_dir" : 'X\(//\)$' \| \
22797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22803 /^X\(\/\/\)[^/].*/{
22816 test -d "$as_dir" && break
22818 test -z "$as_dirs" || eval "mkdir $as_dirs"
22819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22821 { (exit 1); exit 1; }; }; }
22825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22828 # A ".." for each directory in $ac_dir_suffix.
22829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22830 case $ac_top_builddir_sub in
22831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22835 ac_abs_top_builddir=$ac_pwd
22836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22837 # for backward compatibility:
22838 ac_top_builddir=$ac_top_build_prefix
22841 .) # We are building in place.
22843 ac_top_srcdir=$ac_top_builddir_sub
22844 ac_abs_top_srcdir=$ac_pwd ;;
22845 [\\/]* | ?:[\\/]* ) # Absolute name.
22846 ac_srcdir=$srcdir$ac_dir_suffix;
22847 ac_top_srcdir=$srcdir
22848 ac_abs_top_srcdir=$srcdir ;;
22849 *) # Relative name.
22850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22851 ac_top_srcdir=$ac_top_build_prefix$srcdir
22852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22859 # Check for guested configure; otherwise get Cygnus style configure.
22860 if test -f "$ac_srcdir/configure.gnu"; then
22861 ac_sub_configure=$ac_srcdir/configure.gnu
22862 elif test -f "$ac_srcdir/configure"; then
22863 ac_sub_configure=$ac_srcdir/configure
22864 elif test -f "$ac_srcdir/configure.in"; then
22865 # This should be Cygnus configure.
22866 ac_sub_configure=$ac_aux_dir/configure
22868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22873 # The recursion is here.
22874 if test -n "$ac_sub_configure"; then
22875 # Make the cache file name correct relative to the subdirectory.
22876 case $cache_file in
22877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22878 *) # Relative name.
22879 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22882 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22883 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22884 # The eval makes quoting arguments work.
22885 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22886 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22889 { (exit 1); exit 1; }; }