2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
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
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
755 HAVE_LINK_VERSION_SCRIPT
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
767 INTEL_JITEVENTS_INCDIR
768 INTEL_JITEVENTS_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/llvm-gcc
808 projects/llvm-poolalloc
811 projects/llvm-stacker
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-cxx11 Use c++11 if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, nvptx, and cpp (default=all)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-gcc-toolchain Directory where gcc is installed.
1444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
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-udis86=<path> Use udis86 external x86 disassembler library
1451 --with-oprofile=<prefix>
1452 Tell OProfile >= 0.9.4 how to symbolize JIT output
1453 --with-intel-jitevents=<vtune-amplifier-dir>
1454 Specify location of run-time support library for
1456 (default=/opt/intel/vtune_amplifier_xe_2011)
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <http://llvm.org/bugs/>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 LLVM configure 3.2svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by LLVM $as_me 3.2svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 cat >>confdefs.h <<\_ACEOF
1904 #define LLVM_VERSION_MAJOR 3
1908 cat >>confdefs.h <<\_ACEOF
1909 #define LLVM_VERSION_MINOR 2
1913 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1922 for ac_dir in autoconf "$srcdir"/autoconf; do
1923 if test -f "$ac_dir/install-sh"; then
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 elif test -f "$ac_dir/install.sh"; then
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 elif test -f "$ac_dir/shtool"; then
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1937 if test -z "$ac_aux_dir"; then
1938 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1939 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1940 { (exit 1); exit 1; }; }
1943 # These three variables are undocumented and unsupported,
1944 # and are intended to be withdrawn in a future Autoconf release.
1945 # They can cause serious problems if a builder's source tree is in a directory
1946 # whose full name contains unusual characters.
1947 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1948 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1949 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953 if test ${srcdir} != "." ; then
1954 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1955 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1956 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1957 { (exit 1); exit 1; }; }
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967 for ac_prog in clang llvm-gcc gcc
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test -n "$CC"; then
1998 { echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6; }
2001 { echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6; }
2006 test -n "$CC" && break
2009 if test -z "$CC"; then
2011 for ac_prog in clang llvm-gcc gcc
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_ac_ct_CC="$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$ac_ct_CC" && break
2053 if test "x$ac_ct_CC" = x; then
2056 case $cross_compiling:$ac_tool_warned in
2058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059 whose name does not start with the host triplet. If you think this
2060 configuration is useful to you, please write to autoconf@gnu.org." >&5
2061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet. If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2064 ac_tool_warned=yes ;;
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO: checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (ac_try="$ac_compiler --version >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler --version >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -v >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -v >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (ac_try="$ac_compiler -V >&5"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -V >&5") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2111 cat >conftest.$ac_ext <<_ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2131 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 # List of possible output files, starting from the most likely.
2136 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2137 # only as a last resort. b.out is created by i960 compilers.
2138 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140 # The IRIX 6 linker writes into existing files which may not be
2141 # executable, retaining their permissions. Remove them first so a
2142 # subsequent execution test works.
2144 for ac_file in $ac_files
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2153 if { (ac_try="$ac_link_default"
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_link_default") 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2166 # so that the user can short-circuit this test for compilers unknown to
2168 for ac_file in $ac_files
2170 test -f "$ac_file" || continue
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2175 # We found the default executable, but exeext='' is most
2179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 # We set ac_cv_exeext here because the later test for it is not
2184 # safe: cross compilers may not add the suffix if given an `-o'
2185 # argument, so we may need to know it at that point already.
2186 # Even if this section looks crufty: it has the advantage of
2193 test "$ac_cv_exeext" = no && ac_cv_exeext=
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 { echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6; }
2210 # Check that the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 if test "$cross_compiling" = maybe; then
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check that the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6; }
2254 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256 if { (ac_try="$ac_link"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_link") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest$ac_cv_exeext
2288 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296 if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.o conftest.obj
2315 if { (ac_try="$ac_compile"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 for ac_file in conftest.o conftest.obj conftest.*; do
2326 test -f "$ac_file" || continue;
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6; }
2348 OBJEXT=$ac_cv_objext
2350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (ac_try="$ac_compile"
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 ac_save_c_werror_flag=$ac_c_werror_flag
2430 ac_c_werror_flag=yes
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 rm -f conftest.$ac_objext
2504 if { (ac_try="$ac_compile"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2512 grep -v '^ *+' conftest.er1 >conftest.err
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_c_werror_flag=$ac_save_c_werror_flag
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2612 if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2621 if test "$GCC" = yes; then
2627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 ac_cv_prog_cc_c89=no
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2658 s = g (p, va_arg (v,int));
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
2666 as 'x'. The following induces an error, until -std is added to get
2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
2669 that's true only with -std. */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_prog_cc_c89=$ac_arg
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f core conftest.err conftest.$ac_objext
2738 test "x$ac_cv_prog_cc_c89" != "xno" && break
2740 rm -f conftest.$ac_ext
2745 case "x$ac_cv_prog_cc_c89" in
2747 { echo "$as_me:$LINENO: result: none needed" >&5
2748 echo "${ECHO_T}none needed" >&6; } ;;
2750 { echo "$as_me:$LINENO: result: unsupported" >&5
2751 echo "${ECHO_T}unsupported" >&6; } ;;
2753 CC="$CC $ac_cv_prog_cc_c89"
2754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 ac_cpp='$CXXCPP $CPPFLAGS'
2767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2770 if test -z "$CXX"; then
2771 if test -n "$CCC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in clang++ llvm-g++ g++
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$CXX"; then
2785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 if test -n "$CXX"; then
2806 { echo "$as_me:$LINENO: result: $CXX" >&5
2807 echo "${ECHO_T}$CXX" >&6; }
2809 { echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6; }
2814 test -n "$CXX" && break
2817 if test -z "$CXX"; then
2819 for ac_prog in clang++ llvm-g++ g++
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$ac_ct_CXX"; then
2829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CXX="$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2849 if test -n "$ac_ct_CXX"; then
2850 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2851 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2858 test -n "$ac_ct_CXX" && break
2861 if test "x$ac_ct_CXX" = x; then
2864 case $cross_compiling:$ac_tool_warned in
2866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&5
2869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet. If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872 ac_tool_warned=yes ;;
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2882 ac_compiler=`set X $ac_compile; echo $2`
2883 { (ac_try="$ac_compiler --version >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -V >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2914 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2915 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2916 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2984 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2985 GXX=`test $ac_compiler_gnu = yes && echo yes`
2986 ac_test_CXXFLAGS=${CXXFLAGS+set}
2987 ac_save_CXXFLAGS=$CXXFLAGS
2988 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2989 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_cxx_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2994 ac_cxx_werror_flag=yes
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_cv_prog_cxx_g=yes
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_cv_prog_cxx_g=yes
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3176 if test "$ac_test_CXXFLAGS" = set; then
3177 CXXFLAGS=$ac_save_CXXFLAGS
3178 elif test $ac_cv_prog_cxx_g = yes; then
3179 if test "$GXX" = yes; then
3185 if test "$GXX" = yes; then
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3208 if test -z "$CPP"; then
3209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 for ac_c_preproc_warn_flag in '' yes
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3231 # include <limits.h>
3233 # include <assert.h>
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259 if test -z "$ac_cpp_err"; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 # Broken: fails on valid input.
3269 rm -f conftest.err conftest.$ac_ext
3271 # OK, works on sane cases. Now check whether nonexistent headers
3272 # can be detected and how.
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <ac_nonexistent.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3304 # Broken: success on invalid input.
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 # Passes both tests.
3315 rm -f conftest.err conftest.$ac_ext
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.err conftest.$ac_ext
3320 if $ac_preproc_ok; then
3332 { echo "$as_me:$LINENO: result: $CPP" >&5
3333 echo "${ECHO_T}$CPP" >&6; }
3335 for ac_c_preproc_warn_flag in '' yes
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3350 # include <limits.h>
3352 # include <assert.h>
3356 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 if test -z "$ac_cpp_err"; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 # Broken: fails on valid input.
3388 rm -f conftest.err conftest.$ac_ext
3390 # OK, works on sane cases. Now check whether nonexistent headers
3391 # can be detected and how.
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <ac_nonexistent.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3423 # Broken: success on invalid input.
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 # Passes both tests.
3434 rm -f conftest.err conftest.$ac_ext
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then
3442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -d ${srcdir}/projects/llvm-gcc ; then
3459 subdirs="$subdirs projects/llvm-gcc"
3463 if test -d ${srcdir}/projects/test-suite ; then
3464 subdirs="$subdirs projects/test-suite"
3468 if test -d ${srcdir}/projects/llvm-test ; then
3469 subdirs="$subdirs projects/llvm-test"
3473 if test -d ${srcdir}/projects/poolalloc ; then
3474 subdirs="$subdirs projects/poolalloc"
3478 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3479 subdirs="$subdirs projects/llvm-poolalloc"
3483 for i in `ls ${srcdir}/projects`
3485 if test -d ${srcdir}/projects/${i} ; then
3487 sample) subdirs="$subdirs projects/sample"
3489 privbracket) subdirs="$subdirs projects/privbracket"
3491 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3495 llvm-java) subdirs="$subdirs projects/llvm-java"
3497 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3499 safecode) subdirs="$subdirs projects/safecode"
3501 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3510 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3511 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3517 # Check whether --enable-polly was given.
3518 if test "${enable_polly+set}" = set; then
3519 enableval=$enable_polly;
3524 case "$enableval" in
3529 default) ENABLE_POLLY=1
3531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3532 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3533 { (exit 1); exit 1; }; } ;;
3537 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3540 subdirs="$subdirs tools/polly"
3545 # Make sure we can run config.sub.
3546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3548 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3549 { (exit 1); exit 1; }; }
3551 { echo "$as_me:$LINENO: checking build system type" >&5
3552 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3553 if test "${ac_cv_build+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 ac_build_alias=$build_alias
3557 test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559 test "x$ac_build_alias" = x &&
3560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562 { (exit 1); exit 1; }; }
3563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3565 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3566 { (exit 1); exit 1; }; }
3569 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570 echo "${ECHO_T}$ac_cv_build" >&6; }
3571 case $ac_cv_build in
3573 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3574 echo "$as_me: error: invalid value of canonical build" >&2;}
3575 { (exit 1); exit 1; }; };;
3578 ac_save_IFS=$IFS; IFS='-'
3584 # Remember, the first character of IFS is used to create $*,
3585 # except with old shells:
3588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591 { echo "$as_me:$LINENO: checking host system type" >&5
3592 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3593 if test "${ac_cv_host+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test "x$host_alias" = x; then
3597 ac_cv_host=$ac_cv_build
3599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3601 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3602 { (exit 1); exit 1; }; }
3606 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3607 echo "${ECHO_T}$ac_cv_host" >&6; }
3610 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3611 echo "$as_me: error: invalid value of canonical host" >&2;}
3612 { (exit 1); exit 1; }; };;
3615 ac_save_IFS=$IFS; IFS='-'
3621 # Remember, the first character of IFS is used to create $*,
3622 # except with old shells:
3625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628 { echo "$as_me:$LINENO: checking target system type" >&5
3629 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3630 if test "${ac_cv_target+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test "x$target_alias" = x; then
3634 ac_cv_target=$ac_cv_host
3636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3637 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3638 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3639 { (exit 1); exit 1; }; }
3643 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3644 echo "${ECHO_T}$ac_cv_target" >&6; }
3645 case $ac_cv_target in
3647 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3648 echo "$as_me: error: invalid value of canonical target" >&2;}
3649 { (exit 1); exit 1; }; };;
3651 target=$ac_cv_target
3652 ac_save_IFS=$IFS; IFS='-'
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3665 # The aliases save the names the user supplied, while $host etc.
3666 # will get canonicalized.
3667 test -n "$target_alias" &&
3668 test "$program_prefix$program_suffix$program_transform_name" = \
3670 program_prefix=${target_alias}-
3672 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3673 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3674 if test "${llvm_cv_os_type+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="AIX"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="IRIX"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="Cygwin"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-all_load"
3695 llvm_cv_no_link_all_option="-Wl,-noall_load"
3696 llvm_cv_os_type="Darwin"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Minix"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-freebsd* | *-*-kfreebsd-gnu)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="FreeBSD"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="OpenBSD"
3712 llvm_cv_platform_type="Unix" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="NetBSD"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="DragonFly"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="HP-UX"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="Interix"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Linux"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="GNU"
3742 llvm_cv_platform_type="Unix" ;;
3744 llvm_cv_link_all_option="-Wl,-z,allextract"
3745 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3746 llvm_cv_os_type="SunOS"
3747 llvm_cv_platform_type="Unix" ;;
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="AuroraUX"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Win32"
3757 llvm_cv_platform_type="Win32" ;;
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="MingW"
3762 llvm_cv_platform_type="Win32" ;;
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Haiku"
3767 llvm_cv_platform_type="Unix" ;;
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Freestanding"
3772 llvm_cv_platform_type="Unix" ;;
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3779 llvm_cv_link_all_option=""
3780 llvm_cv_no_link_all_option=""
3781 llvm_cv_os_type="Unknown"
3782 llvm_cv_platform_type="Unknown" ;;
3785 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3786 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3789 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3790 if test "${llvm_cv_target_os_type+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 llvm_cv_target_os_type="AIX" ;;
3797 llvm_cv_target_os_type="IRIX" ;;
3799 llvm_cv_target_os_type="Cygwin" ;;
3801 llvm_cv_target_os_type="Darwin" ;;
3803 llvm_cv_target_os_type="Minix" ;;
3804 *-*-freebsd* | *-*-kfreebsd-gnu)
3805 llvm_cv_target_os_type="FreeBSD" ;;
3807 llvm_cv_target_os_type="OpenBSD" ;;
3809 llvm_cv_target_os_type="NetBSD" ;;
3811 llvm_cv_target_os_type="DragonFly" ;;
3813 llvm_cv_target_os_type="HP-UX" ;;
3815 llvm_cv_target_os_type="Interix" ;;
3817 llvm_cv_target_os_type="Linux" ;;
3819 llvm_cv_target_os_type="GNU" ;;
3821 llvm_cv_target_os_type="SunOS" ;;
3823 llvm_cv_target_os_type="AuroraUX" ;;
3825 llvm_cv_target_os_type="Win32" ;;
3827 llvm_cv_target_os_type="MingW" ;;
3829 llvm_cv_target_os_type="Haiku" ;;
3831 llvm_cv_target_os_type="RTEMS" ;;
3833 llvm_cv_target_os_type="NativeClient" ;;
3835 llvm_cv_target_os_type="Freestanding" ;;
3837 llvm_cv_target_os_type="Unknown" ;;
3840 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3841 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843 if test "$llvm_cv_os_type" = "Unknown" ; then
3844 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3845 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3846 { (exit 1); exit 1; }; }
3851 HOST_OS=$llvm_cv_os_type
3853 TARGET_OS=$llvm_cv_target_os_type
3856 LINKALL=$llvm_cv_link_all_option
3858 NOLINKALL=$llvm_cv_no_link_all_option
3861 case $llvm_cv_platform_type in
3864 cat >>confdefs.h <<\_ACEOF
3865 #define LLVM_ON_UNIX 1
3875 cat >>confdefs.h <<\_ACEOF
3876 #define LLVM_ON_WIN32 1
3886 { echo "$as_me:$LINENO: checking target architecture" >&5
3887 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3888 if test "${llvm_cv_target_arch+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 i?86-*) llvm_cv_target_arch="x86" ;;
3893 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3894 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3895 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3896 arm*-*) llvm_cv_target_arch="ARM" ;;
3897 mips-*) llvm_cv_target_arch="Mips" ;;
3898 mipsel-*) llvm_cv_target_arch="Mips" ;;
3899 xcore-*) llvm_cv_target_arch="XCore" ;;
3900 msp430-*) llvm_cv_target_arch="MSP430" ;;
3901 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3902 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3903 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3904 *) llvm_cv_target_arch="Unknown" ;;
3907 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3908 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910 if test "$llvm_cv_target_arch" = "Unknown" ; then
3911 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3912 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3915 case "$llvm_cv_target_arch" in
3916 x86) LLVM_NATIVE_ARCH="X86" ;;
3917 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3918 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3921 ARCH=$llvm_cv_target_arch
3925 i?86-*) host_arch="x86" ;;
3926 amd64-* | x86_64-*) host_arch="x86_64" ;;
3927 sparc*-*) host_arch="Sparc" ;;
3928 powerpc*-*) host_arch="PowerPC" ;;
3929 arm*-*) host_arch="ARM" ;;
3930 mips-*) host_arch="Mips" ;;
3931 mipsel-*) host_arch="Mips" ;;
3932 xcore-*) host_arch="XCore" ;;
3933 msp430-*) host_arch="MSP430" ;;
3934 hexagon-*) host_arch="Hexagon" ;;
3935 mblaze-*) host_arch="MBlaze" ;;
3936 *) host_arch="Unknown" ;;
3939 if test "$host_arch" = "Unknown" ; then
3940 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3941 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3944 HOST_ARCH=$host_arch
3949 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3950 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3951 if test "${ac_cv_path_GREP+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 # Extract the first word of "grep ggrep" to use in msg output
3955 if test -z "$GREP"; then
3956 set dummy grep ggrep; ac_prog_name=$2
3957 if test "${ac_cv_path_GREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 ac_path_GREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in grep ggrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3971 # Check for GNU ac_path_GREP and select it if it is found.
3972 # Check for GNU $ac_path_GREP
3973 case `"$ac_path_GREP" --version 2>&1` in
3975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3978 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 echo 'GREP' >> "conftest.nl"
3985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 ac_count=`expr $ac_count + 1`
3988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_GREP="$ac_path_GREP"
3991 ac_path_GREP_max=$ac_count
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 $ac_path_GREP_found && break 3
4010 GREP="$ac_cv_path_GREP"
4011 if test -z "$GREP"; then
4012 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014 { (exit 1); exit 1; }; }
4018 ac_cv_path_GREP=$GREP
4023 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4024 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4025 GREP="$ac_cv_path_GREP"
4028 { echo "$as_me:$LINENO: checking for egrep" >&5
4029 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4030 if test "${ac_cv_path_EGREP+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4036 # Extract the first word of "egrep" to use in msg output
4037 if test -z "$EGREP"; then
4038 set dummy egrep; ac_prog_name=$2
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 ac_path_EGREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in egrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4053 # Check for GNU ac_path_EGREP and select it if it is found.
4054 # Check for GNU $ac_path_EGREP
4055 case `"$ac_path_EGREP" --version 2>&1` in
4057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 echo 'EGREP' >> "conftest.nl"
4067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 ac_count=`expr $ac_count + 1`
4070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_EGREP="$ac_path_EGREP"
4073 ac_path_EGREP_max=$ac_count
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 $ac_path_EGREP_found && break 3
4092 EGREP="$ac_cv_path_EGREP"
4093 if test -z "$EGREP"; then
4094 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4095 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4096 { (exit 1); exit 1; }; }
4100 ac_cv_path_EGREP=$EGREP
4106 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4107 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4108 EGREP="$ac_cv_path_EGREP"
4111 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4113 if test "${ac_cv_header_stdc+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_header_stdc=yes
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 ac_cv_header_stdc=no
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 if test $ac_cv_header_stdc = yes; then
4180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "memchr" >/dev/null 2>&1; then
4194 ac_cv_header_stdc=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "free" >/dev/null 2>&1; then
4215 ac_cv_header_stdc=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223 if test "$cross_compiling" = yes; then
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4234 #if ((' ' & 0x0FF) == 0x020)
4235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238 # define ISLOWER(c) \
4239 (('a' <= (c) && (c) <= 'i') \
4240 || ('j' <= (c) && (c) <= 'r') \
4241 || ('s' <= (c) && (c) <= 'z'))
4242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4250 for (i = 0; i < 256; i++)
4251 if (XOR (islower (i), ISLOWER (i))
4252 || toupper (i) != TOUPPER (i))
4257 rm -f conftest$ac_exeext
4258 if { (ac_try="$ac_link"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_link") 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4279 echo "$as_me: program exited with status $ac_status" >&5
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_cv_header_stdc=no
4286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4294 if test $ac_cv_header_stdc = yes; then
4296 cat >>confdefs.h <<\_ACEOF
4297 #define STDC_HEADERS 1
4302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313 inttypes.h stdint.h unistd.h
4315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4329 #include <$ac_header>
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 eval "$as_ac_Header=yes"
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 eval "$as_ac_Header=no"
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_res=`eval echo '${'$as_ac_Header'}'`
4376 { echo "$as_me:$LINENO: result: $ac_res" >&5
4377 echo "${ECHO_T}$ac_res" >&6; }
4378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379 cat >>confdefs.h <<_ACEOF
4380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4389 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4390 if test "${ac_cv_c_bigendian+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 # See if sys/param.h defines the BYTE_ORDER macro.
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 #include <sys/param.h>
4406 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4414 rm -f conftest.$ac_objext
4415 if { (ac_try="$ac_compile"
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_compile") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 # It does; now see whether it defined to BIG_ENDIAN or not.
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <sys/types.h>
4456 #include <sys/param.h>
4461 #if BYTE_ORDER != BIG_ENDIAN
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_c_bigendian=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_c_bigendian=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518 # try to guess the endianness by grepping values into an object file
4519 ac_cv_c_bigendian=unknown
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535 _ascii (); _ebcdic ();
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4575 ac_cv_c_bigendian=yes
4577 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4578 if test "$ac_cv_c_bigendian" = unknown; then
4579 ac_cv_c_bigendian=no
4581 # finding both strings is unlikely to happen, but who knows?
4582 ac_cv_c_bigendian=unknown
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4605 /* Are we little or big endian? From Harbison&Steele. */
4609 char c[sizeof (long int)];
4612 return u.c[sizeof (long int) - 1] == 1;
4618 rm -f conftest$ac_exeext
4619 if { (ac_try="$ac_link"
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_link") 2>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_try") 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_c_bigendian=no
4640 echo "$as_me: program exited with status $ac_status" >&5
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_cv_c_bigendian=yes
4647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4656 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4657 case $ac_cv_c_bigendian in
4665 { { echo "$as_me:$LINENO: error: unknown endianness
4666 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4667 echo "$as_me: error: unknown endianness
4668 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4673 if test "$cross_compiling" = yes; then
4674 LLVM_CROSS_COMPILING=1
4677 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4678 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4679 if test "${ac_cv_build_exeext+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4683 ac_cv_build_exeext=.exe
4685 ac_build_prefix=${build_alias}-
4687 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4688 set dummy ${ac_build_prefix}gcc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 BUILD_CC=$ac_cv_prog_BUILD_CC
4715 if test -n "$BUILD_CC"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4717 echo "${ECHO_T}$BUILD_CC" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4724 if test -z "$BUILD_CC"; then
4725 # Extract the first word of "gcc", so it can be a program name with args.
4726 set dummy gcc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$BUILD_CC"; then
4733 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_BUILD_CC="gcc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 BUILD_CC=$ac_cv_prog_BUILD_CC
4753 if test -n "$BUILD_CC"; then
4754 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4755 echo "${ECHO_T}$BUILD_CC" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 if test -z "$BUILD_CC"; then
4763 # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -n "$BUILD_CC"; then
4771 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782 ac_prog_rejected=yes
4785 ac_cv_prog_BUILD_CC="cc"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 if test $ac_prog_rejected = yes; then
4794 # We found a bogon in the path, so make sure we never use it.
4795 set dummy $ac_cv_prog_BUILD_CC
4797 if test $# != 0; then
4798 # We chose a different compiler from the bogus one.
4799 # However, it has the same basename, so the bogon will be chosen
4800 # first if we set BUILD_CC to just the basename; use the full file name.
4802 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4807 BUILD_CC=$ac_cv_prog_BUILD_CC
4808 if test -n "$BUILD_CC"; then
4809 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4810 echo "${ECHO_T}$BUILD_CC" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4819 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4820 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4821 { (exit 1); exit 1; }; }
4822 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4824 echo 'int main () { return 0; }' > conftest.$ac_ext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4827 (eval $ac_build_link) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; then
4831 for file in conftest.*; do
4833 *.c | *.o | *.obj | *.dSYM) ;;
4834 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4839 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4840 { (exit 1); exit 1; }; }
4843 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4848 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4849 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4850 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4851 ac_build_exeext=$BUILD_EXEEXT
4853 ac_build_prefix=${build_alias}-
4854 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4855 set dummy ${ac_build_prefix}g++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4882 if test -n "$BUILD_CXX"; then
4883 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4884 echo "${ECHO_T}$BUILD_CXX" >&6; }
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 if test -z "$BUILD_CXX"; then
4892 # Extract the first word of "g++", so it can be a program name with args.
4893 set dummy g++; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -n "$BUILD_CXX"; then
4900 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_BUILD_CXX="g++"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4920 if test -n "$BUILD_CXX"; then
4921 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4922 echo "${ECHO_T}$BUILD_CXX" >&6; }
4924 { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4929 if test -z "$BUILD_CXX"; then
4930 # Extract the first word of "c++", so it can be a program name with args.
4931 set dummy c++; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$BUILD_CXX"; then
4938 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4949 ac_prog_rejected=yes
4952 ac_cv_prog_BUILD_CXX="c++"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 if test $ac_prog_rejected = yes; then
4961 # We found a bogon in the path, so make sure we never use it.
4962 set dummy $ac_cv_prog_BUILD_CXX
4964 if test $# != 0; then
4965 # We chose a different compiler from the bogus one.
4966 # However, it has the same basename, so the bogon will be chosen
4967 # first if we set BUILD_CXX to just the basename; use the full file name.
4969 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4974 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4975 if test -n "$BUILD_CXX"; then
4976 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4977 echo "${ECHO_T}$BUILD_CXX" >&6; }
4979 { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4987 LLVM_CROSS_COMPILING=0
4991 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5002 # Check whether --enable-libcpp was given.
5003 if test "${enable_libcpp+set}" = set; then
5004 enableval=$enable_libcpp;
5009 case "$enableval" in
5010 yes) ENABLE_LIBCPP=1
5014 default) ENABLE_LIBCPP=0
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5017 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5021 # Check whether --enable-cxx11 was given.
5022 if test "${enable_cxx11+set}" = set; then
5023 enableval=$enable_cxx11;
5028 case "$enableval" in
5033 default) ENABLE_CXX11=0
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 # Check whether --enable-optimized was given.
5041 if test "${enable_optimized+set}" = set; then
5042 enableval=$enable_optimized;
5047 if test ${enableval} = "no" ; then
5051 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5055 # Check whether --enable-profiling was given.
5056 if test "${enable_profiling+set}" = set; then
5057 enableval=$enable_profiling;
5062 if test ${enableval} = "no" ; then
5066 ENABLE_PROFILING=ENABLE_PROFILING=1
5070 # Check whether --enable-assertions was given.
5071 if test "${enable_assertions+set}" = set; then
5072 enableval=$enable_assertions;
5077 if test ${enableval} = "yes" ; then
5081 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5085 # Check whether --enable-expensive-checks was given.
5086 if test "${enable_expensive_checks+set}" = set; then
5087 enableval=$enable_expensive_checks;
5092 if test ${enableval} = "yes" ; then
5093 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5095 EXPENSIVE_CHECKS=yes
5098 ENABLE_EXPENSIVE_CHECKS=
5104 # Check whether --enable-debug-runtime was given.
5105 if test "${enable_debug_runtime+set}" = set; then
5106 enableval=$enable_debug_runtime;
5111 if test ${enableval} = "no" ; then
5115 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5119 # Check whether --enable-debug-symbols was given.
5120 if test "${enable_debug_symbols+set}" = set; then
5121 enableval=$enable_debug_symbols;
5126 if test ${enableval} = "no" ; then
5130 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5134 # Check whether --enable-jit was given.
5135 if test "${enable_jit+set}" = set; then
5136 enableval=$enable_jit;
5141 if test ${enableval} = "no"
5146 case "$llvm_cv_target_arch" in
5147 x86) TARGET_HAS_JIT=1
5149 Sparc) TARGET_HAS_JIT=0
5151 PowerPC) TARGET_HAS_JIT=1
5153 x86_64) TARGET_HAS_JIT=1
5155 ARM) TARGET_HAS_JIT=1
5157 Mips) TARGET_HAS_JIT=1
5159 XCore) TARGET_HAS_JIT=0
5161 MSP430) TARGET_HAS_JIT=0
5163 Hexagon) TARGET_HAS_JIT=0
5165 MBlaze) TARGET_HAS_JIT=0
5167 NVPTX) TARGET_HAS_JIT=0
5174 # Check whether --enable-docs was given.
5175 if test "${enable_docs+set}" = set; then
5176 enableval=$enable_docs;
5181 case "$enableval" in
5186 default) ENABLE_DOCS=1
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5193 # Check whether --enable-doxygen was given.
5194 if test "${enable_doxygen+set}" = set; then
5195 enableval=$enable_doxygen;
5200 case "$enableval" in
5201 yes) ENABLE_DOXYGEN=1
5203 no) ENABLE_DOXYGEN=0
5205 default) ENABLE_DOXYGEN=0
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 # Check whether --enable-threads was given.
5213 if test "${enable_threads+set}" = set; then
5214 enableval=$enable_threads;
5219 case "$enableval" in
5220 yes) LLVM_ENABLE_THREADS=1
5222 no) LLVM_ENABLE_THREADS=0
5224 default) LLVM_ENABLE_THREADS=1
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5231 cat >>confdefs.h <<_ACEOF
5232 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5236 # Check whether --enable-pthreads was given.
5237 if test "${enable_pthreads+set}" = set; then
5238 enableval=$enable_pthreads;
5243 case "$enableval" in
5244 yes) ENABLE_PTHREADS=1
5246 no) ENABLE_PTHREADS=0
5248 default) ENABLE_PTHREADS=1
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-pic was given.
5256 if test "${enable_pic+set}" = set; then
5257 enableval=$enable_pic;
5262 case "$enableval" in
5267 default) ENABLE_PIC=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_PIC $ENABLE_PIC
5279 # Check whether --enable-shared was given.
5280 if test "${enable_shared+set}" = set; then
5281 enableval=$enable_shared;
5286 case "$enableval" in
5287 yes) ENABLE_SHARED=1
5291 default) ENABLE_SHARED=0
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 # Check whether --enable-embed-stdcxx was given.
5299 if test "${enable_embed_stdcxx+set}" = set; then
5300 enableval=$enable_embed_stdcxx;
5305 case "$enableval" in
5306 yes) ENABLE_EMBED_STDCXX=1
5308 no) ENABLE_EMBED_STDCXX=0
5310 default) ENABLE_EMBED_STDCXX=0
5312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5317 # Check whether --enable-timestamps was given.
5318 if test "${enable_timestamps+set}" = set; then
5319 enableval=$enable_timestamps;
5324 case "$enableval" in
5325 yes) ENABLE_TIMESTAMPS=1
5327 no) ENABLE_TIMESTAMPS=0
5329 default) ENABLE_TIMESTAMPS=1
5331 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5332 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5333 { (exit 1); exit 1; }; } ;;
5336 cat >>confdefs.h <<_ACEOF
5337 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5342 # Check whether --enable-targets was given.
5343 if test "${enable_targets+set}" = set; then
5344 enableval=$enable_targets;
5349 if test "$enableval" = host-only ; then
5352 case "$enableval" in
5353 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5354 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5356 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5358 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5359 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5360 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5364 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5365 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5366 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5367 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5368 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5369 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370 host) case "$llvm_cv_target_arch" in
5371 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5372 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5373 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5374 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5375 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5376 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5377 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5378 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5379 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5380 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5381 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5382 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5383 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5384 echo "$as_me: error: Can not set target to build" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5387 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5388 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5389 { (exit 1); exit 1; }; } ;;
5394 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5397 for a_target in $TARGETS_TO_BUILD; do
5398 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5404 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5405 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5406 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5407 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5408 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5409 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5411 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5412 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5434 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5441 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5451 LLVM_ENUM_TARGETS=""
5452 LLVM_ENUM_ASM_PRINTERS=""
5453 LLVM_ENUM_ASM_PARSERS=""
5454 LLVM_ENUM_DISASSEMBLERS=""
5455 for target_to_build in $TARGETS_TO_BUILD; do
5456 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5457 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5458 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5460 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5461 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5463 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5464 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5473 # Check whether --with-optimize-option was given.
5474 if test "${with_optimize_option+set}" = set; then
5475 withval=$with_optimize_option;
5480 { echo "$as_me:$LINENO: checking optimization flags" >&5
5481 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5484 case "$llvm_cv_os_type" in
5485 FreeBSD) optimize_option=-O2 ;;
5486 MingW) optimize_option=-O2 ;;
5487 *) optimize_option=-O3 ;;
5489 *) optimize_option="$withval" ;;
5491 OPTIMIZE_OPTION=$optimize_option
5493 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5494 echo "${ECHO_T}$optimize_option" >&6; }
5497 # Check whether --with-extra-options was given.
5498 if test "${with_extra_options+set}" = set; then
5499 withval=$with_extra_options;
5505 default) EXTRA_OPTIONS= ;;
5506 *) EXTRA_OPTIONS=$withval ;;
5508 EXTRA_OPTIONS=$EXTRA_OPTIONS
5512 # Check whether --with-extra-ld-options was given.
5513 if test "${with_extra_ld_options+set}" = set; then
5514 withval=$with_extra_ld_options;
5520 default) EXTRA_LD_OPTIONS= ;;
5521 *) EXTRA_LD_OPTIONS=$withval ;;
5523 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5526 # Check whether --enable-bindings was given.
5527 if test "${enable_bindings+set}" = set; then
5528 enableval=$enable_bindings;
5533 BINDINGS_TO_BUILD=""
5534 case "$enableval" in
5535 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5536 all ) BINDINGS_TO_BUILD="ocaml" ;;
5537 none | no) BINDINGS_TO_BUILD="" ;;
5538 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5539 case "$a_binding" in
5540 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5541 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5542 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5543 { (exit 1); exit 1; }; } ;;
5550 # Check whether --with-ocaml-libdir was given.
5551 if test "${with_ocaml_libdir+set}" = set; then
5552 withval=$with_ocaml_libdir;
5558 auto) with_ocaml_libdir="$withval" ;;
5559 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5560 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5561 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5562 { (exit 1); exit 1; }; } ;;
5566 # Check whether --with-clang-srcdir was given.
5567 if test "${with_clang_srcdir+set}" = set; then
5568 withval=$with_clang_srcdir;
5574 -) clang_src_root="" ;;
5575 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5576 *) clang_src_root="$ac_pwd/$withval" ;;
5578 CLANG_SRC_ROOT=$clang_src_root
5582 # Check whether --with-clang-resource-dir was given.
5583 if test "${with_clang_resource_dir+set}" = set; then
5584 withval=$with_clang_resource_dir;
5590 cat >>confdefs.h <<_ACEOF
5591 #define CLANG_RESOURCE_DIR "$withval"
5596 # Check whether --with-c-include-dirs was given.
5597 if test "${with_c_include_dirs+set}" = set; then
5598 withval=$with_c_include_dirs;
5604 cat >>confdefs.h <<_ACEOF
5605 #define C_INCLUDE_DIRS "$withval"
5609 # Clang normally uses the system c++ headers and libraries. With this option,
5610 # clang will use the ones provided by a gcc installation instead. This option should
5611 # be passed the same value that was used with --prefix when configuring gcc.
5613 # Check whether --with-gcc-toolchain was given.
5614 if test "${with_gcc_toolchain+set}" = set; then
5615 withval=$with_gcc_toolchain;
5621 cat >>confdefs.h <<_ACEOF
5622 #define GCC_INSTALL_PREFIX "$withval"
5627 # Check whether --with-default-sysroot was given.
5628 if test "${with_default_sysroot+set}" = set; then
5629 withval=$with_default_sysroot;
5635 cat >>confdefs.h <<_ACEOF
5636 #define DEFAULT_SYSROOT "$withval"
5641 # Check whether --with-binutils-include was given.
5642 if test "${with_binutils_include+set}" = set; then
5643 withval=$with_binutils_include;
5649 default) WITH_BINUTILS_INCDIR=default ;;
5650 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5651 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5652 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5653 { (exit 1); exit 1; }; } ;;
5655 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5656 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5658 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5659 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5660 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5661 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5662 { (exit 1); exit 1; }; };
5667 # Check whether --with-bug-report-url was given.
5668 if test "${with_bug_report_url+set}" = set; then
5669 withval=$with_bug_report_url;
5671 withval="http://llvm.org/bugs/"
5675 cat >>confdefs.h <<_ACEOF
5676 #define BUG_REPORT_URL "$withval"
5680 # Check whether --enable-libffi was given.
5681 if test "${enable_libffi+set}" = set; then
5682 enableval=$enable_libffi; case "$enableval" in
5683 yes) llvm_cv_enable_libffi="yes" ;;
5684 no) llvm_cv_enable_libffi="no" ;;
5685 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5686 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5687 { (exit 1); exit 1; }; } ;;
5690 llvm_cv_enable_libffi=no
5695 # Check whether --with-internal-prefix was given.
5696 if test "${with_internal_prefix+set}" = set; then
5697 withval=$with_internal_prefix;
5702 INTERNAL_PREFIX=$withval
5706 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5707 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5708 if test "${lt_cv_path_NM+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test -n "$NM"; then
5712 # Let the user override the test.
5715 lt_nm_to_check="${ac_tool_prefix}nm"
5716 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5717 lt_nm_to_check="$lt_nm_to_check nm"
5719 for lt_tmp_nm in $lt_nm_to_check; do
5720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5721 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5723 test -z "$ac_dir" && ac_dir=.
5724 tmp_nm="$ac_dir/$lt_tmp_nm"
5725 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5726 # Check to see if the nm accepts a BSD-compat flag.
5727 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5728 # nm: unknown option "B" ignored
5729 # Tru64's nm complains that /dev/null is an invalid object file
5730 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5731 */dev/null* | *'Invalid file or object type'*)
5732 lt_cv_path_NM="$tmp_nm -B"
5736 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5738 lt_cv_path_NM="$tmp_nm -p"
5742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5743 continue # so that we can try to find one that supports BSD flags
5752 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5755 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5756 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5761 { echo "$as_me:$LINENO: checking for GNU make" >&5
5762 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5763 if test "${llvm_cv_gnu_make_command+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 llvm_cv_gnu_make_command=''
5767 for a in "$MAKE" make gmake gnumake ; do
5768 if test -z "$a" ; then continue ; fi ;
5769 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5771 llvm_cv_gnu_make_command=$a ;
5776 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5777 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5778 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5782 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5783 echo "${ECHO_T}\"Not found\"" >&6; };
5787 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5788 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5790 if test "$LN_S" = "ln -s"; then
5791 { echo "$as_me:$LINENO: result: yes" >&5
5792 echo "${ECHO_T}yes" >&6; }
5794 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5795 echo "${ECHO_T}no, using $LN_S" >&6; }
5798 # Extract the first word of "cmp", so it can be a program name with args.
5799 set dummy cmp; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_path_CMP+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5830 if test -n "$CMP"; then
5831 { echo "$as_me:$LINENO: result: $CMP" >&5
5832 echo "${ECHO_T}$CMP" >&6; }
5834 { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5839 # Extract the first word of "cp", so it can be a program name with args.
5840 set dummy cp; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_CP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5871 if test -n "$CP"; then
5872 { echo "$as_me:$LINENO: result: $CP" >&5
5873 echo "${ECHO_T}$CP" >&6; }
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5880 # Extract the first word of "date", so it can be a program name with args.
5881 set dummy date; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_DATE+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5911 DATE=$ac_cv_path_DATE
5912 if test -n "$DATE"; then
5913 { echo "$as_me:$LINENO: result: $DATE" >&5
5914 echo "${ECHO_T}$DATE" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5921 # Extract the first word of "find", so it can be a program name with args.
5922 set dummy find; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_FIND+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5952 FIND=$ac_cv_path_FIND
5953 if test -n "$FIND"; then
5954 { echo "$as_me:$LINENO: result: $FIND" >&5
5955 echo "${ECHO_T}$FIND" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 # Extract the first word of "grep", so it can be a program name with args.
5963 set dummy grep; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_GREP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5993 GREP=$ac_cv_path_GREP
5994 if test -n "$GREP"; then
5995 { echo "$as_me:$LINENO: result: $GREP" >&5
5996 echo "${ECHO_T}$GREP" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 # Extract the first word of "mkdir", so it can be a program name with args.
6004 set dummy mkdir; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_MKDIR+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6034 MKDIR=$ac_cv_path_MKDIR
6035 if test -n "$MKDIR"; then
6036 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6037 echo "${ECHO_T}$MKDIR" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 # Extract the first word of "mv", so it can be a program name with args.
6045 set dummy mv; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_path_MV+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6076 if test -n "$MV"; then
6077 { echo "$as_me:$LINENO: result: $MV" >&5
6078 echo "${ECHO_T}$MV" >&6; }
6080 { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_RANLIB+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6116 echo "${ECHO_T}$RANLIB" >&6; }
6118 { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_ac_ct_RANLIB="ranlib"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6156 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6158 { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6162 if test "x$ac_ct_RANLIB" = x; then
6165 case $cross_compiling:$ac_tool_warned in
6167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6168 whose name does not start with the host triplet. If you think this
6169 configuration is useful to you, please write to autoconf@gnu.org." >&5
6170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet. If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6173 ac_tool_warned=yes ;;
6175 RANLIB=$ac_ct_RANLIB
6178 RANLIB="$ac_cv_prog_RANLIB"
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_AR+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$AR"; then
6190 ac_cv_prog_AR="$AR" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_AR="${ac_tool_prefix}ar"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 if test -n "$AR"; then
6211 { echo "$as_me:$LINENO: result: $AR" >&5
6212 echo "${ECHO_T}$AR" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6220 if test -z "$ac_cv_prog_AR"; then
6222 # Extract the first word of "ar", so it can be a program name with args.
6223 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$ac_ct_AR"; then
6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_AR="ar"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250 if test -n "$ac_ct_AR"; then
6251 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6252 echo "${ECHO_T}$ac_ct_AR" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6258 if test "x$ac_ct_AR" = x; then
6261 case $cross_compiling:$ac_tool_warned in
6263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6264 whose name does not start with the host triplet. If you think this
6265 configuration is useful to you, please write to autoconf@gnu.org." >&5
6266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6267 whose name does not start with the host triplet. If you think this
6268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6269 ac_tool_warned=yes ;;
6277 # Extract the first word of "rm", so it can be a program name with args.
6278 set dummy rm; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_path_RM+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6309 if test -n "$RM"; then
6310 { echo "$as_me:$LINENO: result: $RM" >&5
6311 echo "${ECHO_T}$RM" >&6; }
6313 { echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6; }
6318 # Extract the first word of "sed", so it can be a program name with args.
6319 set dummy sed; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_SED+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6350 if test -n "$SED"; then
6351 { echo "$as_me:$LINENO: result: $SED" >&5
6352 echo "${ECHO_T}$SED" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 # Extract the first word of "tar", so it can be a program name with args.
6360 set dummy tar; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_TAR+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6391 if test -n "$TAR"; then
6392 { echo "$as_me:$LINENO: result: $TAR" >&5
6393 echo "${ECHO_T}$TAR" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 # Extract the first word of "pwd", so it can be a program name with args.
6401 set dummy pwd; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_BINPWD+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6431 BINPWD=$ac_cv_path_BINPWD
6432 if test -n "$BINPWD"; then
6433 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6434 echo "${ECHO_T}$BINPWD" >&6; }
6436 { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6442 # Extract the first word of "Graphviz", so it can be a program name with args.
6443 set dummy Graphviz; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6473 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6474 if test -n "$GRAPHVIZ"; then
6475 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6476 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6478 { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6483 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define HAVE_GRAPHVIZ 1
6489 if test "$llvm_cv_os_type" = "MingW" ; then
6490 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6493 cat >>confdefs.h <<_ACEOF
6494 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6498 # Extract the first word of "dot", so it can be a program name with args.
6499 set dummy dot; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_DOT+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6530 if test -n "$DOT"; then
6531 { echo "$as_me:$LINENO: result: $DOT" >&5
6532 echo "${ECHO_T}$DOT" >&6; }
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 if test "$DOT" != "echo dot" ; then
6541 cat >>confdefs.h <<\_ACEOF
6545 if test "$llvm_cv_os_type" = "MingW" ; then
6546 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6549 cat >>confdefs.h <<_ACEOF
6550 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6554 # Extract the first word of "fdp", so it can be a program name with args.
6555 set dummy fdp; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_path_FDP+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6586 if test -n "$FDP"; then
6587 { echo "$as_me:$LINENO: result: $FDP" >&5
6588 echo "${ECHO_T}$FDP" >&6; }
6590 { echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6; }
6595 if test "$FDP" != "echo fdp" ; then
6597 cat >>confdefs.h <<\_ACEOF
6601 if test "$llvm_cv_os_type" = "MingW" ; then
6602 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6605 cat >>confdefs.h <<_ACEOF
6606 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6610 # Extract the first word of "neato", so it can be a program name with args.
6611 set dummy neato; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_NEATO+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6641 NEATO=$ac_cv_path_NEATO
6642 if test -n "$NEATO"; then
6643 { echo "$as_me:$LINENO: result: $NEATO" >&5
6644 echo "${ECHO_T}$NEATO" >&6; }
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6651 if test "$NEATO" != "echo neato" ; then
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_NEATO 1
6657 if test "$llvm_cv_os_type" = "MingW" ; then
6658 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6661 cat >>confdefs.h <<_ACEOF
6662 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6666 # Extract the first word of "twopi", so it can be a program name with args.
6667 set dummy twopi; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_TWOPI+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6697 TWOPI=$ac_cv_path_TWOPI
6698 if test -n "$TWOPI"; then
6699 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6700 echo "${ECHO_T}$TWOPI" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6707 if test "$TWOPI" != "echo twopi" ; then
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_TWOPI 1
6713 if test "$llvm_cv_os_type" = "MingW" ; then
6714 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6717 cat >>confdefs.h <<_ACEOF
6718 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6722 # Extract the first word of "circo", so it can be a program name with args.
6723 set dummy circo; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_CIRCO+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6753 CIRCO=$ac_cv_path_CIRCO
6754 if test -n "$CIRCO"; then
6755 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6756 echo "${ECHO_T}$CIRCO" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6763 if test "$CIRCO" != "echo circo" ; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_CIRCO 1
6769 if test "$llvm_cv_os_type" = "MingW" ; then
6770 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6773 cat >>confdefs.h <<_ACEOF
6774 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6778 for ac_prog in gv gsview32
6780 # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_path_GV+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 if test -n "$GV"; then
6812 { echo "$as_me:$LINENO: result: $GV" >&5
6813 echo "${ECHO_T}$GV" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 test -n "$GV" && break
6822 test -n "$GV" || GV="echo gv"
6824 if test "$GV" != "echo gv" ; then
6826 cat >>confdefs.h <<\_ACEOF
6830 if test "$llvm_cv_os_type" = "MingW" ; then
6831 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_GV "$GV${EXEEXT}"
6839 # Extract the first word of "dotty", so it can be a program name with args.
6840 set dummy dotty; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_DOTTY+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6870 DOTTY=$ac_cv_path_DOTTY
6871 if test -n "$DOTTY"; then
6872 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6873 echo "${ECHO_T}$DOTTY" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 if test "$DOTTY" != "echo dotty" ; then
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_DOTTY 1
6886 if test "$llvm_cv_os_type" = "MingW" ; then
6887 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6890 cat >>confdefs.h <<_ACEOF
6891 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6895 # Extract the first word of "xdot.py", so it can be a program name with args.
6896 set dummy xdot.py; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6926 XDOT_PY=$ac_cv_path_XDOT_PY
6927 if test -n "$XDOT_PY"; then
6928 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6929 echo "${ECHO_T}$XDOT_PY" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 if test "$XDOT_PY" != "echo xdot.py" ; then
6938 cat >>confdefs.h <<\_ACEOF
6939 #define HAVE_XDOT_PY 1
6942 if test "$llvm_cv_os_type" = "MingW" ; then
6943 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6946 cat >>confdefs.h <<_ACEOF
6947 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6952 # Find a good install program. We prefer a C program (faster),
6953 # so one script is as good as another. But avoid the broken or
6954 # incompatible versions:
6955 # SysV /etc/install, /usr/sbin/install
6956 # SunOS /usr/etc/install
6957 # IRIX /sbin/install
6959 # AmigaOS /C/install, which installs bootblocks on floppy discs
6960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6963 # OS/2's system install, which has a completely different semantic
6964 # ./install, which can be erroneously created by make from ./install.sh.
6965 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6966 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6967 if test -z "$INSTALL"; then
6968 if test "${ac_cv_path_install+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 # Account for people who put trailing slashes in PATH elements.
6978 ./ | .// | /cC/* | \
6979 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6980 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6983 # OSF1 and SCO ODT 3.0 have their own names for install.
6984 # Don't use installbsd from OSF since it installs stuff as root
6986 for ac_prog in ginstall scoinst install; do
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6989 if test $ac_prog = install &&
6990 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6991 # AIX install. It has an incompatible calling convention.
6993 elif test $ac_prog = install &&
6994 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6995 # program-specific install script used by HP pwplus--don't use.
6998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7011 if test "${ac_cv_path_install+set}" = set; then
7012 INSTALL=$ac_cv_path_install
7014 # As a last resort, use the slow shell script. Don't cache a
7015 # value for INSTALL within a source directory, because that will
7016 # break other packages using the cache if that directory is
7017 # removed, or if the value is a relative name.
7018 INSTALL=$ac_install_sh
7021 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7022 echo "${ECHO_T}$INSTALL" >&6; }
7024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7025 # It thinks the first close brace ends the variable substitution.
7026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7033 [\\/$]* | ?:[\\/]* ) ;;
7034 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7037 # Extract the first word of "bzip2", so it can be a program name with args.
7038 set dummy bzip2; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_BZIP2+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 BZIP2=$ac_cv_path_BZIP2
7068 if test -n "$BZIP2"; then
7069 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7070 echo "${ECHO_T}$BZIP2" >&6; }
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "cat", so it can be a program name with args.
7078 set dummy cat; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_CAT+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 if test -n "$CAT"; then
7109 { echo "$as_me:$LINENO: result: $CAT" >&5
7110 echo "${ECHO_T}$CAT" >&6; }
7112 { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7117 # Extract the first word of "doxygen", so it can be a program name with args.
7118 set dummy doxygen; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 DOXYGEN=$ac_cv_path_DOXYGEN
7148 if test -n "$DOXYGEN"; then
7149 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7150 echo "${ECHO_T}$DOXYGEN" >&6; }
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7157 # Extract the first word of "groff", so it can be a program name with args.
7158 set dummy groff; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GROFF+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 GROFF=$ac_cv_path_GROFF
7188 if test -n "$GROFF"; then
7189 { echo "$as_me:$LINENO: result: $GROFF" >&5
7190 echo "${ECHO_T}$GROFF" >&6; }
7192 { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7197 # Extract the first word of "gzip", so it can be a program name with args.
7198 set dummy gzip; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 GZIPBIN=$ac_cv_path_GZIPBIN
7228 if test -n "$GZIPBIN"; then
7229 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7230 echo "${ECHO_T}$GZIPBIN" >&6; }
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7237 # Extract the first word of "pdfroff", so it can be a program name with args.
7238 set dummy pdfroff; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_PDFROFF+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 PDFROFF=$ac_cv_path_PDFROFF
7268 if test -n "$PDFROFF"; then
7269 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7270 echo "${ECHO_T}$PDFROFF" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "zip", so it can be a program name with args.
7278 set dummy zip; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_ZIP+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 if test -n "$ZIP"; then
7309 { echo "$as_me:$LINENO: result: $ZIP" >&5
7310 echo "${ECHO_T}$ZIP" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 for ac_prog in ocamlc
7319 # Extract the first word of "$ac_prog", so it can be a program name with args.
7320 set dummy $ac_prog; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_OCAMLC+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 OCAMLC=$ac_cv_path_OCAMLC
7350 if test -n "$OCAMLC"; then
7351 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7352 echo "${ECHO_T}$OCAMLC" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 test -n "$OCAMLC" && break
7362 for ac_prog in ocamlopt
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 OCAMLOPT=$ac_cv_path_OCAMLOPT
7395 if test -n "$OCAMLOPT"; then
7396 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7397 echo "${ECHO_T}$OCAMLOPT" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 test -n "$OCAMLOPT" && break
7407 for ac_prog in ocamldep
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 OCAMLDEP=$ac_cv_path_OCAMLDEP
7440 if test -n "$OCAMLDEP"; then
7441 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7442 echo "${ECHO_T}$OCAMLDEP" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 test -n "$OCAMLDEP" && break
7452 for ac_prog in ocamldoc
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 OCAMLDOC=$ac_cv_path_OCAMLDOC
7485 if test -n "$OCAMLDOC"; then
7486 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7487 echo "${ECHO_T}$OCAMLDOC" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 test -n "$OCAMLDOC" && break
7497 for ac_prog in gas as
7499 # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_GAS+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 if test -n "$GAS"; then
7531 { echo "$as_me:$LINENO: result: $GAS" >&5
7532 echo "${ECHO_T}$GAS" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7539 test -n "$GAS" && break
7543 { echo "$as_me:$LINENO: checking for linker version" >&5
7544 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7545 if test "${llvm_cv_link_version+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 version_string="$(ld -v 2>&1 | head -1)"
7552 if (echo "$version_string" | grep -q "ld64"); then
7553 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7555 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7559 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7560 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7562 cat >>confdefs.h <<_ACEOF
7563 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7568 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7569 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7570 if test "${llvm_cv_link_use_r+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580 CFLAGS="$CFLAGS -Wl,-R."
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (ac_try="$ac_link"
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_link") 2>conftest.er1
7605 grep -v '^ *+' conftest.er1 >conftest.err
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7611 { (case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_try") 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_try") 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 llvm_cv_link_use_r=yes
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 llvm_cv_link_use_r=no
7638 rm -f core conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7651 if test "$llvm_cv_link_use_r" = yes ; then
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_LINK_R 1
7660 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7661 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7662 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (ac_try="$ac_link"
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_link") 2>conftest.er1
7697 grep -v '^ *+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7703 { (case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_try") 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest$ac_exeext'
7713 { (case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_try") 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 llvm_cv_link_use_export_dynamic=yes
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 llvm_cv_link_use_export_dynamic=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7742 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7743 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_LINK_EXPORT_DYNAMIC 1
7752 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7753 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7754 if test "${llvm_cv_link_use_version_script+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 # The following code is from the autoconf manual,
7766 # "11.13: Limitations of Usual Tools".
7767 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7768 # Use mktemp if possible; otherwise fall back on mkdir,
7769 # with $RANDOM to make collisions less likely.
7773 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7775 test -n "$tmp" && test -d "$tmp"
7777 tmp=$TMPDIR/foo$$-$RANDOM
7778 (umask 077 && mkdir "$tmp")
7781 echo "{" > "$tmp/export.map"
7782 echo " global: main;" >> "$tmp/export.map"
7783 echo " local: *;" >> "$tmp/export.map"
7784 echo "};" >> "$tmp/export.map"
7786 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7787 cat >conftest.$ac_ext <<_ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_link") 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_try") 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 llvm_cv_link_use_version_script=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 llvm_cv_link_use_version_script=no
7844 rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 rm "$tmp/export.map"
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7858 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7859 if test "$llvm_cv_link_use_version_script" = yes ; then
7860 HAVE_LINK_VERSION_SCRIPT=1
7867 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7869 if test "${ac_cv_c_const+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7882 /* FIXME: Include the comments suggested by Paul. */
7884 /* Ultrix mips cc rejects this. */
7885 typedef int charset[2];
7887 /* SunOS 4.1.1 cc rejects this. */
7888 char const *const *ccp;
7890 /* NEC SVR4.0.2 mips cc rejects this. */
7891 struct point {int x, y;};
7892 static struct point const zero = {0,0};
7893 /* AIX XL C 1.02.0.0 rejects this.
7894 It does not let you subtract one const X* pointer from another in
7895 an arm of an if-expression whose if-part is not a constant
7897 const char *g = "string";
7898 ccp = &g + (g ? g-g : 0);
7899 /* HPUX 7.0 cc rejects these. */
7902 ccp = (char const *const *) p;
7903 { /* SCO 3.2v4 cc rejects this. */
7905 char const *s = 0 ? (char *) 0 : (char const *) 0;
7910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7912 const int *foo = &x[0];
7915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7916 typedef const int *iptr;
7920 { /* AIX XL C 1.02.0.0 rejects this saying
7921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7922 struct s { int j; const int *ap[3]; };
7923 struct s *b; b->j = 5;
7925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7929 return !x[0] && !zero.x;
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7981 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7982 if test $ac_cv_c_const = no; then
7984 cat >>confdefs.h <<\_ACEOF
7996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 #include <sys/types.h>
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_Header=yes"
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 eval "$as_ac_Header=no"
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 ac_res=`eval echo '${'$as_ac_Header'}'`
8066 { echo "$as_me:$LINENO: result: $ac_res" >&5
8067 echo "${ECHO_T}$ac_res" >&6; }
8068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8069 cat >>confdefs.h <<_ACEOF
8070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8073 ac_header_dirent=$ac_hdr; break
8077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8078 if test $ac_header_dirent = dirent.h; then
8079 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8081 if test "${ac_cv_search_opendir+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 ac_func_search_save_LIBS=$LIBS
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8092 /* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
8107 for ac_lib in '' dir; do
8108 if test -z "$ac_lib"; then
8109 ac_res="none required"
8112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_cv_search_opendir=$ac_res
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8156 rm -f core conftest.err conftest.$ac_objext \
8158 if test "${ac_cv_search_opendir+set}" = set; then
8162 if test "${ac_cv_search_opendir+set}" = set; then
8165 ac_cv_search_opendir=no
8168 LIBS=$ac_func_search_save_LIBS
8170 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8171 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8172 ac_res=$ac_cv_search_opendir
8173 if test "$ac_res" != no; then
8174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8179 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8180 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8181 if test "${ac_cv_search_opendir+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_func_search_save_LIBS=$LIBS
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 /* Override any GCC internal prototype to avoid an error.
8193 Use char because int might match the return type of a GCC
8194 builtin and then its argument prototype would still apply. */
8207 for ac_lib in '' x; do
8208 if test -z "$ac_lib"; then
8209 ac_res="none required"
8212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_link") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8229 { (case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_try") 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_try") 2>&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_search_opendir=$ac_res
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8256 rm -f core conftest.err conftest.$ac_objext \
8258 if test "${ac_cv_search_opendir+set}" = set; then
8262 if test "${ac_cv_search_opendir+set}" = set; then
8265 ac_cv_search_opendir=no
8268 LIBS=$ac_func_search_save_LIBS
8270 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8271 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8272 ac_res=$ac_cv_search_opendir
8273 if test "$ac_res" != no; then
8274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8281 for ac_header in dlfcn.h
8283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 ac_res=`eval echo '${'$as_ac_Header'}'`
8291 { echo "$as_me:$LINENO: result: $ac_res" >&5
8292 echo "${ECHO_T}$ac_res" >&6; }
8294 # Is the header compilable?
8295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 $ac_includes_default
8304 #include <$ac_header>
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8321 { (case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_try") 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; } &&
8330 { ac_try='test -s conftest.$ac_objext'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_header_compiler=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_header_compiler=no
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350 echo "${ECHO_T}$ac_header_compiler" >&6; }
8352 # Is the header present?
8353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <$ac_header>
8363 if { (ac_try="$ac_cpp conftest.$ac_ext"
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev/null; then
8376 if test -s conftest.err; then
8377 ac_cpp_err=$ac_c_preproc_warn_flag
8378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8385 if test -z "$ac_cpp_err"; then
8386 ac_header_preproc=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_header_preproc=no
8394 rm -f conftest.err conftest.$ac_ext
8395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8396 echo "${ECHO_T}$ac_header_preproc" >&6; }
8398 # So? What about this header?
8399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8405 ac_header_preproc=yes
8408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8421 ## ------------------------------------ ##
8422 ## Report this to http://llvm.org/bugs/ ##
8423 ## ------------------------------------ ##
8425 ) | sed "s/^/$as_me: WARNING: /" >&2
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 eval "$as_ac_Header=\$ac_header_preproc"
8435 ac_res=`eval echo '${'$as_ac_Header'}'`
8436 { echo "$as_me:$LINENO: result: $ac_res" >&5
8437 echo "${ECHO_T}$ac_res" >&6; }
8440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8441 cat >>confdefs.h <<_ACEOF
8442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8449 # Check whether --enable-ltdl-install was given.
8450 if test "${enable_ltdl_install+set}" = set; then
8451 enableval=$enable_ltdl_install;
8457 if test x"${enable_ltdl_install-no}" != xno; then
8459 INSTALL_LTDL_FALSE='#'
8461 INSTALL_LTDL_TRUE='#'
8467 if test x"${enable_ltdl_convenience-no}" != xno; then
8468 CONVENIENCE_LTDL_TRUE=
8469 CONVENIENCE_LTDL_FALSE='#'
8471 CONVENIENCE_LTDL_TRUE='#'
8472 CONVENIENCE_LTDL_FALSE=
8476 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8477 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8479 libname_spec='lib$name'
8487 shlibpath_overrides_runpath=unknown
8489 dynamic_linker="$host_os ld.so"
8490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8491 if test "$GCC" = yes; then
8492 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8493 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8494 # if the path contains ";" then we assume it to be the separator
8495 # otherwise default to the standard path separator (i.e. ":") - it is
8496 # assumed that no part of a normal pathname contains ";" but that should
8497 # okay in the real world where ";" in dirpaths is itself problematic.
8498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8503 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8505 need_lib_prefix=unknown
8506 hardcode_into_libs=no
8508 # when you set need_version to no, make sure it does not cause -set_version
8509 # flags to be left without arguments
8510 need_version=unknown
8515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8516 shlibpath_var=LIBPATH
8518 # AIX 3 has no versioning support, so we append a major version to the name.
8519 soname_spec='${libname}${release}${shared_ext}$major'
8526 hardcode_into_libs=yes
8527 if test "$host_cpu" = ia64; then
8528 # AIX 5 supports IA64
8529 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8530 shlibpath_var=LD_LIBRARY_PATH
8532 # With GCC up to 2.95.x, collect2 would create an import file
8533 # for dependence libraries. The import file would start with
8534 # the line `#! .'. This would cause the generated library to
8535 # depend on `.', always an invalid library. This was fixed in
8536 # development snapshots of GCC prior to 3.0.
8538 aix4 | aix4.[01] | aix4.[01].*)
8539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8541 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8548 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8549 # soname into executable. Probably we can add versioning support to
8550 # collect2, so additional links can be useful in future.
8551 if test "$aix_use_runtimelinking" = yes; then
8552 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8553 # instead of lib<name>.a to let people know that these are not
8554 # typical AIX shared libraries.
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 # We preserve .a as extension for shared libraries through AIX4.2
8558 # and later when we are not doing run time linking.
8559 library_names_spec='${libname}${release}.a $libname.a'
8560 soname_spec='${libname}${release}${shared_ext}$major'
8562 shlibpath_var=LIBPATH
8567 library_names_spec='$libname.ixlibrary $libname.a'
8568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8569 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'
8573 library_names_spec='${libname}${shared_ext}'
8574 dynamic_linker="$host_os ld.so"
8575 shlibpath_var=LIBRARY_PATH
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582 soname_spec='${libname}${release}${shared_ext}$major'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8586 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8587 # the default ld.so.conf also contains /usr/contrib/lib and
8588 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8589 # libtool to hard-code these into programs
8592 cygwin* | mingw* | pw32*)
8593 version_type=windows
8598 case $GCC,$host_os in
8599 yes,cygwin* | yes,mingw* | yes,pw32*)
8600 library_names_spec='$libname.dll.a'
8601 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8602 postinstall_cmds='base_file=`basename \${file}`~
8603 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8604 dldir=$destdir/`dirname \$dlpath`~
8605 test -d \$dldir || mkdir -p \$dldir~
8606 $install_prog $dir/$dlname \$dldir/$dlname~
8607 chmod a+x \$dldir/$dlname'
8608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8609 dlpath=$dir/\$dldll~
8611 shlibpath_overrides_runpath=yes
8615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8620 # MinGW DLLs use traditional 'lib' prefix
8621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8624 # It is most probably a Windows format PATH printed by
8625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8626 # path with ; separators, and with drive letters. We can handle the
8627 # drive letters (cygwin fileutils understands them), so leave them,
8628 # especially as we might pass files found there to a mingw objdump,
8629 # which wouldn't understand a cygwinified path. Ahh.
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 # pw32 DLLs use 'pw' prefix rather than 'lib'
8637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8646 dynamic_linker='Win32 ld.exe'
8647 # FIXME: first we should search . and the directory the executable is in
8651 darwin* | rhapsody*)
8652 dynamic_linker="$host_os dyld"
8656 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8657 soname_spec='${libname}${release}${major}$shared_ext'
8658 shlibpath_overrides_runpath=yes
8659 shlibpath_var=DYLD_LIBRARY_PATH
8660 shrext_cmds='.dylib'
8661 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8662 if test "$GCC" = yes; then
8663 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"`
8665 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 shlibpath_var=LD_LIBRARY_PATH
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 shlibpath_var=LD_LIBRARY_PATH
8690 shlibpath_overrides_runpath=no
8691 hardcode_into_libs=yes
8692 dynamic_linker='GNU ld.so'
8695 freebsd* | dragonfly*)
8696 # DragonFly does not have aout. When/if they implement a new
8697 # versioning mechanism, adjust this.
8698 if test -x /usr/bin/objformat; then
8699 objformat=`/usr/bin/objformat`
8702 freebsd[123].*) objformat=aout ;;
8706 version_type=freebsd-$objformat
8707 case $version_type in
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8718 shlibpath_var=LD_LIBRARY_PATH
8721 shlibpath_overrides_runpath=yes
8723 freebsd3.[01]* | freebsdelf3.[01]*)
8724 shlibpath_overrides_runpath=yes
8725 hardcode_into_libs=yes
8727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8729 shlibpath_overrides_runpath=no
8730 hardcode_into_libs=yes
8732 freebsd*) # from 4.6 on
8733 shlibpath_overrides_runpath=yes
8734 hardcode_into_libs=yes
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 hardcode_into_libs=yes
8749 hpux9* | hpux10* | hpux11*)
8750 # Give a soname corresponding to the major version so that dld.sl refuses to
8751 # link against other versions.
8758 hardcode_into_libs=yes
8759 dynamic_linker="$host_os dld.so"
8760 shlibpath_var=LD_LIBRARY_PATH
8761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 if test "X$HPUX_IA64_MODE" = X32; then
8765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8773 hardcode_into_libs=yes
8774 dynamic_linker="$host_os dld.sl"
8775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784 dynamic_linker="$host_os dld.sl"
8785 shlibpath_var=SHLIB_PATH
8786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8792 postinstall_cmds='chmod 555 $lib'
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8802 shlibpath_var=LD_LIBRARY_PATH
8803 shlibpath_overrides_runpath=no
8804 hardcode_into_libs=yes
8807 irix5* | irix6* | nonstopux*)
8809 nonstopux*) version_type=nonstopux ;;
8811 if test "$lt_cv_prog_gnu_ld" = yes; then
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 irix5* | nonstopux*)
8826 case $LD in # libtool.m4 will add one of these switches to LD
8827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8828 libsuff= shlibsuff= libmagic=32-bit;;
8829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8830 libsuff=32 shlibsuff=N32 libmagic=N32;;
8831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8833 *) libsuff= shlibsuff= libmagic=never-match;;
8837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8838 shlibpath_overrides_runpath=no
8839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8841 hardcode_into_libs=yes
8844 # No shared lib support for Linux oldld, aout, or coff.
8845 linux*oldld* | linux*aout* | linux*coff*)
8849 # This must be Linux ELF.
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=no
8859 # This implies no fast_install, which is unacceptable.
8860 # Some rework will be needed to allow for fast_install
8861 # before this can be enabled.
8862 hardcode_into_libs=yes
8864 # Append ld.so.conf contents to the search path
8865 if test -f /etc/ld.so.conf; then
8866 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' ' '`
8867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8870 # We used to test for /lib/ld.so.1 and disable shared libraries on
8871 # powerpc, because MkLinux only supported shared libraries with the
8872 # GNU dynamic linker. Since this was broken with cross compilers,
8873 # most powerpc-linux boxes support dynamic linking these days and
8874 # people can always --disable-shared, the test was removed, and we
8875 # assume the GNU/Linux dynamic linker is in use.
8876 dynamic_linker='GNU/Linux ld.so'
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
8887 hardcode_into_libs=yes
8888 dynamic_linker='GNU ld.so'
8895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8898 dynamic_linker='NetBSD (a.out) ld.so'
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 dynamic_linker='NetBSD ld.elf_so'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=yes
8906 hardcode_into_libs=yes
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 shlibpath_var=LD_LIBRARY_PATH
8913 shlibpath_overrides_runpath=yes
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes
8928 sys_lib_dlsearch_path_spec="/usr/lib"
8930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8932 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8933 *) need_version=no ;;
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8940 openbsd2.[89] | openbsd2.[89].*)
8941 shlibpath_overrides_runpath=no
8944 shlibpath_overrides_runpath=yes
8948 shlibpath_overrides_runpath=yes
8953 libname_spec='$name'
8956 library_names_spec='$libname${shared_ext} $libname.a'
8957 dynamic_linker='OS/2 ld.exe'
8958 shlibpath_var=LIBPATH
8961 osf3* | osf4* | osf5*)
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 hardcode_into_libs=yes
8981 # ldd complains unless libraries are executable
8982 postinstall_cmds='chmod +x $lib'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8991 if test "$with_gnu_ld" = yes; then
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 case $host_vendor in
9004 shlibpath_overrides_runpath=no
9006 export_dynamic_flag_spec='${wl}-Blargedynsym'
9007 runpath_var=LD_RUN_PATH
9015 shlibpath_overrides_runpath=no
9016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9022 if test -d /usr/nec ;then
9024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9025 soname_spec='$libname${shared_ext}.$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9031 version_type=freebsd-elf
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 hardcode_into_libs=yes
9038 if test "$with_gnu_ld" = yes; then
9039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9040 shlibpath_overrides_runpath=no
9042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9043 shlibpath_overrides_runpath=yes
9046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9050 sys_lib_dlsearch_path_spec='/usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
9064 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9065 echo "${ECHO_T}$dynamic_linker" >&6; }
9066 test "$dynamic_linker" = no && can_build_shared=no
9068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9069 if test "$GCC" = yes; then
9070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9074 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9075 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9076 if test "${libltdl_cv_shlibext+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 eval libltdl_cv_shlibext=$shrext_cmds
9084 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9085 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9086 if test -n "$libltdl_cv_shlibext"; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9095 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9096 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9097 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 libltdl_cv_shlibpath_var="$shlibpath_var"
9102 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9103 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9104 if test -n "$libltdl_cv_shlibpath_var"; then
9106 cat >>confdefs.h <<_ACEOF
9107 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9113 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9114 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9115 if test "${libltdl_cv_sys_search_path+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9120 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9121 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9122 if test -n "$libltdl_cv_sys_search_path"; then
9124 for dir in $libltdl_cv_sys_search_path; do
9125 if test -z "$sys_search_path"; then
9126 sys_search_path="$dir"
9128 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9132 cat >>confdefs.h <<_ACEOF
9133 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9138 { echo "$as_me:$LINENO: checking for objdir" >&5
9139 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9140 if test "${libltdl_cv_objdir+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 libltdl_cv_objdir="$objdir"
9144 if test -n "$objdir"; then
9147 rm -f .libs 2>/dev/null
9148 mkdir .libs 2>/dev/null
9149 if test -d .libs; then
9150 libltdl_cv_objdir=.libs
9152 # MS-DOS does not allow filenames that begin with a dot.
9153 libltdl_cv_objdir=_libs
9155 rmdir .libs 2>/dev/null
9159 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9160 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9162 cat >>confdefs.h <<_ACEOF
9163 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9171 # Check for command to grab the raw symbol name followed by C symbol from nm.
9172 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9173 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9174 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 # These are sane defaults that work on at least a few old systems.
9179 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9181 # Character class describing NM global symbol codes.
9182 symcode='[BCDEGRST]'
9184 # Regexp to match symbols that can be accessed directly from C.
9185 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9187 # Transform an extracted symbol line into a proper C declaration
9188 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9190 # Transform an extracted symbol line into symbol name and symbol address
9191 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'"
9193 # Define system-specific variables.
9198 cygwin* | mingw* | pw32*)
9199 symcode='[ABCDGISTW]'
9201 hpux*) # Its linker distinguishes data from code symbols
9202 if test "$host_cpu" = ia64; then
9203 symcode='[ABCDEGRST]'
9205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9206 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'"
9209 if test "$host_cpu" = ia64; then
9210 symcode='[ABCDGIRSTW]'
9211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9212 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'"
9216 symcode='[BCDEGRST]'
9219 symcode='[BCDEGQRST]'
9230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9238 # Handle CRLF in mingw tool chain
9242 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9246 # If we're using GNU nm, then use its standard symbol codes.
9247 case `$NM -V 2>&1` in
9248 *GNU* | *'with BFD'*)
9249 symcode='[ABCDGIRSTW]' ;;
9252 # Try without a prefix undercore, then with it.
9253 for ac_symprfx in "" "_"; do
9255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9256 symxfrm="\\1 $ac_symprfx\\2 \\2"
9258 # Write the raw and C identifiers.
9259 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9261 # Check to see that the pipe works correctly.
9265 cat > conftest.$ac_ext <<EOF
9270 void nm_test_func(){}
9274 int main(){nm_test_var='a';nm_test_func();return(0);}
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278 (eval $ac_compile) 2>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; then
9282 # Now try to grab the symbols.
9284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && test -s "$nlist"; then
9289 # Try sorting and uniquifying the output.
9290 if sort "$nlist" | uniq > "$nlist"T; then
9291 mv -f "$nlist"T "$nlist"
9296 # Make sure that we snagged all the symbols we need.
9297 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9298 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9299 cat <<EOF > conftest.$ac_ext
9305 # Now generate the symbol file.
9306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9308 cat <<EOF >> conftest.$ac_ext
9309 #if defined (__STDC__) && __STDC__
9310 # define lt_ptr_t void *
9312 # define lt_ptr_t char *
9316 /* The mapping between symbol names and symbols. */
9321 lt_preloaded_symbols[] =
9324 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9325 cat <<\EOF >> conftest.$ac_ext
9333 # Now try linking the two files.
9334 mv conftest.$ac_objext conftstm.$ac_objext
9335 lt_save_LIBS="$LIBS"
9336 lt_save_CFLAGS="$CFLAGS"
9337 LIBS="conftstm.$ac_objext"
9338 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9340 (eval $ac_link) 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9346 LIBS="$lt_save_LIBS"
9347 CFLAGS="$lt_save_CFLAGS"
9349 echo "cannot find nm_test_func in $nlist" >&5
9352 echo "cannot find nm_test_var in $nlist" >&5
9355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9358 echo "$progname: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9361 rm -f conftest* conftst*
9363 # Do not use the global_symbol_pipe unless it works.
9364 if test "$pipe_works" = yes; then
9367 lt_cv_sys_global_symbol_pipe=
9373 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9374 lt_cv_sys_global_symbol_to_cdecl=
9376 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9377 { echo "$as_me:$LINENO: result: failed" >&5
9378 echo "${ECHO_T}failed" >&6; }
9380 { echo "$as_me:$LINENO: result: ok" >&5
9381 echo "${ECHO_T}ok" >&6; }
9385 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9386 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9387 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9391 libltdl_cv_preloaded_symbols=yes
9393 libltdl_cv_preloaded_symbols=no
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9398 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9399 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9401 cat >>confdefs.h <<\_ACEOF
9402 #define HAVE_PRELOADED_SYMBOLS 1
9410 ac_cpp='$CPP $CPPFLAGS'
9411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9416 { echo "$as_me:$LINENO: checking for shl_load" >&5
9417 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9418 if test "${ac_cv_func_shl_load+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9429 #define shl_load innocuous_shl_load
9431 /* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char shl_load (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9437 # include <limits.h>
9439 # include <assert.h>
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined __stub_shl_load || defined __stub___shl_load
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (ac_try="$ac_link"
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_link") 2>conftest.er1
9475 grep -v '^ *+' conftest.er1 >conftest.err
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481 { (case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_try") 2>&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest$ac_exeext'
9491 { (case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_try") 2>&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_cv_func_shl_load=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_func_shl_load=no
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9511 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9512 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9513 if test $ac_cv_func_shl_load = yes; then
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_SHL_LOAD 1
9520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 ac_check_lib_save_LIBS=$LIBS
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_lib_dld_shl_load=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_lib_dld_shl_load=no
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9597 if test $ac_cv_lib_dld_shl_load = yes; then
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_SHL_LOAD 1
9603 LIBADD_DL="$LIBADD_DL -ldld"
9605 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9606 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9607 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 ac_check_lib_save_LIBS=$LIBS
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_dl_dlopen=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_lib_dl_dlopen=no
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9682 if test $ac_cv_lib_dl_dlopen = yes; then
9684 cat >>confdefs.h <<\_ACEOF
9685 #define HAVE_LIBDL 1
9688 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9743 cat >>confdefs.h <<\_ACEOF
9744 #define HAVE_LIBDL 1
9746 libltdl_cv_func_dlopen="yes"
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9752 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 ac_check_lib_save_LIBS=$LIBS
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_lib_svld_dlopen=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_lib_svld_dlopen=no
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9827 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9828 if test $ac_cv_lib_svld_dlopen = yes; then
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_LIBDL 1
9834 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9836 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9837 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9838 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 ac_check_lib_save_LIBS=$LIBS
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_lib_dld_dld_link=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_lib_dld_dld_link=no
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9912 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9913 if test $ac_cv_lib_dld_dld_link = yes; then
9915 cat >>confdefs.h <<\_ACEOF
9919 LIBADD_DL="$LIBADD_DL -ldld"
9921 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9922 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9923 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9934 #define _dyld_func_lookup innocuous__dyld_func_lookup
9936 /* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char _dyld_func_lookup (); below.
9938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939 <limits.h> exists even on freestanding compilers. */
9942 # include <limits.h>
9944 # include <assert.h>
9947 #undef _dyld_func_lookup
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9955 char _dyld_func_lookup ();
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9966 return _dyld_func_lookup ();
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_func__dyld_func_lookup=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_func__dyld_func_lookup=no
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10016 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10017 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10018 if test $ac_cv_func__dyld_func_lookup = yes; then
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_DYLD 1
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10047 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10049 lt_save_LIBS="$LIBS"
10050 LIBS="$LIBS $LIBADD_DL"
10052 for ac_func in dlerror
10054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068 #define $ac_func innocuous_$ac_func
10070 /* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char $ac_func (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10076 # include <limits.h>
10078 # include <assert.h>
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10090 /* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
10093 #if defined __stub_$ac_func || defined __stub___$ac_func
10100 return $ac_func ();
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 eval "$as_ac_var=yes"
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 eval "$as_ac_var=no"
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10150 ac_res=`eval echo '${'$as_ac_var'}'`
10151 { echo "$as_me:$LINENO: result: $ac_res" >&5
10152 echo "${ECHO_T}$ac_res" >&6; }
10153 if test `eval echo '${'$as_ac_var'}'` = yes; then
10154 cat >>confdefs.h <<_ACEOF
10155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10161 LIBS="$lt_save_LIBS"
10164 ac_cpp='$CPP $CPPFLAGS'
10165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10172 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10173 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 ac_cv_sys_symbol_underscore=no
10177 cat > conftest.$ac_ext <<EOF
10178 void nm_test_func(){}
10179 int main(){nm_test_func;return 0;}
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; then
10186 # Now try to grab the symbols.
10187 ac_nlist=conftest.nm
10188 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10189 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && test -s "$ac_nlist"; then
10193 # See whether the symbols have a leading underscore.
10194 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10195 ac_cv_sys_symbol_underscore=yes
10197 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10200 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10204 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10207 echo "configure: failed program was:" >&5
10213 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10214 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10217 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10218 if test x"$libltdl_cv_func_dlopen" = xyes ||
10219 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10220 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10221 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10222 if test "${libltdl_cv_need_uscore+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 libltdl_cv_need_uscore=unknown
10227 LIBS="$LIBS $LIBADD_DL"
10228 if test "$cross_compiling" = yes; then :
10229 libltdl_cv_need_uscore=cross
10231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10232 lt_status=$lt_dlunknown
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10234 "configure"
10235 #include "confdefs.h"
10244 # define LT_DLGLOBAL RTLD_GLOBAL
10247 # define LT_DLGLOBAL DL_GLOBAL
10249 # define LT_DLGLOBAL 0
10253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10254 find out it does not work in some platform. */
10255 #ifndef LT_DLLAZY_OR_NOW
10257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10260 # define LT_DLLAZY_OR_NOW DL_LAZY
10263 # define LT_DLLAZY_OR_NOW RTLD_NOW
10266 # define LT_DLLAZY_OR_NOW DL_NOW
10268 # define LT_DLLAZY_OR_NOW 0
10276 extern "C" void exit (int);
10279 void fnord() { int i=42;}
10282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10283 int status = $lt_dlunknown;
10287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10289 /* dlclose (self); */
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10302 (./conftest; exit; ) >&5 2>/dev/null
10304 case x$lt_status in
10305 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10306 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10307 x$lt_dlunknown|x*) ;;
10310 # compilation failed
10319 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10320 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10324 if test x"$libltdl_cv_need_uscore" = xyes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define NEED_USCORE 1
10333 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10334 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 # PORTME does your system automatically load deplibs for dlopen?
10339 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10340 # For now, we just catch OSes we know something about -- in the
10341 # future, we'll try test this programmatically.
10342 libltdl_cv_sys_dlopen_deplibs=unknown
10344 aix3*|aix4.1.*|aix4.2.*)
10345 # Unknown whether this is true for these versions of AIX, but
10346 # we want this `case' here to explicitly catch those versions.
10347 libltdl_cv_sys_dlopen_deplibs=unknown
10350 libltdl_cv_sys_dlopen_deplibs=yes
10353 # Assuming the user has installed a libdl from somewhere, this is true
10354 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10355 libltdl_cv_sys_dlopen_deplibs=yes
10357 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10358 # GNU and its variants, using gnu ld.so (Glibc)
10359 libltdl_cv_sys_dlopen_deplibs=yes
10362 libltdl_cv_sys_dlopen_deplibs=yes
10365 libltdl_cv_sys_dlopen_deplibs=yes
10367 irix[12345]*|irix6.[01]*)
10368 # Catch all versions of IRIX before 6.2, and indicate that we don't
10369 # know how it worked for any of those versions.
10370 libltdl_cv_sys_dlopen_deplibs=unknown
10373 # The case above catches anything before 6.2, and it's known that
10374 # at 6.2 and later dlopen does load deplibs.
10375 libltdl_cv_sys_dlopen_deplibs=yes
10378 libltdl_cv_sys_dlopen_deplibs=yes
10381 libltdl_cv_sys_dlopen_deplibs=yes
10384 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10385 # it did *not* use an RPATH in a shared library to find objects the
10386 # library depends on, so we explicitly say `no'.
10387 libltdl_cv_sys_dlopen_deplibs=no
10389 osf5.0|osf5.0a|osf5.1)
10390 # dlopen *does* load deplibs and with the right loader patch applied
10391 # it even uses RPATH in a shared library to search for shared objects
10392 # that the library depends on, but there's no easy way to know if that
10393 # patch is installed. Since this is the case, all we can really
10394 # say is unknown -- it depends on the patch being installed. If
10395 # it is, this changes to `yes'. Without it, it would be `no'.
10396 libltdl_cv_sys_dlopen_deplibs=unknown
10399 # the two cases above should catch all versions of osf <= 5.1. Read
10400 # the comments above for what we know about them.
10401 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10402 # is used to find them so we can finally say `yes'.
10403 libltdl_cv_sys_dlopen_deplibs=yes
10406 libltdl_cv_sys_dlopen_deplibs=yes
10408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10415 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10416 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define LTDL_DLOPEN_DEPLIBS 1
10425 for ac_header in argz.h
10427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_res=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10438 # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10450 rm -f conftest.$ac_objext
10451 if { (ac_try="$ac_compile"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_header_compiler=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_header_compiler=no
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10494 echo "${ECHO_T}$ac_header_compiler" >&6; }
10496 # Is the header present?
10497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 #include <$ac_header>
10507 if { (ac_try="$ac_cpp conftest.$ac_ext"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10515 grep -v '^ *+' conftest.er1 >conftest.err
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } >/dev/null; then
10520 if test -s conftest.err; then
10521 ac_cpp_err=$ac_c_preproc_warn_flag
10522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10529 if test -z "$ac_cpp_err"; then
10530 ac_header_preproc=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_header_preproc=no
10538 rm -f conftest.err conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10540 echo "${ECHO_T}$ac_header_preproc" >&6; }
10542 # So? What about this header?
10543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10549 ac_header_preproc=yes
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10565 ## ------------------------------------ ##
10566 ## Report this to http://llvm.org/bugs/ ##
10567 ## ------------------------------------ ##
10569 ) | sed "s/^/$as_me: WARNING: /" >&2
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 eval "$as_ac_Header=\$ac_header_preproc"
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10594 { echo "$as_me:$LINENO: checking for error_t" >&5
10595 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10596 if test "${ac_cv_type_error_t+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 cat >conftest.$ac_ext <<_ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10609 typedef error_t ac__type_new_;
10613 if ((ac__type_new_ *) 0)
10615 if (sizeof (ac__type_new_))
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_try") 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_try") 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_error_t=yes
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_type_error_t=no
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10666 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10667 if test $ac_cv_type_error_t = yes; then
10669 cat >>confdefs.h <<_ACEOF
10670 #define HAVE_ERROR_T 1
10676 cat >>confdefs.h <<\_ACEOF
10677 #define error_t int
10688 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704 #define $ac_func innocuous_$ac_func
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10712 # include <limits.h>
10714 # include <assert.h>
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10726 /* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
10729 #if defined __stub_$ac_func || defined __stub___$ac_func
10736 return $ac_func ();
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_var=yes"
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 eval "$as_ac_var=no"
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10786 ac_res=`eval echo '${'$as_ac_var'}'`
10787 { echo "$as_me:$LINENO: result: $ac_res" >&5
10788 echo "${ECHO_T}$ac_res" >&6; }
10789 if test `eval echo '${'$as_ac_var'}'` = yes; then
10790 cat >>confdefs.h <<_ACEOF
10791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_res=`eval echo '${'$as_ac_Header'}'`
10835 { echo "$as_me:$LINENO: result: $ac_res" >&5
10836 echo "${ECHO_T}$ac_res" >&6; }
10838 # Is the header compilable?
10839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 #include <$ac_header>
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_header_compiler=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_header_compiler=no
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894 echo "${ECHO_T}$ac_header_compiler" >&6; }
10896 # Is the header present?
10897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 #include <$ac_header>
10907 if { (ac_try="$ac_cpp conftest.$ac_ext"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc=yes
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_header_preproc=no
10938 rm -f conftest.err conftest.$ac_ext
10939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6; }
10942 # So? What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10965 ## ------------------------------------ ##
10966 ## Report this to http://llvm.org/bugs/ ##
10967 ## ------------------------------------ ##
10969 ) | sed "s/^/$as_me: WARNING: /" >&2
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 eval "$as_ac_Header=\$ac_header_preproc"
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10997 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 ac_res=`eval echo '${'$as_ac_Header'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11010 # Is the header compilable?
11011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11013 cat >conftest.$ac_ext <<_ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 $ac_includes_default
11020 #include <$ac_header>
11022 rm -f conftest.$ac_objext
11023 if { (ac_try="$ac_compile"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_compile") 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
11047 { (case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_try") 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_header_compiler=yes
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ac_header_compiler=no
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11066 echo "${ECHO_T}$ac_header_compiler" >&6; }
11068 # Is the header present?
11069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <$ac_header>
11079 if { (ac_try="$ac_cpp conftest.$ac_ext"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev/null; then
11092 if test -s conftest.err; then
11093 ac_cpp_err=$ac_c_preproc_warn_flag
11094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11101 if test -z "$ac_cpp_err"; then
11102 ac_header_preproc=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_header_preproc=no
11110 rm -f conftest.err conftest.$ac_ext
11111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11112 echo "${ECHO_T}$ac_header_preproc" >&6; }
11114 # So? What about this header?
11115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11121 ac_header_preproc=yes
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11137 ## ------------------------------------ ##
11138 ## Report this to http://llvm.org/bugs/ ##
11139 ## ------------------------------------ ##
11141 ) | sed "s/^/$as_me: WARNING: /" >&2
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 eval "$as_ac_Header=\$ac_header_preproc"
11151 ac_res=`eval echo '${'$as_ac_Header'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 for ac_header in string.h strings.h
11169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11180 # Is the header compilable?
11181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 #include <$ac_header>
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11207 { (case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_try") 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_try") 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_header_compiler=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_compiler=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 echo "${ECHO_T}$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev/null; then
11262 if test -s conftest.err; then
11263 ac_cpp_err=$ac_c_preproc_warn_flag
11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11271 if test -z "$ac_cpp_err"; then
11272 ac_header_preproc=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_preproc=no
11280 rm -f conftest.err conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11282 echo "${ECHO_T}$ac_header_preproc" >&6; }
11284 # So? What about this header?
11285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11291 ac_header_preproc=yes
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307 ## ------------------------------------ ##
11308 ## Report this to http://llvm.org/bugs/ ##
11309 ## ------------------------------------ ##
11311 ) | sed "s/^/$as_me: WARNING: /" >&2
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 eval "$as_ac_Header=\$ac_header_preproc"
11321 ac_res=`eval echo '${'$as_ac_Header'}'`
11322 { echo "$as_me:$LINENO: result: $ac_res" >&5
11323 echo "${ECHO_T}$ac_res" >&6; }
11326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11327 cat >>confdefs.h <<_ACEOF
11328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11338 for ac_func in strchr index
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11354 #define $ac_func innocuous_$ac_func
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11362 # include <limits.h>
11364 # include <assert.h>
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11376 /* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379 #if defined __stub_$ac_func || defined __stub___$ac_func
11386 return $ac_func ();
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_link") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest$ac_exeext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 eval "$as_ac_var=yes"
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 eval "$as_ac_var=no"
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11436 ac_res=`eval echo '${'$as_ac_var'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11439 if test `eval echo '${'$as_ac_var'}'` = yes; then
11440 cat >>confdefs.h <<_ACEOF
11441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 for ac_func in strrchr rindex
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11465 #define $ac_func innocuous_$ac_func
11467 /* System header to define __stub macros and hopefully few prototypes,
11468 which can conflict with char $ac_func (); below.
11469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470 <limits.h> exists even on freestanding compilers. */
11473 # include <limits.h>
11475 # include <assert.h>
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11487 /* The GNU C library defines this for functions which it implements
11488 to always fail with ENOSYS. Some functions are actually named
11489 something starting with __ and the normal name is an alias. */
11490 #if defined __stub_$ac_func || defined __stub___$ac_func
11497 return $ac_func ();
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_link") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
11516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_try") 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 eval "$as_ac_var=yes"
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 eval "$as_ac_var=no"
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11547 ac_res=`eval echo '${'$as_ac_var'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11550 if test `eval echo '${'$as_ac_var'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11560 for ac_func in memcpy bcopy
11562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11576 #define $ac_func innocuous_$ac_func
11578 /* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func (); below.
11580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11581 <limits.h> exists even on freestanding compilers. */
11584 # include <limits.h>
11586 # include <assert.h>
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11598 /* The GNU C library defines this for functions which it implements
11599 to always fail with ENOSYS. Some functions are actually named
11600 something starting with __ and the normal name is an alias. */
11601 #if defined __stub_$ac_func || defined __stub___$ac_func
11608 return $ac_func ();
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (ac_try="$ac_link"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 eval "$as_ac_var=no"
11655 rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11658 ac_res=`eval echo '${'$as_ac_var'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_var'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 for ac_func in memmove strcmp
11673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11687 #define $ac_func innocuous_$ac_func
11689 /* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below.
11691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 <limits.h> exists even on freestanding compilers. */
11695 # include <limits.h>
11697 # include <assert.h>
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11709 /* The GNU C library defines this for functions which it implements
11710 to always fail with ENOSYS. Some functions are actually named
11711 something starting with __ and the normal name is an alias. */
11712 #if defined __stub_$ac_func || defined __stub___$ac_func
11719 return $ac_func ();
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 eval "$as_ac_var=yes"
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 eval "$as_ac_var=no"
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11769 ac_res=`eval echo '${'$as_ac_var'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 for ac_func in closedir opendir readdir
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define $ac_func innocuous_$ac_func
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11807 # include <limits.h>
11809 # include <assert.h>
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 return $ac_func ();
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11895 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11908 if test "$GCC" != "yes" && test "$ICC" != "yes"
11910 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11911 echo "$as_me: error: gcc|icc required but not found" >&2;}
11912 { (exit 1); exit 1; }; }
11915 if test "$GXX" != "yes" && test "$IXX" != "yes"
11917 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11918 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11919 { (exit 1); exit 1; }; }
11922 if test "$GCC" = "yes"
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #if !defined(__GNUC__) || __GNUC__ < 3
11926 #error Unsupported GCC version
11930 rm -f conftest.$ac_objext
11931 if { (ac_try="$ac_compile"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_compile") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_try") 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11970 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11971 { (exit 1); exit 1; }; }
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 if test -z "$llvm_cv_gnu_make_command"
11979 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11980 echo "$as_me: error: GNU Make required but not found" >&2;}
11981 { (exit 1); exit 1; }; }
11984 { echo "$as_me:$LINENO: result: ok" >&5
11985 echo "${ECHO_T}ok" >&6; }
11987 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11988 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11989 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11991 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11993 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11995 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11996 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12000 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12001 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12002 if test "${ac_cv_lib_m_sin+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 ac_check_lib_save_LIBS=$LIBS
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12014 /* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_lib_m_sin=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12075 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12076 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12077 if test $ac_cv_lib_m_sin = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define HAVE_LIBM 1
12086 if test "$llvm_cv_os_type" = "MingW" ; then
12088 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12089 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-limagehlp $LIBS"
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_imagehlp_main=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_lib_imagehlp_main=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12158 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12159 if test $ac_cv_lib_imagehlp_main = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBIMAGEHLP 1
12164 LIBS="-limagehlp $LIBS"
12169 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12170 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12171 if test "${ac_cv_lib_psapi_main+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-lpsapi $LIBS"
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_lib_psapi_main=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_lib_psapi_main=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12239 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12240 if test $ac_cv_lib_psapi_main = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_LIBPSAPI 1
12245 LIBS="-lpsapi $LIBS"
12251 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12252 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12253 if test "${ac_cv_search_dlopen+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 ac_func_search_save_LIBS=$LIBS
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 /* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
12279 for ac_lib in '' dl; do
12280 if test -z "$ac_lib"; then
12281 ac_res="none required"
12284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_search_dlopen=$ac_res
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12328 rm -f core conftest.err conftest.$ac_objext \
12330 if test "${ac_cv_search_dlopen+set}" = set; then
12334 if test "${ac_cv_search_dlopen+set}" = set; then
12337 ac_cv_search_dlopen=no
12339 rm conftest.$ac_ext
12340 LIBS=$ac_func_search_save_LIBS
12342 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12343 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12344 ac_res=$ac_cv_search_dlopen
12345 if test "$ac_res" != no; then
12346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12348 cat >>confdefs.h <<\_ACEOF
12349 #define HAVE_DLOPEN 1
12353 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12354 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12358 if test "$llvm_cv_enable_libffi" = "yes" ; then
12359 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12360 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12361 if test "${ac_cv_search_ffi_call+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 ac_func_search_save_LIBS=$LIBS
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12382 return ffi_call ();
12387 for ac_lib in '' ffi; do
12388 if test -z "$ac_lib"; then
12389 ac_res="none required"
12392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_link") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12409 { (case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_try") 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_search_ffi_call=$ac_res
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12436 rm -f core conftest.err conftest.$ac_objext \
12438 if test "${ac_cv_search_ffi_call+set}" = set; then
12442 if test "${ac_cv_search_ffi_call+set}" = set; then
12445 ac_cv_search_ffi_call=no
12447 rm conftest.$ac_ext
12448 LIBS=$ac_func_search_save_LIBS
12450 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12451 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12452 ac_res=$ac_cv_search_ffi_call
12453 if test "$ac_res" != no; then
12454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_FFI_CALL 1
12461 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12462 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12463 { (exit 1); exit 1; }; }
12468 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12469 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12470 if test "${ac_cv_search_mallinfo+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_func_search_save_LIBS=$LIBS
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12491 return mallinfo ();
12496 for ac_lib in '' malloc; do
12497 if test -z "$ac_lib"; then
12498 ac_res="none required"
12501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_cv_search_mallinfo=$ac_res
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12545 rm -f core conftest.err conftest.$ac_objext \
12547 if test "${ac_cv_search_mallinfo+set}" = set; then
12551 if test "${ac_cv_search_mallinfo+set}" = set; then
12554 ac_cv_search_mallinfo=no
12556 rm conftest.$ac_ext
12557 LIBS=$ac_func_search_save_LIBS
12559 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12560 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12561 ac_res=$ac_cv_search_mallinfo
12562 if test "$ac_res" != no; then
12563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_MALLINFO 1
12572 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12574 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12575 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12576 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-lpthread $LIBS"
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12594 char pthread_mutex_init ();
12598 return pthread_mutex_init ();
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_lib_pthread_pthread_mutex_init=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_pthread_pthread_mutex_init=no
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12650 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12651 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBPTHREAD 1
12656 LIBS="-lpthread $LIBS"
12660 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12661 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12662 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_func_search_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char pthread_mutex_lock ();
12683 return pthread_mutex_lock ();
12688 for ac_lib in '' pthread; do
12689 if test -z "$ac_lib"; then
12690 ac_res="none required"
12693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_search_pthread_mutex_lock=$ac_res
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12737 rm -f core conftest.err conftest.$ac_objext \
12739 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12743 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12746 ac_cv_search_pthread_mutex_lock=no
12748 rm conftest.$ac_ext
12749 LIBS=$ac_func_search_save_LIBS
12751 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12752 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12753 ac_res=$ac_cv_search_pthread_mutex_lock
12754 if test "$ac_res" != no; then
12755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_PTHREAD_MUTEX_LOCK 1
12763 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12764 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12765 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 ac_func_search_save_LIBS=$LIBS
12769 cat >conftest.$ac_ext <<_ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char pthread_rwlock_init ();
12786 return pthread_rwlock_init ();
12791 for ac_lib in '' pthread; do
12792 if test -z "$ac_lib"; then
12793 ac_res="none required"
12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12798 rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (ac_try="$ac_link"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_link") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_try") 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_search_pthread_rwlock_init=$ac_res
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12840 rm -f core conftest.err conftest.$ac_objext \
12842 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12846 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12849 ac_cv_search_pthread_rwlock_init=no
12851 rm conftest.$ac_ext
12852 LIBS=$ac_func_search_save_LIBS
12854 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12855 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12856 ac_res=$ac_cv_search_pthread_rwlock_init
12857 if test "$ac_res" != no; then
12858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_PTHREAD_RWLOCK_INIT 1
12866 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12867 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12868 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 ac_func_search_save_LIBS=$LIBS
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12885 char pthread_getspecific ();
12889 return pthread_getspecific ();
12894 for ac_lib in '' pthread; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest$ac_exeext'
12926 { (case "(($ac_try" in
12927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931 (eval "$ac_try") 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_search_pthread_getspecific=$ac_res
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12943 rm -f core conftest.err conftest.$ac_objext \
12945 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12949 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12952 ac_cv_search_pthread_getspecific=no
12954 rm conftest.$ac_ext
12955 LIBS=$ac_func_search_save_LIBS
12957 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12958 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12959 ac_res=$ac_cv_search_pthread_getspecific
12960 if test "$ac_res" != no; then
12961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12963 cat >>confdefs.h <<\_ACEOF
12964 #define HAVE_PTHREAD_GETSPECIFIC 1
12972 # Check whether --with-udis86 was given.
12973 if test "${with_udis86+set}" = set; then
12974 withval=$with_udis86;
12979 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12982 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12983 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12984 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-ludis86 $LIBS"
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (ac_try="$ac_link"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_link") 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13026 { (case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_try") 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_lib_udis86_ud_init=yes
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 ac_cv_lib_udis86_ud_init=no
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13057 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13058 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13059 if test $ac_cv_lib_udis86_ud_init = yes; then
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_LIBUDIS86 1
13064 LIBS="-ludis86 $LIBS"
13068 echo "Error! You need to have libudis86 around."
13080 cat >>confdefs.h <<_ACEOF
13081 #define USE_UDIS86 $USE_UDIS86
13086 # Check whether --with-oprofile was given.
13087 if test "${with_oprofile+set}" = set; then
13088 withval=$with_oprofile;
13092 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13093 no) llvm_cv_oppath=
13096 *) llvm_cv_oppath="${withval}/lib/oprofile"
13097 CPPFLAGS="-I${withval}/include";;
13099 case $llvm_cv_os_type in
13101 if test -n "$llvm_cv_oppath" ; then
13102 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13103 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13104 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13105 if test "${ac_cv_search_bfd_init+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 ac_func_search_save_LIBS=$LIBS
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13126 return bfd_init ();
13131 for ac_lib in '' bfd; do
13132 if test -z "$ac_lib"; then
13133 ac_res="none required"
13136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_link") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_search_bfd_init=$ac_res
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13180 rm -f core conftest.err conftest.$ac_objext \
13182 if test "${ac_cv_search_bfd_init+set}" = set; then
13186 if test "${ac_cv_search_bfd_init+set}" = set; then
13189 ac_cv_search_bfd_init=no
13191 rm conftest.$ac_ext
13192 LIBS=$ac_func_search_save_LIBS
13194 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13195 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13196 ac_res=$ac_cv_search_bfd_init
13197 if test "$ac_res" != no; then
13198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13202 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13203 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13204 if test "${ac_cv_search_op_open_agent+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 ac_func_search_save_LIBS=$LIBS
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13221 char op_open_agent ();
13225 return op_open_agent ();
13230 for ac_lib in '' opagent; do
13231 if test -z "$ac_lib"; then
13232 ac_res="none required"
13235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (ac_try="$ac_link"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_link") 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252 { (case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_try") 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_try") 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_cv_search_op_open_agent=$ac_res
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13279 rm -f core conftest.err conftest.$ac_objext \
13281 if test "${ac_cv_search_op_open_agent+set}" = set; then
13285 if test "${ac_cv_search_op_open_agent+set}" = set; then
13288 ac_cv_search_op_open_agent=no
13290 rm conftest.$ac_ext
13291 LIBS=$ac_func_search_save_LIBS
13293 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13294 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13295 ac_res=$ac_cv_search_op_open_agent
13296 if test "$ac_res" != no; then
13297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13301 echo "Error! You need to have libopagent around."
13306 if test "${ac_cv_header_opagent_h+set}" = set; then
13307 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13308 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13309 if test "${ac_cv_header_opagent_h+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13313 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13315 # Is the header compilable?
13316 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13317 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 #include <opagent.h>
13327 rm -f conftest.$ac_objext
13328 if { (ac_try="$ac_compile"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_header_compiler=yes
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_header_compiler=no
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 echo "${ECHO_T}$ac_header_compiler" >&6; }
13373 # Is the header present?
13374 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13375 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 #include <opagent.h>
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } >/dev/null; then
13397 if test -s conftest.err; then
13398 ac_cpp_err=$ac_c_preproc_warn_flag
13399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13406 if test -z "$ac_cpp_err"; then
13407 ac_header_preproc=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_header_preproc=no
13415 rm -f conftest.err conftest.$ac_ext
13416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13417 echo "${ECHO_T}$ac_header_preproc" >&6; }
13419 # So? What about this header?
13420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13422 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13423 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13425 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13426 ac_header_preproc=yes
13429 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13430 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13432 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13434 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13435 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13436 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13438 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13440 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13442 ## ------------------------------------ ##
13443 ## Report this to http://llvm.org/bugs/ ##
13444 ## ------------------------------------ ##
13446 ) | sed "s/^/$as_me: WARNING: /" >&2
13449 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13450 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13451 if test "${ac_cv_header_opagent_h+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 ac_cv_header_opagent_h=$ac_header_preproc
13456 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13457 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13460 if test $ac_cv_header_opagent_h = yes; then
13464 echo "Error! You need to have opagent.h around."
13472 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13473 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13474 { (exit 1); exit 1; }; } ;;
13485 cat >>confdefs.h <<_ACEOF
13486 #define LLVM_USE_OPROFILE $USE_OPROFILE
13491 # Check whether --with-intel-jitevents was given.
13492 if test "${with_intel_jitevents+set}" = set; then
13493 withval=$with_intel_jitevents;
13494 case $llvm_cv_os_type in
13495 Linux|Win32|Cygwin|MingW) ;;
13497 { { echo "$as_me:$LINENO: error:
13498 Intel JIT API support is available on Linux and Windows only.\"" >&5
13499 echo "$as_me: error:
13500 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13501 { (exit 1); exit 1; }; } ;;
13504 USE_INTEL_JITEVENTS=1
13506 case "$llvm_cv_target_arch" in
13507 x86) llvm_intel_jitevents_archdir="lib32";;
13508 x86_64) llvm_intel_jitevents_archdir="lib64";;
13509 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13512 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13513 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13515 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13516 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13523 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13524 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13526 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13527 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13528 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_func_search_save_LIBS=$LIBS
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13545 char iJIT_IsProfilingActive ();
13549 return iJIT_IsProfilingActive ();
13554 for ac_lib in '' jitprofiling; do
13555 if test -z "$ac_lib"; then
13556 ac_res="none required"
13559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_link") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13603 rm -f core conftest.err conftest.$ac_objext \
13605 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13609 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13612 ac_cv_search_iJIT_IsProfilingActive=no
13614 rm conftest.$ac_ext
13615 LIBS=$ac_func_search_save_LIBS
13617 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13618 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13619 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13620 if test "$ac_res" != no; then
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13630 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13631 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13632 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13633 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13637 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13639 # Is the header compilable?
13640 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13641 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13649 #include <jitprofiling.h>
13651 rm -f conftest.$ac_objext
13652 if { (ac_try="$ac_compile"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_compile") 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_header_compiler=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_header_compiler=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695 echo "${ECHO_T}$ac_header_compiler" >&6; }
13697 # Is the header present?
13698 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13699 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 #include <jitprofiling.h>
13708 if { (ac_try="$ac_cpp conftest.$ac_ext"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } >/dev/null; then
13721 if test -s conftest.err; then
13722 ac_cpp_err=$ac_c_preproc_warn_flag
13723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13730 if test -z "$ac_cpp_err"; then
13731 ac_header_preproc=yes
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13753 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13766 ## ------------------------------------ ##
13767 ## Report this to http://llvm.org/bugs/ ##
13768 ## ------------------------------------ ##
13770 ) | sed "s/^/$as_me: WARNING: /" >&2
13773 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13774 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13775 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 ac_cv_header_jitprofiling_h=$ac_header_preproc
13780 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13781 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13784 if test $ac_cv_header_jitprofiling_h = yes; then
13788 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13798 USE_INTEL_JITEVENTS=0
13804 cat >>confdefs.h <<_ACEOF
13805 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13815 ac_header_dirent=no
13816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13817 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13818 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 #include <sys/types.h>
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_compile") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 eval "$as_ac_Header=yes"
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 eval "$as_ac_Header=no"
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 ac_res=`eval echo '${'$as_ac_Header'}'`
13886 { echo "$as_me:$LINENO: result: $ac_res" >&5
13887 echo "${ECHO_T}$ac_res" >&6; }
13888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13889 cat >>confdefs.h <<_ACEOF
13890 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13893 ac_header_dirent=$ac_hdr; break
13897 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13898 if test $ac_header_dirent = dirent.h; then
13899 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13900 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13901 if test "${ac_cv_search_opendir+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 ac_func_search_save_LIBS=$LIBS
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13927 for ac_lib in '' dir; do
13928 if test -z "$ac_lib"; then
13929 ac_res="none required"
13932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13934 rm -f conftest.$ac_objext conftest$ac_exeext
13935 if { (ac_try="$ac_link"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_link") 2>conftest.er1
13943 grep -v '^ *+' conftest.er1 >conftest.err
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_search_opendir=$ac_res
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13976 rm -f core conftest.err conftest.$ac_objext \
13978 if test "${ac_cv_search_opendir+set}" = set; then
13982 if test "${ac_cv_search_opendir+set}" = set; then
13985 ac_cv_search_opendir=no
13987 rm conftest.$ac_ext
13988 LIBS=$ac_func_search_save_LIBS
13990 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13991 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13992 ac_res=$ac_cv_search_opendir
13993 if test "$ac_res" != no; then
13994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14001 if test "${ac_cv_search_opendir+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_func_search_save_LIBS=$LIBS
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14012 /* Override any GCC internal prototype to avoid an error.
14013 Use char because int might match the return type of a GCC
14014 builtin and then its argument prototype would still apply. */
14027 for ac_lib in '' x; do
14028 if test -z "$ac_lib"; then
14029 ac_res="none required"
14032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14043 grep -v '^ *+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_search_opendir=$ac_res
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14076 rm -f core conftest.err conftest.$ac_objext \
14078 if test "${ac_cv_search_opendir+set}" = set; then
14082 if test "${ac_cv_search_opendir+set}" = set; then
14085 ac_cv_search_opendir=no
14087 rm conftest.$ac_ext
14088 LIBS=$ac_func_search_save_LIBS
14090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14092 ac_res=$ac_cv_search_opendir
14093 if test "$ac_res" != no; then
14094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14100 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14101 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14102 if test "${ac_cv_header_mmap_anon+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 ac_cpp='$CPP $CPPFLAGS'
14107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #include <sys/mman.h>
14118 #include <unistd.h>
14123 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_header_mmap_anon=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_header_mmap_anon=no
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 ac_cpp='$CPP $CPPFLAGS'
14173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14179 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14180 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14181 if test "$ac_cv_header_mmap_anon" = yes; then
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_MMAP_ANONYMOUS 1
14189 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14190 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14191 if test "${ac_cv_header_stat_broken+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 #include <sys/types.h>
14201 #include <sys/stat.h>
14203 #if defined S_ISBLK && defined S_IFDIR
14204 # if S_ISBLK (S_IFDIR)
14209 #if defined S_ISBLK && defined S_IFCHR
14210 # if S_ISBLK (S_IFCHR)
14215 #if defined S_ISLNK && defined S_IFREG
14216 # if S_ISLNK (S_IFREG)
14221 #if defined S_ISSOCK && defined S_IFREG
14222 # if S_ISSOCK (S_IFREG)
14228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229 $EGREP "You lose" >/dev/null 2>&1; then
14230 ac_cv_header_stat_broken=yes
14232 ac_cv_header_stat_broken=no
14237 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14238 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14239 if test $ac_cv_header_stat_broken = yes; then
14241 cat >>confdefs.h <<\_ACEOF
14242 #define STAT_MACROS_BROKEN 1
14247 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14248 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14249 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 cat >conftest.$ac_ext <<_ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 #include <sys/types.h>
14259 #include <sys/wait.h>
14260 #ifndef WEXITSTATUS
14261 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14277 rm -f conftest.$ac_objext
14278 if { (ac_try="$ac_compile"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_compile") 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_header_sys_wait_h=yes
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_header_sys_wait_h=no
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14322 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14323 if test $ac_cv_header_sys_wait_h = yes; then
14325 cat >>confdefs.h <<\_ACEOF
14326 #define HAVE_SYS_WAIT_H 1
14331 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14332 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_time+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <sys/types.h>
14343 #include <sys/time.h>
14349 if ((struct tm *) 0)
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_cv_header_time=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_header_time=no
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14400 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14401 if test $ac_cv_header_time = yes; then
14403 cat >>confdefs.h <<\_ACEOF
14404 #define TIME_WITH_SYS_TIME 1
14416 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 ac_res=`eval echo '${'$as_ac_Header'}'`
14426 { echo "$as_me:$LINENO: result: $ac_res" >&5
14427 echo "${ECHO_T}$ac_res" >&6; }
14429 # Is the header compilable?
14430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 $ac_includes_default
14439 #include <$ac_header>
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_compile") 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_try") 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_header_compiler=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_header_compiler=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6; }
14487 # Is the header present?
14488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <$ac_header>
14498 if { (ac_try="$ac_cpp conftest.$ac_ext"
14499 case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14506 grep -v '^ *+' conftest.er1 >conftest.err
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } >/dev/null; then
14511 if test -s conftest.err; then
14512 ac_cpp_err=$ac_c_preproc_warn_flag
14513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14520 if test -z "$ac_cpp_err"; then
14521 ac_header_preproc=yes
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_header_preproc=no
14529 rm -f conftest.err conftest.$ac_ext
14530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14531 echo "${ECHO_T}$ac_header_preproc" >&6; }
14533 # So? What about this header?
14534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14540 ac_header_preproc=yes
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14556 ## ------------------------------------ ##
14557 ## Report this to http://llvm.org/bugs/ ##
14558 ## ------------------------------------ ##
14560 ) | sed "s/^/$as_me: WARNING: /" >&2
14563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 eval "$as_ac_Header=\$ac_header_preproc"
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571 { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 ac_res=`eval echo '${'$as_ac_Header'}'`
14600 { echo "$as_me:$LINENO: result: $ac_res" >&5
14601 echo "${ECHO_T}$ac_res" >&6; }
14603 # Is the header compilable?
14604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 $ac_includes_default
14613 #include <$ac_header>
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_compile") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630 { (case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_try") 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_header_compiler=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_header_compiler=no
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 echo "${ECHO_T}$ac_header_compiler" >&6; }
14661 # Is the header present?
14662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include <$ac_header>
14672 if { (ac_try="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null; then
14685 if test -s conftest.err; then
14686 ac_cpp_err=$ac_c_preproc_warn_flag
14687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14694 if test -z "$ac_cpp_err"; then
14695 ac_header_preproc=yes
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_header_preproc=no
14703 rm -f conftest.err conftest.$ac_ext
14704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14705 echo "${ECHO_T}$ac_header_preproc" >&6; }
14707 # So? What about this header?
14708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14714 ac_header_preproc=yes
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14730 ## ------------------------------------ ##
14731 ## Report this to http://llvm.org/bugs/ ##
14732 ## ------------------------------------ ##
14734 ) | sed "s/^/$as_me: WARNING: /" >&2
14737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 eval "$as_ac_Header=\$ac_header_preproc"
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14750 cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14760 for ac_header in utime.h windows.h
14762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_res=`eval echo '${'$as_ac_Header'}'`
14770 { echo "$as_me:$LINENO: result: $ac_res" >&5
14771 echo "${ECHO_T}$ac_res" >&6; }
14773 # Is the header compilable?
14774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 #include <$ac_header>
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_compile") 2>conftest.er1
14794 grep -v '^ *+' conftest.er1 >conftest.err
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14800 { (case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_try") 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_try") 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_header_compiler=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_compiler=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831 # Is the header present?
14832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 #include <$ac_header>
14842 if { (ac_try="$ac_cpp conftest.$ac_ext"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null; then
14855 if test -s conftest.err; then
14856 ac_cpp_err=$ac_c_preproc_warn_flag
14857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14864 if test -z "$ac_cpp_err"; then
14865 ac_header_preproc=yes
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_header_preproc=no
14873 rm -f conftest.err conftest.$ac_ext
14874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14875 echo "${ECHO_T}$ac_header_preproc" >&6; }
14877 # So? What about this header?
14878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14884 ac_header_preproc=yes
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14900 ## ------------------------------------ ##
14901 ## Report this to http://llvm.org/bugs/ ##
14902 ## ------------------------------------ ##
14904 ) | sed "s/^/$as_me: WARNING: /" >&2
14907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 eval "$as_ac_Header=\$ac_header_preproc"
14914 ac_res=`eval echo '${'$as_ac_Header'}'`
14915 { echo "$as_me:$LINENO: result: $ac_res" >&5
14916 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14933 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 ac_res=`eval echo '${'$as_ac_Header'}'`
14943 { echo "$as_me:$LINENO: result: $ac_res" >&5
14944 echo "${ECHO_T}$ac_res" >&6; }
14946 # Is the header compilable?
14947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 $ac_includes_default
14956 #include <$ac_header>
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_header_compiler=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_header_compiler=no
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6; }
15004 # Is the header present?
15005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <$ac_header>
15015 if { (ac_try="$ac_cpp conftest.$ac_ext"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } >/dev/null; then
15028 if test -s conftest.err; then
15029 ac_cpp_err=$ac_c_preproc_warn_flag
15030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15037 if test -z "$ac_cpp_err"; then
15038 ac_header_preproc=yes
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_header_preproc=no
15046 rm -f conftest.err conftest.$ac_ext
15047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048 echo "${ECHO_T}$ac_header_preproc" >&6; }
15050 # So? What about this header?
15051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15073 ## ------------------------------------ ##
15074 ## Report this to http://llvm.org/bugs/ ##
15075 ## ------------------------------------ ##
15077 ) | sed "s/^/$as_me: WARNING: /" >&2
15080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 eval "$as_ac_Header=\$ac_header_preproc"
15087 ac_res=`eval echo '${'$as_ac_Header'}'`
15088 { echo "$as_me:$LINENO: result: $ac_res" >&5
15089 echo "${ECHO_T}$ac_res" >&6; }
15092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15093 cat >>confdefs.h <<_ACEOF
15094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15105 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15118 # Is the header compilable?
15119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 $ac_includes_default
15128 #include <$ac_header>
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_header_compiler=no
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174 echo "${ECHO_T}$ac_header_compiler" >&6; }
15176 # Is the header present?
15177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 #include <$ac_header>
15187 if { (ac_try="$ac_cpp conftest.$ac_ext"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } >/dev/null; then
15200 if test -s conftest.err; then
15201 ac_cpp_err=$ac_c_preproc_warn_flag
15202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15209 if test -z "$ac_cpp_err"; then
15210 ac_header_preproc=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245 ## ------------------------------------ ##
15246 ## Report this to http://llvm.org/bugs/ ##
15247 ## ------------------------------------ ##
15249 ) | sed "s/^/$as_me: WARNING: /" >&2
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 eval "$as_ac_Header=\$ac_header_preproc"
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 for ac_header in valgrind/valgrind.h
15276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 ac_res=`eval echo '${'$as_ac_Header'}'`
15284 { echo "$as_me:$LINENO: result: $ac_res" >&5
15285 echo "${ECHO_T}$ac_res" >&6; }
15287 # Is the header compilable?
15288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 $ac_includes_default
15297 #include <$ac_header>
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_compile") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_header_compiler=yes
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_header_compiler=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343 echo "${ECHO_T}$ac_header_compiler" >&6; }
15345 # Is the header present?
15346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 #include <$ac_header>
15356 if { (ac_try="$ac_cpp conftest.$ac_ext"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } >/dev/null; then
15369 if test -s conftest.err; then
15370 ac_cpp_err=$ac_c_preproc_warn_flag
15371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15378 if test -z "$ac_cpp_err"; then
15379 ac_header_preproc=yes
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_preproc=no
15387 rm -f conftest.err conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 echo "${ECHO_T}$ac_header_preproc" >&6; }
15391 # So? What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15414 ## ------------------------------------ ##
15415 ## Report this to http://llvm.org/bugs/ ##
15416 ## ------------------------------------ ##
15418 ) | sed "s/^/$as_me: WARNING: /" >&2
15421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 eval "$as_ac_Header=\$ac_header_preproc"
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15434 cat >>confdefs.h <<_ACEOF
15435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 for ac_header in fenv.h
15445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15456 # Is the header compilable?
15457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 #include <$ac_header>
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_compile") 2>conftest.er1
15477 grep -v '^ *+' conftest.er1 >conftest.err
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15483 { (case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_try") 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498 (eval "$ac_try") 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502 ac_header_compiler=yes
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 ac_header_compiler=no
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15512 echo "${ECHO_T}$ac_header_compiler" >&6; }
15514 # Is the header present?
15515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 #include <$ac_header>
15525 if { (ac_try="$ac_cpp conftest.$ac_ext"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } >/dev/null; then
15538 if test -s conftest.err; then
15539 ac_cpp_err=$ac_c_preproc_warn_flag
15540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15547 if test -z "$ac_cpp_err"; then
15548 ac_header_preproc=yes
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15583 ## ------------------------------------ ##
15584 ## Report this to http://llvm.org/bugs/ ##
15585 ## ------------------------------------ ##
15587 ) | sed "s/^/$as_me: WARNING: /" >&2
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 eval "$as_ac_Header=\$ac_header_preproc"
15597 ac_res=`eval echo '${'$as_ac_Header'}'`
15598 { echo "$as_me:$LINENO: result: $ac_res" >&5
15599 echo "${ECHO_T}$ac_res" >&6; }
15602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15603 cat >>confdefs.h <<_ACEOF
15604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15611 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15613 for ac_header in pthread.h
15615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 ac_res=`eval echo '${'$as_ac_Header'}'`
15623 { echo "$as_me:$LINENO: result: $ac_res" >&5
15624 echo "${ECHO_T}$ac_res" >&6; }
15626 # Is the header compilable?
15627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 #include <$ac_header>
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_header_compiler=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_header_compiler=no
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682 echo "${ECHO_T}$ac_header_compiler" >&6; }
15684 # Is the header present?
15685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <$ac_header>
15695 if { (ac_try="$ac_cpp conftest.$ac_ext"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15717 if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_preproc=no
15726 rm -f conftest.err conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6; }
15730 # So? What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15753 ## ------------------------------------ ##
15754 ## Report this to http://llvm.org/bugs/ ##
15755 ## ------------------------------------ ##
15757 ) | sed "s/^/$as_me: WARNING: /" >&2
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 eval "$as_ac_Header=\$ac_header_preproc"
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15790 if test "$llvm_cv_enable_libffi" = "yes" ; then
15793 for ac_header in ffi.h ffi/ffi.h
15795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 ac_res=`eval echo '${'$as_ac_Header'}'`
15803 { echo "$as_me:$LINENO: result: $ac_res" >&5
15804 echo "${ECHO_T}$ac_res" >&6; }
15806 # Is the header compilable?
15807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15816 #include <$ac_header>
15818 rm -f conftest.$ac_objext
15819 if { (ac_try="$ac_compile"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_compile") 2>conftest.er1
15827 grep -v '^ *+' conftest.er1 >conftest.err
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
15843 { (case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_try") 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_header_compiler=yes
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_header_compiler=no
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6; }
15864 # Is the header present?
15865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15875 if { (ac_try="$ac_cpp conftest.$ac_ext"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null; then
15888 if test -s conftest.err; then
15889 ac_cpp_err=$ac_c_preproc_warn_flag
15890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15897 if test -z "$ac_cpp_err"; then
15898 ac_header_preproc=yes
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15903 ac_header_preproc=no
15906 rm -f conftest.err conftest.$ac_ext
15907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15908 echo "${ECHO_T}$ac_header_preproc" >&6; }
15910 # So? What about this header?
15911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15917 ac_header_preproc=yes
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15933 ## ------------------------------------ ##
15934 ## Report this to http://llvm.org/bugs/ ##
15935 ## ------------------------------------ ##
15937 ) | sed "s/^/$as_me: WARNING: /" >&2
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 eval "$as_ac_Header=\$ac_header_preproc"
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15964 for ac_header in CrashReporterClient.h
15966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 ac_res=`eval echo '${'$as_ac_Header'}'`
15974 { echo "$as_me:$LINENO: result: $ac_res" >&5
15975 echo "${ECHO_T}$ac_res" >&6; }
15977 # Is the header compilable?
15978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980 cat >conftest.$ac_ext <<_ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 $ac_includes_default
15987 #include <$ac_header>
15989 rm -f conftest.$ac_objext
15990 if { (ac_try="$ac_compile"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler=yes
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_header_compiler=no
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033 echo "${ECHO_T}$ac_header_compiler" >&6; }
16035 # Is the header present?
16036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <$ac_header>
16046 if { (ac_try="$ac_cpp conftest.$ac_ext"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null; then
16059 if test -s conftest.err; then
16060 ac_cpp_err=$ac_c_preproc_warn_flag
16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16068 if test -z "$ac_cpp_err"; then
16069 ac_header_preproc=yes
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 ac_header_preproc=no
16077 rm -f conftest.err conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6; }
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16104 ## ------------------------------------ ##
16105 ## Report this to http://llvm.org/bugs/ ##
16106 ## ------------------------------------ ##
16108 ) | sed "s/^/$as_me: WARNING: /" >&2
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 eval "$as_ac_Header=\$ac_header_preproc"
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16133 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16134 echo $ECHO_N "checking __crashreporter_info__... $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 extern const char *__crashreporter_info__;
16143 __crashreporter_info__ = "test";
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_link") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16163 { (case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_try") 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_try") 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 { echo "$as_me:$LINENO: result: yes" >&5
16183 echo "${ECHO_T}yes" >&6; }
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_CRASHREPORTER_INFO 1
16190 echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 { echo "$as_me:$LINENO: result: no" >&5
16194 echo "${ECHO_T}no" >&6; }
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_CRASHREPORTER_INFO 0
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16208 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16209 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16210 if test "${ac_cv_huge_val_sanity+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 ac_cpp='$CXXCPP $CPPFLAGS'
16216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16220 ac_save_CXXFLAGS=$CXXFLAGS
16221 CXXFLAGS="$CXXFLAGS -pedantic"
16222 if test "$cross_compiling" = yes; then
16223 ac_cv_huge_val_sanity=yes
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16235 double x = HUGE_VAL; return x != x;
16240 rm -f conftest$ac_exeext
16241 if { (ac_try="$ac_link"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_link") 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_cv_huge_val_sanity=yes
16262 echo "$as_me: program exited with status $ac_status" >&5
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ( exit $ac_status )
16267 ac_cv_huge_val_sanity=no
16269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16273 CXXFLAGS=$ac_save_CXXFLAGS
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16282 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16283 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16284 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16287 { echo "$as_me:$LINENO: checking for pid_t" >&5
16288 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16289 if test "${ac_cv_type_pid_t+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 cat >conftest.$ac_ext <<_ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 $ac_includes_default
16299 typedef pid_t ac__type_new_;
16303 if ((ac__type_new_ *) 0)
16305 if (sizeof (ac__type_new_))
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_compile") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_type_pid_t=yes
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 ac_cv_type_pid_t=no
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16356 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16357 if test $ac_cv_type_pid_t = yes; then
16361 cat >>confdefs.h <<_ACEOF
16367 { echo "$as_me:$LINENO: checking for size_t" >&5
16368 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16369 if test "${ac_cv_type_size_t+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16379 typedef size_t ac__type_new_;
16383 if ((ac__type_new_ *) 0)
16385 if (sizeof (ac__type_new_))
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_type_size_t=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_type_size_t=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16436 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16437 if test $ac_cv_type_size_t = yes; then
16441 cat >>confdefs.h <<_ACEOF
16442 #define size_t unsigned int
16448 cat >>confdefs.h <<_ACEOF
16449 #define RETSIGTYPE void
16452 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16453 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16454 if test "${ac_cv_struct_tm+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <sys/types.h>
16469 struct tm *tp; tp->tm_sec;
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_compile") 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_try") 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_struct_tm=time.h
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_cv_struct_tm=sys/time.h
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16519 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16520 if test $ac_cv_struct_tm = sys/time.h; then
16522 cat >>confdefs.h <<\_ACEOF
16523 #define TM_IN_SYS_TIME 1
16528 { echo "$as_me:$LINENO: checking for int64_t" >&5
16529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16530 if test "${ac_cv_type_int64_t+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $ac_includes_default
16540 typedef int64_t ac__type_new_;
16544 if ((ac__type_new_ *) 0)
16546 if (sizeof (ac__type_new_))
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_compile") 2>conftest.er1
16561 grep -v '^ *+' conftest.er1 >conftest.err
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_type_int64_t=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_type_int64_t=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16598 if test $ac_cv_type_int64_t = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_INT64_T 1
16606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16607 echo "$as_me: error: Type int64_t required but not found" >&2;}
16608 { (exit 1); exit 1; }; }
16611 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16613 if test "${ac_cv_type_uint64_t+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 $ac_includes_default
16623 typedef uint64_t ac__type_new_;
16627 if ((ac__type_new_ *) 0)
16629 if (sizeof (ac__type_new_))
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_compile") 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_cv_type_uint64_t=yes
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_cv_type_uint64_t=no
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16681 if test $ac_cv_type_uint64_t = yes; then
16683 cat >>confdefs.h <<_ACEOF
16684 #define HAVE_UINT64_T 1
16689 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16691 if test "${ac_cv_type_u_int64_t+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16701 typedef u_int64_t ac__type_new_;
16705 if ((ac__type_new_ *) 0)
16707 if (sizeof (ac__type_new_))
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_try") 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_type_u_int64_t=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_type_u_int64_t=no
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16758 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16759 if test $ac_cv_type_u_int64_t = yes; then
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_U_INT64_T 1
16767 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16768 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16769 { (exit 1); exit 1; }; }
16783 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 cat >conftest.$ac_ext <<_ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16799 #define $ac_func innocuous_$ac_func
16801 /* System header to define __stub macros and hopefully few prototypes,
16802 which can conflict with char $ac_func (); below.
16803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16804 <limits.h> exists even on freestanding compilers. */
16807 # include <limits.h>
16809 # include <assert.h>
16814 /* Override any GCC internal prototype to avoid an error.
16815 Use char because int might match the return type of a GCC
16816 builtin and then its argument prototype would still apply. */
16821 /* The GNU C library defines this for functions which it implements
16822 to always fail with ENOSYS. Some functions are actually named
16823 something starting with __ and the normal name is an alias. */
16824 #if defined __stub_$ac_func || defined __stub___$ac_func
16831 return $ac_func ();
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (ac_try="$ac_link"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_link") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 eval "$as_ac_var=yes"
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 eval "$as_ac_var=no"
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16881 ac_res=`eval echo '${'$as_ac_var'}'`
16882 { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16884 if test `eval echo '${'$as_ac_var'}'` = yes; then
16885 cat >>confdefs.h <<_ACEOF
16886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896 for ac_func in powf fmodf strtof round
16898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define $ac_func innocuous_$ac_func
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16920 # include <limits.h>
16922 # include <assert.h>
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined __stub_$ac_func || defined __stub___$ac_func
16944 return $ac_func ();
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_link") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 eval "$as_ac_var=yes"
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 eval "$as_ac_var=no"
16991 rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16994 ac_res=`eval echo '${'$as_ac_var'}'`
16995 { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16997 if test `eval echo '${'$as_ac_var'}'` = yes; then
16998 cat >>confdefs.h <<_ACEOF
16999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17010 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17026 #define $ac_func innocuous_$ac_func
17028 /* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func (); below.
17030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031 <limits.h> exists even on freestanding compilers. */
17034 # include <limits.h>
17036 # include <assert.h>
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17048 /* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051 #if defined __stub_$ac_func || defined __stub___$ac_func
17058 return $ac_func ();
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 eval "$as_ac_var=no"
17105 rm -f core conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17108 ac_res=`eval echo '${'$as_ac_var'}'`
17109 { echo "$as_me:$LINENO: result: $ac_res" >&5
17110 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17122 for ac_func in isatty mkdtemp mkstemp
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138 #define $ac_func innocuous_$ac_func
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17146 # include <limits.h>
17148 # include <assert.h>
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17170 return $ac_func ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 eval "$as_ac_var=yes"
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254 #define $ac_func innocuous_$ac_func
17256 /* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17262 # include <limits.h>
17264 # include <assert.h>
17269 /* Override any GCC internal prototype to avoid an error.
17270 Use char because int might match the return type of a GCC
17271 builtin and then its argument prototype would still apply. */
17276 /* The GNU C library defines this for functions which it implements
17277 to always fail with ENOSYS. Some functions are actually named
17278 something starting with __ and the normal name is an alias. */
17279 #if defined __stub_$ac_func || defined __stub___$ac_func
17286 return $ac_func ();
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17300 grep -v '^ *+' conftest.er1 >conftest.err
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 eval "$as_ac_var=yes"
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 eval "$as_ac_var=no"
17333 rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17336 ac_res=`eval echo '${'$as_ac_var'}'`
17337 { echo "$as_me:$LINENO: result: $ac_res" >&5
17338 echo "${ECHO_T}$ac_res" >&6; }
17339 if test `eval echo '${'$as_ac_var'}'` = yes; then
17340 cat >>confdefs.h <<_ACEOF
17341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17351 for ac_func in strerror strerror_r setenv arc4random
17353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define $ac_func innocuous_$ac_func
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17375 # include <limits.h>
17377 # include <assert.h>
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17399 return $ac_func ();
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 eval "$as_ac_var=yes"
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 eval "$as_ac_var=no"
17446 rm -f core conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17449 ac_res=`eval echo '${'$as_ac_var'}'`
17450 { echo "$as_me:$LINENO: result: $ac_res" >&5
17451 echo "${ECHO_T}$ac_res" >&6; }
17452 if test `eval echo '${'$as_ac_var'}'` = yes; then
17453 cat >>confdefs.h <<_ACEOF
17454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17464 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define $ac_func innocuous_$ac_func
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17502 /* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
17505 #if defined __stub_$ac_func || defined __stub___$ac_func
17512 return $ac_func ();
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17532 { (case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_try") 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 eval "$as_ac_var=yes"
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 eval "$as_ac_var=no"
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17562 ac_res=`eval echo '${'$as_ac_var'}'`
17563 { echo "$as_me:$LINENO: result: $ac_res" >&5
17564 echo "${ECHO_T}$ac_res" >&6; }
17565 if test `eval echo '${'$as_ac_var'}'` = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define $ac_func innocuous_$ac_func
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17609 /* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17616 /* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619 #if defined __stub_$ac_func || defined __stub___$ac_func
17626 return $ac_func ();
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 eval "$as_ac_var=yes"
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 eval "$as_ac_var=no"
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17676 ac_res=`eval echo '${'$as_ac_var'}'`
17677 { echo "$as_me:$LINENO: result: $ac_res" >&5
17678 echo "${ECHO_T}$ac_res" >&6; }
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17687 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17688 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17689 if test "${llvm_cv_c_printf_a+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 ac_cpp='$CPP $CPPFLAGS'
17694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698 if test "$cross_compiling" = yes; then
17699 llvmac_cv_c_printf_a=no
17701 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17710 #include <stdlib.h>
17716 volatile double A, B;
17720 sprintf(Buffer, "%a", A);
17724 if (A != 0x1.999999999999ap-4)
17731 rm -f conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17742 { (case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_try") 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 llvm_cv_c_printf_a=yes
17753 echo "$as_me: program exited with status $ac_status" >&5
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ( exit $ac_status )
17758 llvmac_cv_c_printf_a=no
17760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17765 ac_cpp='$CPP $CPPFLAGS'
17766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17771 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17772 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17773 if test "$llvm_cv_c_printf_a" = "yes"; then
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_PRINTF_A 1
17782 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17783 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17784 if test "${ac_cv_func_rand48+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17799 #include <stdlib.h>
17803 srand48(0);lrand48();drand48();
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_func_rand48=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_func_rand48=no
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 ac_cpp='$CPP $CPPFLAGS'
17853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17858 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17859 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17861 if test "$ac_cv_func_rand48" = "yes" ; then
17863 cat >>confdefs.h <<\_ACEOF
17864 #define HAVE_RAND48 1
17870 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17871 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17872 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 $ac_includes_default
17886 char *p = (char *) strerror_s;
17894 rm -f conftest.$ac_objext
17895 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17903 grep -v '^ *+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
17919 { (case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_try") 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_have_decl_strerror_s=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_have_decl_strerror_s=no
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17939 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17940 if test $ac_cv_have_decl_strerror_s = yes; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_DECL_STRERROR_S 1
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_DECL_STRERROR_S 0
17957 if test "$llvm_cv_os_type" = "MingW" ; then
17958 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17959 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17960 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 ac_check_lib_save_LIBS=$LIBS
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_lib_gcc__alloca=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_gcc__alloca=no
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18034 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18035 if test $ac_cv_lib_gcc__alloca = yes; then
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE__ALLOCA 1
18043 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18044 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_check_lib_save_LIBS=$LIBS
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18067 return __alloca ();
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_gcc___alloca=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_gcc___alloca=no
18114 rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18119 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18120 if test $ac_cv_lib_gcc___alloca = yes; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE___ALLOCA 1
18128 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18129 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18130 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 ac_check_lib_save_LIBS=$LIBS
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18152 return __chkstk ();
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_lib_gcc___chkstk=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_gcc___chkstk=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18204 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18205 if test $ac_cv_lib_gcc___chkstk = yes; then
18207 cat >>confdefs.h <<\_ACEOF
18208 #define HAVE___CHKSTK 1
18213 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18214 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18215 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 ac_check_lib_save_LIBS=$LIBS
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18227 /* Override any GCC internal prototype to avoid an error.
18228 Use char because int might match the return type of a GCC
18229 builtin and then its argument prototype would still apply. */
18237 return ___chkstk ();
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_link") 2>conftest.er1
18251 grep -v '^ *+' conftest.er1 >conftest.err
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
18256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18257 { (case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_try") 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; } &&
18266 { ac_try='test -s conftest$ac_exeext'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_lib_gcc____chkstk=yes
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 ac_cv_lib_gcc____chkstk=no
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18288 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18289 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18290 if test $ac_cv_lib_gcc____chkstk = yes; then
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE____CHKSTK 1
18299 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18300 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_check_lib_save_LIBS=$LIBS
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18323 return __ashldi3 ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_gcc___ashldi3=yes
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 ac_cv_lib_gcc___ashldi3=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18376 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___ASHLDI3 1
18384 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18385 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_check_lib_save_LIBS=$LIBS
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18408 return __ashrdi3 ();
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_link") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_lib_gcc___ashrdi3=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_cv_lib_gcc___ashrdi3=no
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18461 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE___ASHRDI3 1
18469 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18470 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18471 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 ac_check_lib_save_LIBS=$LIBS
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18493 return __divdi3 ();
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1 >conftest.err
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_lib_gcc___divdi3=yes
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_cv_lib_gcc___divdi3=no
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18545 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18546 if test $ac_cv_lib_gcc___divdi3 = yes; then
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE___DIVDI3 1
18554 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18555 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 ac_check_lib_save_LIBS=$LIBS
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18578 return __fixdfdi ();
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_gcc___fixdfdi=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_gcc___fixdfdi=no
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18630 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18631 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE___FIXDFDI 1
18639 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18640 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18641 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 ac_check_lib_save_LIBS=$LIBS
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18663 return __fixsfdi ();
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_link") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest$ac_exeext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_gcc___fixsfdi=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_lib_gcc___fixsfdi=no
18710 rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18715 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18716 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE___FIXSFDI 1
18724 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18725 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18726 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 ac_check_lib_save_LIBS=$LIBS
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18744 char __floatdidf ();
18748 return __floatdidf ();
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest$ac_exeext'
18778 { (case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_try") 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_lib_gcc___floatdidf=yes
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_lib_gcc___floatdidf=no
18795 rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18800 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18801 if test $ac_cv_lib_gcc___floatdidf = yes; then
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE___FLOATDIDF 1
18809 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18810 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_check_lib_save_LIBS=$LIBS
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18833 return __lshrdi3 ();
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_lib_gcc___lshrdi3=yes
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_lib_gcc___lshrdi3=no
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18885 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18886 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE___LSHRDI3 1
18894 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18895 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18896 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 ac_check_lib_save_LIBS=$LIBS
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18918 return __moddi3 ();
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_link") 2>conftest.er1
18932 grep -v '^ *+' conftest.er1 >conftest.err
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_lib_gcc___moddi3=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_cv_lib_gcc___moddi3=no
18965 rm -f core conftest.err conftest.$ac_objext \
18966 conftest$ac_exeext conftest.$ac_ext
18967 LIBS=$ac_check_lib_save_LIBS
18969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18970 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18971 if test $ac_cv_lib_gcc___moddi3 = yes; then
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE___MODDI3 1
18979 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18980 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18981 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 ac_check_lib_save_LIBS=$LIBS
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
19003 return __udivdi3 ();
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_link") 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_gcc___udivdi3=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_lib_gcc___udivdi3=no
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19056 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE___UDIVDI3 1
19064 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19065 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19066 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 ac_check_lib_save_LIBS=$LIBS
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19078 /* Override any GCC internal prototype to avoid an error.
19079 Use char because int might match the return type of a GCC
19080 builtin and then its argument prototype would still apply. */
19088 return __umoddi3 ();
19093 rm -f conftest.$ac_objext conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_link") 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest$ac_exeext'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_cv_lib_gcc___umoddi3=yes
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ac_cv_lib_gcc___umoddi3=no
19135 rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19139 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19140 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19141 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19143 cat >>confdefs.h <<\_ACEOF
19144 #define HAVE___UMODDI3 1
19150 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19151 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___main+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 ac_check_lib_save_LIBS=$LIBS
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_lib_gcc___main=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_cv_lib_gcc___main=no
19221 rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19227 if test $ac_cv_lib_gcc___main = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___MAIN 1
19235 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19236 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19237 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 ac_check_lib_save_LIBS=$LIBS
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19249 /* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19259 return __cmpdi2 ();
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest$ac_exeext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_lib_gcc___cmpdi2=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_lib_gcc___cmpdi2=no
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19311 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19312 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE___CMPDI2 1
19322 if test "$llvm_cv_os_type" = "MingW" ; then
19323 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19324 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19325 cat >conftest.$ac_ext <<_ACEOF
19326 #include <windows.h>
19327 #include <imagehlp.h>
19328 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19329 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_compile") 2>conftest.er1
19340 grep -v '^ *+' conftest.er1 >conftest.err
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19366 { echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6; }
19368 llvm_cv_win32_elmcb_pcstr="PCSTR"
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19375 { echo "$as_me:$LINENO: result: no" >&5
19376 echo "${ECHO_T}no" >&6; }
19377 llvm_cv_win32_elmcb_pcstr="PSTR"
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 cat >>confdefs.h <<_ACEOF
19384 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19390 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19391 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19392 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 ac_cpp='$CXXCPP $CPPFLAGS'
19397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19416 rm -f conftest.$ac_objext
19417 if { (ac_try="$ac_compile"
19418 case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_compile") 2>conftest.er1
19425 grep -v '^ *+' conftest.er1 >conftest.err
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_try") 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_cv_func_isnan_in_math_h=yes
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_func_isnan_in_math_h=no
19458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 ac_cpp='$CPP $CPPFLAGS'
19461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19466 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19467 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19470 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ISNAN_IN_MATH_H 1
19478 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19479 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19480 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 ac_cpp='$CXXCPP $CPPFLAGS'
19485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_func_isnan_in_cmath=yes
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ac_cv_func_isnan_in_cmath=no
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19555 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19557 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ISNAN_IN_CMATH 1
19565 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19566 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19586 float f; std::isnan(f);
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_func_std_isnan_in_cmath=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_func_std_isnan_in_cmath=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19642 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19644 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_STD_ISNAN_IN_CMATH 1
19653 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19654 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 ac_cpp='$CXXCPP $CPPFLAGS'
19660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_func_isinf_in_math_h=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_func_isinf_in_math_h=no
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19729 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19730 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19732 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_ISINF_IN_MATH_H 1
19740 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19741 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19742 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 ac_cpp='$CXXCPP $CPPFLAGS'
19747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_func_isinf_in_cmath=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_cv_func_isinf_in_cmath=no
19808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19816 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19817 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19819 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_ISINF_IN_CMATH 1
19827 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19828 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19829 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19848 float f; std::isinf(f);
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_compile") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_func_std_isinf_in_cmath=yes
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_func_std_isinf_in_cmath=no
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 ac_cpp='$CPP $CPPFLAGS'
19898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19903 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19904 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19906 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE_STD_ISINF_IN_CMATH 1
19914 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19915 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19916 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 ac_cpp='$CXXCPP $CPPFLAGS'
19921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <ieeefp.h>
19935 float f; finite(f);
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; } &&
19964 { ac_try='test -s conftest.$ac_objext'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19974 ac_cv_func_finite_in_ieeefp_h=yes
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 ac_cv_func_finite_in_ieeefp_h=no
19982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 ac_cpp='$CPP $CPPFLAGS'
19985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19991 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19993 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_FINITE_IN_IEEEFP_H 1
20003 if test "$llvm_cv_platform_type" = "Unix" ; then
20006 for ac_header in stdlib.h unistd.h
20008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 ac_res=`eval echo '${'$as_ac_Header'}'`
20016 { echo "$as_me:$LINENO: result: $ac_res" >&5
20017 echo "${ECHO_T}$ac_res" >&6; }
20019 # Is the header compilable?
20020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20022 cat >conftest.$ac_ext <<_ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 $ac_includes_default
20029 #include <$ac_header>
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_header_compiler=yes
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_header_compiler=no
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20075 echo "${ECHO_T}$ac_header_compiler" >&6; }
20077 # Is the header present?
20078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <$ac_header>
20088 if { (ac_try="$ac_cpp conftest.$ac_ext"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } >/dev/null; then
20101 if test -s conftest.err; then
20102 ac_cpp_err=$ac_c_preproc_warn_flag
20103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20110 if test -z "$ac_cpp_err"; then
20111 ac_header_preproc=yes
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_header_preproc=no
20119 rm -f conftest.err conftest.$ac_ext
20120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20121 echo "${ECHO_T}$ac_header_preproc" >&6; }
20123 # So? What about this header?
20124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20130 ac_header_preproc=yes
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20146 ## ------------------------------------ ##
20147 ## Report this to http://llvm.org/bugs/ ##
20148 ## ------------------------------------ ##
20150 ) | sed "s/^/$as_me: WARNING: /" >&2
20153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 eval "$as_ac_Header=\$ac_header_preproc"
20160 ac_res=`eval echo '${'$as_ac_Header'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162 echo "${ECHO_T}$ac_res" >&6; }
20165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20166 cat >>confdefs.h <<_ACEOF
20167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20175 for ac_func in getpagesize
20177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20199 # include <limits.h>
20201 # include <assert.h>
20206 /* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20213 /* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20223 return $ac_func ();
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1 >conftest.err
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 eval "$as_ac_var=yes"
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 eval "$as_ac_var=no"
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20273 ac_res=`eval echo '${'$as_ac_var'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275 echo "${ECHO_T}$ac_res" >&6; }
20276 if test `eval echo '${'$as_ac_var'}'` = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20284 { echo "$as_me:$LINENO: checking for working mmap" >&5
20285 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20286 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 if test "$cross_compiling" = yes; then
20290 ac_cv_func_mmap_fixed_mapped=no
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 $ac_includes_default
20299 /* malloc might have been renamed as rpl_malloc. */
20302 /* Thanks to Mike Haertel and Jim Avera for this test.
20303 Here is a matrix of mmap possibilities:
20304 mmap private not fixed
20305 mmap private fixed at somewhere currently unmapped
20306 mmap private fixed at somewhere already mapped
20307 mmap shared not fixed
20308 mmap shared fixed at somewhere currently unmapped
20309 mmap shared fixed at somewhere already mapped
20310 For private mappings, we should verify that changes cannot be read()
20311 back from the file, nor mmap's back from the file at a different
20312 address. (There have been systems where private was not correctly
20313 implemented like the infamous i386 svr4.0, and systems where the
20314 VM page cache was not coherent with the file system buffer cache
20315 like early versions of FreeBSD and possibly contemporary NetBSD.)
20316 For shared mappings, we should conversely verify that changes get
20317 propagated back to all the places they're supposed to be.
20319 Grep wants private fixed already mapped.
20320 The main things grep needs to know about mmap are:
20321 * does it exist and is it safe to write into the mmap'd area
20322 * how to use it (BSD variants) */
20325 #include <sys/mman.h>
20327 #if !STDC_HEADERS && !HAVE_STDLIB_H
20331 /* This mess was copied from the GNU getpagesize.h. */
20332 #if !HAVE_GETPAGESIZE
20333 /* Assume that all systems that can run configure have sys/param.h. */
20334 # if !HAVE_SYS_PARAM_H
20335 # define HAVE_SYS_PARAM_H 1
20338 # ifdef _SC_PAGESIZE
20339 # define getpagesize() sysconf(_SC_PAGESIZE)
20340 # else /* no _SC_PAGESIZE */
20341 # if HAVE_SYS_PARAM_H
20342 # include <sys/param.h>
20343 # ifdef EXEC_PAGESIZE
20344 # define getpagesize() EXEC_PAGESIZE
20345 # else /* no EXEC_PAGESIZE */
20347 # define getpagesize() NBPG * CLSIZE
20350 # endif /* no CLSIZE */
20351 # else /* no NBPG */
20353 # define getpagesize() NBPC
20354 # else /* no NBPC */
20356 # define getpagesize() PAGESIZE
20357 # endif /* PAGESIZE */
20358 # endif /* no NBPC */
20359 # endif /* no NBPG */
20360 # endif /* no EXEC_PAGESIZE */
20361 # else /* no HAVE_SYS_PARAM_H */
20362 # define getpagesize() 8192 /* punt totally */
20363 # endif /* no HAVE_SYS_PARAM_H */
20364 # endif /* no _SC_PAGESIZE */
20366 #endif /* no HAVE_GETPAGESIZE */
20371 char *data, *data2, *data3;
20375 pagesize = getpagesize ();
20377 /* First, make a file with some known garbage in it. */
20378 data = (char *) malloc (pagesize);
20381 for (i = 0; i < pagesize; ++i)
20382 *(data + i) = rand ();
20384 fd = creat ("conftest.mmap", 0600);
20387 if (write (fd, data, pagesize) != pagesize)
20391 /* Next, try to mmap the file at a fixed address which already has
20392 something else allocated at it. If we can, also make sure that
20393 we see the same garbage. */
20394 fd = open ("conftest.mmap", O_RDWR);
20397 data2 = (char *) malloc (2 * pagesize);
20400 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20401 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20402 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20404 for (i = 0; i < pagesize; ++i)
20405 if (*(data + i) != *(data2 + i))
20408 /* Finally, make sure that changes to the mapped area do not
20409 percolate back to the file as seen by read(). (This is a bug on
20410 some variants of i386 svr4.0.) */
20411 for (i = 0; i < pagesize; ++i)
20412 *(data2 + i) = *(data2 + i) + 1;
20413 data3 = (char *) malloc (pagesize);
20416 if (read (fd, data3, pagesize) != pagesize)
20418 for (i = 0; i < pagesize; ++i)
20419 if (*(data + i) != *(data3 + i))
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ac_cv_func_mmap_fixed_mapped=yes
20447 echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ( exit $ac_status )
20452 ac_cv_func_mmap_fixed_mapped=no
20454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20460 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_MMAP 1
20468 rm -f conftest.mmap
20470 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20471 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20472 if test "${ac_cv_func_mmap_file+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481 if test "$cross_compiling" = yes; then
20482 ac_cv_func_mmap_file=no
20484 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 #include <sys/types.h>
20493 #include <sys/mman.h>
20501 fd = creat ("foo",0777);
20502 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20504 return (fd != (int) MAP_FAILED);
20509 rm -f conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_func_mmap_file=yes
20531 echo "$as_me: program exited with status $ac_status" >&5
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ( exit $ac_status )
20536 ac_cv_func_mmap_file=no
20538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20543 ac_cpp='$CPP $CPPFLAGS'
20544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20550 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20551 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20552 if test "$ac_cv_func_mmap_file" = yes; then
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_MMAP_FILE
20562 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20563 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20564 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 if test "$llvm_cv_os_type" = "Interix" ; then
20568 ac_cv_need_dev_zero_for_mmap=yes
20570 ac_cv_need_dev_zero_for_mmap=no
20574 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20575 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20576 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20578 cat >>confdefs.h <<\_ACEOF
20579 #define NEED_DEV_ZERO_FOR_MMAP 1
20584 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20586 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20587 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20589 if test "$ac_cv_func_mmap_file" = "no"
20591 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20592 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20596 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20597 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20611 volatile unsigned long val = 1;
20612 __sync_synchronize();
20613 __sync_val_compare_and_swap(&val, 1, 0);
20614 __sync_add_and_fetch(&val, 1);
20615 __sync_sub_and_fetch(&val, 1);
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (ac_try="$ac_link"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_link") 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
20634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest$ac_exeext'
20645 { (case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_try") 2>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20655 ac_cpp='$CPP $CPPFLAGS'
20656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660 { echo "$as_me:$LINENO: result: yes" >&5
20661 echo "${ECHO_T}yes" >&6; }
20663 cat >>confdefs.h <<\_ACEOF
20664 #define LLVM_HAS_ATOMICS 1
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 { echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6; }
20674 cat >>confdefs.h <<\_ACEOF
20675 #define LLVM_HAS_ATOMICS 0
20678 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20679 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20686 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20687 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20688 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20689 if test "${llvm_cv_linux_mixed+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 error: Not x86-64 even if uname says so!
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731 { (case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_try") 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 llvm_cv_linux_mixed=no
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 llvm_cv_linux_mixed=yes
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 ac_cpp='$CPP $CPPFLAGS'
20761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20768 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20770 if test "$llvm_cv_linux_mixed" = "yes"; then
20771 llvm_cv_target_arch="x86"
20777 for ac_func in __dso_handle
20779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20793 #define $ac_func innocuous_$ac_func
20795 /* System header to define __stub macros and hopefully few prototypes,
20796 which can conflict with char $ac_func (); below.
20797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20798 <limits.h> exists even on freestanding compilers. */
20801 # include <limits.h>
20803 # include <assert.h>
20808 /* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20815 /* The GNU C library defines this for functions which it implements
20816 to always fail with ENOSYS. Some functions are actually named
20817 something starting with __ and the normal name is an alias. */
20818 #if defined __stub_$ac_func || defined __stub___$ac_func
20825 return $ac_func ();
20830 rm -f conftest.$ac_objext conftest$ac_exeext
20831 if { (ac_try="$ac_link"
20832 case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_link") 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20845 { (case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_try") 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; } &&
20854 { ac_try='test -s conftest$ac_exeext'
20855 { (case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_try") 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 eval "$as_ac_var=yes"
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 eval "$as_ac_var=no"
20872 rm -f core conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
20875 ac_res=`eval echo '${'$as_ac_var'}'`
20876 { echo "$as_me:$LINENO: result: $ac_res" >&5
20877 echo "${ECHO_T}$ac_res" >&6; }
20878 if test `eval echo '${'$as_ac_var'}'` = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20887 SHLIBEXT=$libltdl_cv_shlibext
20890 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20893 if test "${prefix}" = "NONE" ; then
20894 prefix="/usr/local"
20896 eval LLVM_PREFIX="${prefix}";
20897 eval LLVM_BINDIR="${prefix}/bin";
20898 eval LLVM_LIBDIR="${prefix}/lib";
20899 eval LLVM_DATADIR="${prefix}/share/llvm";
20900 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20901 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20902 eval LLVM_INCLUDEDIR="${prefix}/include";
20903 eval LLVM_INFODIR="${prefix}/info";
20904 eval LLVM_MANDIR="${prefix}/man";
20905 LLVM_CONFIGTIME=`date`
20917 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20918 LLVM_CONFIGTIME="(timestamp not enabled)"
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_PREFIX "$LLVM_PREFIX"
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_BINDIR "$LLVM_BINDIR"
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_DATADIR "$LLVM_DATADIR"
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20957 cat >>confdefs.h <<_ACEOF
20958 #define LLVM_INFODIR "$LLVM_INFODIR"
20962 cat >>confdefs.h <<_ACEOF
20963 #define LLVM_MANDIR "$LLVM_MANDIR"
20967 cat >>confdefs.h <<_ACEOF
20968 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20972 cat >>confdefs.h <<_ACEOF
20973 #define LLVM_HOSTTRIPLE "$host"
20977 cat >>confdefs.h <<_ACEOF
20978 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20982 if test "$BINDINGS_TO_BUILD" = auto ; then
20983 BINDINGS_TO_BUILD=""
20984 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20985 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20988 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20994 binding_prereqs_failed=0
20995 for a_binding in $BINDINGS_TO_BUILD ; do
20996 case "$a_binding" in
20998 if test "x$OCAMLC" = x ; then
20999 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21000 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21001 binding_prereqs_failed=1
21003 if test "x$OCAMLDEP" = x ; then
21004 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21005 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21006 binding_prereqs_failed=1
21008 if test "x$OCAMLOPT" = x ; then
21009 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21010 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21012 if test "x$with_ocaml_libdir" != xauto ; then
21013 OCAML_LIBDIR=$with_ocaml_libdir
21016 ocaml_stdlib="`"$OCAMLC" -where`"
21017 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21019 # ocaml stdlib is beneath our prefix; use stdlib
21020 OCAML_LIBDIR=$ocaml_stdlib
21023 # ocaml stdlib is outside our prefix; use libdir/ocaml
21024 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21031 if test "$binding_prereqs_failed" = 1 ; then
21032 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21033 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21034 { (exit 1); exit 1; }; }
21037 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21038 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21039 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21048 oldcxxflags="$CXXFLAGS"
21049 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21080 { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 llvm_cv_cxx_visibility_inlines_hidden=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 llvm_cv_cxx_visibility_inlines_hidden=no
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 CXXFLAGS="$oldcxxflags"
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21117 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21118 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21119 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21120 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21123 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21128 if test "$llvm_cv_link_use_r" = "yes" ; then
21135 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21136 RDYNAMIC="-Wl,-export-dynamic"
21143 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21150 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21152 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21154 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21156 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21158 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21161 ac_config_files="$ac_config_files Makefile.config"
21164 ac_config_files="$ac_config_files llvm.spec"
21167 ac_config_files="$ac_config_files docs/doxygen.cfg"
21170 if test "${clang_src_root}" = ""; then
21171 clang_src_root="$srcdir/tools/clang"
21173 if test -f ${clang_src_root}/README.txt; then
21174 configh="include/clang/Config/config.h"
21175 doxy="docs/doxygen.cfg"
21176 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21178 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21182 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21185 ac_config_commands="$ac_config_commands setup"
21187 ac_config_commands="$ac_config_commands Makefile"
21190 ac_config_commands="$ac_config_commands Makefile.common"
21193 ac_config_commands="$ac_config_commands examples/Makefile"
21196 ac_config_commands="$ac_config_commands lib/Makefile"
21199 ac_config_commands="$ac_config_commands runtime/Makefile"
21202 ac_config_commands="$ac_config_commands test/Makefile"
21205 ac_config_commands="$ac_config_commands test/Makefile.tests"
21208 ac_config_commands="$ac_config_commands unittests/Makefile"
21211 ac_config_commands="$ac_config_commands tools/Makefile"
21214 ac_config_commands="$ac_config_commands utils/Makefile"
21217 ac_config_commands="$ac_config_commands projects/Makefile"
21220 ac_config_commands="$ac_config_commands bindings/Makefile"
21223 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21227 cat >confcache <<\_ACEOF
21228 # This file is a shell script that caches the results of configure
21229 # tests run on this system so they can be shared between configure
21230 # scripts and configure runs, see configure's option --config-cache.
21231 # It is not useful on other systems. If it contains results you don't
21232 # want to keep, you may remove or edit it.
21234 # config.status only pays attention to the cache file if you give it
21235 # the --recheck option to rerun configure.
21237 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21238 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21239 # following values.
21243 # The following way of writing the cache mishandles newlines in values,
21244 # but we know of no workaround that is simple, portable, and efficient.
21245 # So, we kill variables containing newlines.
21246 # Ultrix sh set writes to stderr and can't be redirected directly,
21247 # and sets the high bit in the cache file unless we assign to the vars.
21249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21250 eval ac_val=\$$ac_var
21254 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21255 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21258 _ | IFS | as_nl) ;; #(
21259 *) $as_unset $ac_var ;;
21265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21266 *${as_nl}ac_space=\ *)
21267 # `set' does not quote correctly, so add quotes (double-quote
21268 # substitution turns \\\\ into \\, and sed turns \\ into \).
21271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21274 # `set' quotes correctly as required by POSIX, so do not add quotes.
21275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21289 if test -w "$cache_file"; then
21290 test "x$cache_file" != "x/dev/null" &&
21291 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21292 echo "$as_me: updating cache $cache_file" >&6;}
21293 cat confcache >$cache_file
21295 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21296 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21302 # Let make expand exec_prefix.
21303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21305 DEFS=-DHAVE_CONFIG_H
21309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21310 # 1. Remove the extension, and $U if already installed.
21311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21312 ac_i=`echo "$ac_i" | sed "$ac_script"`
21313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21314 # will be set to the directory where LIBOBJS objects are built.
21315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21318 LIBOBJS=$ac_libobjs
21320 LTLIBOBJS=$ac_ltlibobjs
21323 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21324 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&5
21326 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21327 Usually this means the macro was only invoked conditionally." >&2;}
21328 { (exit 1); exit 1; }; }
21330 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21331 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21332 Usually this means the macro was only invoked conditionally." >&5
21333 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21334 Usually this means the macro was only invoked conditionally." >&2;}
21335 { (exit 1); exit 1; }; }
21338 : ${CONFIG_STATUS=./config.status}
21339 ac_clean_files_save=$ac_clean_files
21340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21343 cat >$CONFIG_STATUS <<_ACEOF
21345 # Generated by $as_me.
21346 # Run this file to recreate the current configuration.
21347 # Compiler output produced by configure, useful for debugging
21348 # configure, is in config.log if it exists.
21351 ac_cs_recheck=false
21353 SHELL=\${CONFIG_SHELL-$SHELL}
21356 cat >>$CONFIG_STATUS <<\_ACEOF
21357 ## --------------------- ##
21358 ## M4sh Initialization. ##
21359 ## --------------------- ##
21361 # Be Bourne compatible
21362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21365 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21366 # is contrary to our usage. Disable this feature.
21367 alias -g '${1+"$@"}'='"$@"'
21368 setopt NO_GLOB_SUBST
21370 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21372 BIN_SH=xpg4; export BIN_SH # for Tru64
21373 DUALCASE=1; export DUALCASE # for MKS sh
21377 # Avoid depending upon Character Ranges.
21378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21381 as_cr_digits='0123456789'
21382 as_cr_alnum=$as_cr_Letters$as_cr_digits
21384 # The user is always right.
21385 if test "${PATH_SEPARATOR+set}" != set; then
21386 echo "#! /bin/sh" >conf$$.sh
21387 echo "exit 0" >>conf$$.sh
21389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21397 # Support unset when possible.
21398 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21406 # We need space, tab and new line, in precisely that order. Quoting is
21407 # there to prevent editors from complaining about space-tab.
21408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21409 # splitting by setting IFS to empty value.)
21414 # Find who we are. Look in the path if we contain no directory separator.
21416 *[\\/]* ) as_myself=$0 ;;
21417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21418 for as_dir in $PATH
21421 test -z "$as_dir" && as_dir=.
21422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21428 # We did not find ourselves, most probably we were run as `sh COMMAND'
21429 # in which case we are not to be found in the path.
21430 if test "x$as_myself" = x; then
21433 if test ! -f "$as_myself"; then
21434 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21435 { (exit 1); exit 1; }
21438 # Work around bugs in pre-3.0 UWIN ksh.
21439 for as_var in ENV MAIL MAILPATH
21440 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21448 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21449 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21450 LC_TELEPHONE LC_TIME
21452 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21453 eval $as_var=C; export $as_var
21455 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21459 # Required to use basename.
21460 if expr a : '\(a\)' >/dev/null 2>&1 &&
21461 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21467 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21468 as_basename=basename
21474 # Name of the executable.
21475 as_me=`$as_basename -- "$0" ||
21476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21477 X"$0" : 'X\(//\)$' \| \
21478 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21480 sed '/^.*\/\([^/][^/]*\)\/*$/{
21499 as_lineno_1=$LINENO
21500 as_lineno_2=$LINENO
21501 test "x$as_lineno_1" != "x$as_lineno_2" &&
21502 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21505 # uniformly replaced by the line number. The first 'sed' inserts a
21506 # line-number line after each line using $LINENO; the second 'sed'
21507 # does the real work. The second script uses 'N' to pair each
21508 # line-number line with the line containing $LINENO, and appends
21509 # trailing '-' during substitution so that $LINENO is not a special
21510 # case at line end.
21511 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21512 # scripts with optimization help from Paolo Bonzini. Blame Lee
21513 # E. McMahon (1931-1989) for sed's syntax. :-)
21525 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21528 ' >$as_me.lineno &&
21529 chmod +x "$as_me.lineno" ||
21530 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21531 { (exit 1); exit 1; }; }
21533 # Don't try to exec as it changes $[0], causing all sort of problems
21534 # (the dirname of $[0] is not the place where we might find the
21535 # original and so on. Autoconf is especially sensitive to this).
21536 . "./$as_me.lineno"
21537 # Exit status is that of the last command.
21542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21548 ECHO_C= ECHO_N= ECHO_T=
21549 case `echo -n x` in
21551 case `echo 'x\c'` in
21552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21559 if expr a : '\(a\)' >/dev/null 2>&1 &&
21560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21566 rm -f conf$$ conf$$.exe conf$$.file
21567 if test -d conf$$.dir; then
21568 rm -f conf$$.dir/conf$$.file
21574 if ln -s conf$$.file conf$$ 2>/dev/null; then
21576 # ... but there are two gotchas:
21577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21579 # In both cases, we have to default to `cp -p'.
21580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21582 elif ln conf$$.file conf$$ 2>/dev/null; then
21587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21588 rmdir conf$$.dir 2>/dev/null
21590 if mkdir -p . 2>/dev/null; then
21593 test -d ./-p && rmdir ./-p
21597 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21598 # systems may use methods other than mode bits to determine executability.
21599 cat >conf$$.file <<_ASEOF
21603 chmod +x conf$$.file
21604 if test -x conf$$.file >/dev/null 2>&1; then
21605 as_executable_p="test -x"
21611 # Sed expression to map a string onto a valid CPP name.
21612 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21614 # Sed expression to map a string onto a valid variable name.
21615 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21620 # Save the log message, to keep $[0] and so on meaningful, and to
21621 # report actual input values of CONFIG_FILES etc. instead of their
21622 # values after options handling.
21624 This file was extended by LLVM $as_me 3.2svn, which was
21625 generated by GNU Autoconf 2.60. Invocation command line was
21627 CONFIG_FILES = $CONFIG_FILES
21628 CONFIG_HEADERS = $CONFIG_HEADERS
21629 CONFIG_LINKS = $CONFIG_LINKS
21630 CONFIG_COMMANDS = $CONFIG_COMMANDS
21633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 # Files that config.status was made for.
21640 config_files="$ac_config_files"
21641 config_headers="$ac_config_headers"
21642 config_commands="$ac_config_commands"
21646 cat >>$CONFIG_STATUS <<\_ACEOF
21648 \`$as_me' instantiates files from templates according to the
21649 current configuration.
21651 Usage: $0 [OPTIONS] [FILE]...
21653 -h, --help print this help, then exit
21654 -V, --version print version number, then exit
21655 -q, --quiet do not print progress messages
21656 -d, --debug don't remove temporary files
21657 --recheck update $as_me by reconfiguring in the same conditions
21658 --file=FILE[:TEMPLATE]
21659 instantiate the configuration file FILE
21660 --header=FILE[:TEMPLATE]
21661 instantiate the configuration header FILE
21663 Configuration files:
21666 Configuration headers:
21669 Configuration commands:
21672 Report bugs to <bug-autoconf@gnu.org>."
21675 cat >>$CONFIG_STATUS <<_ACEOF
21677 LLVM config.status 3.2svn
21678 configured by $0, generated by GNU Autoconf 2.60,
21679 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21681 Copyright (C) 2006 Free Software Foundation, Inc.
21682 This config.status script is free software; the Free Software Foundation
21683 gives unlimited permission to copy, distribute and modify it."
21690 cat >>$CONFIG_STATUS <<\_ACEOF
21691 # If no file are specified by the user, then we need to provide default
21692 # value. By we need to know if files were specified by the user.
21698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21710 # Handling of the options.
21711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21714 echo "$ac_cs_version"; exit ;;
21715 --debug | --debu | --deb | --de | --d | -d )
21717 --file | --fil | --fi | --f )
21719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21720 ac_need_defaults=false;;
21721 --header | --heade | --head | --hea )
21723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21724 ac_need_defaults=false;;
21726 # Conflict between --help and --header
21727 { echo "$as_me: error: ambiguous option: $1
21728 Try \`$0 --help' for more information." >&2
21729 { (exit 1); exit 1; }; };;
21730 --help | --hel | -h )
21731 echo "$ac_cs_usage"; exit ;;
21732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21736 # This is an error.
21737 -*) { echo "$as_me: error: unrecognized option: $1
21738 Try \`$0 --help' for more information." >&2
21739 { (exit 1); exit 1; }; } ;;
21741 *) ac_config_targets="$ac_config_targets $1"
21742 ac_need_defaults=false ;;
21748 ac_configure_extra_args=
21750 if $ac_cs_silent; then
21752 ac_configure_extra_args="$ac_configure_extra_args --silent"
21756 cat >>$CONFIG_STATUS <<_ACEOF
21757 if \$ac_cs_recheck; then
21758 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21759 CONFIG_SHELL=$SHELL
21760 export CONFIG_SHELL
21761 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21770 ## Running $as_me. ##
21776 cat >>$CONFIG_STATUS <<_ACEOF
21780 llvm_src="${srcdir}"
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21786 # Handling of arguments.
21787 for ac_config_target in $ac_config_targets
21789 case $ac_config_target in
21790 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21791 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21792 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21793 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21794 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21795 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21796 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21797 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21798 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21799 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21800 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21801 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21802 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21803 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21805 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21806 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21807 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21808 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21809 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21810 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21811 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21812 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21813 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21814 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21815 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21816 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21820 { (exit 1); exit 1; }; };;
21825 # If the user did not use the arguments to specify the items to instantiate,
21826 # then the envvar interface is used. Set only those that are not.
21827 # We use the long form for the default assignment because of an extremely
21828 # bizarre bug on SunOS 4.1.3.
21829 if $ac_need_defaults; then
21830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21835 # Have a temporary directory for convenience. Make it in the build tree
21836 # simply because there is no reason against having it here, and in addition,
21837 # creating and moving files from /tmp can sometimes cause problems.
21838 # Hook for its removal unless debugging.
21839 # Note that there is a small window in which the directory will not be cleaned:
21840 # after its creation but before its name has been assigned to `$tmp'.
21844 trap 'exit_status=$?
21845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21847 trap '{ (exit 1); exit 1; }' 1 2 13 15
21849 # Create a (secure) tmp directory for tmp files.
21852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21853 test -n "$tmp" && test -d "$tmp"
21856 tmp=./conf$$-$RANDOM
21857 (umask 077 && mkdir "$tmp")
21860 echo "$me: cannot create a temporary directory in ." >&2
21861 { (exit 1); exit 1; }
21865 # Set up the sed scripts for CONFIG_FILES section.
21868 # No need to generate the scripts if there are no CONFIG_FILES.
21869 # This happens for instance when ./config.status config.h
21870 if test -n "$CONFIG_FILES"; then
21877 for ac_last_try in false false false false false :; do
21878 cat >conf$$subs.sed <<_ACEOF
21879 SHELL!$SHELL$ac_delim
21880 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21881 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21882 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21883 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21884 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21885 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21886 exec_prefix!$exec_prefix$ac_delim
21887 prefix!$prefix$ac_delim
21888 program_transform_name!$program_transform_name$ac_delim
21889 bindir!$bindir$ac_delim
21890 sbindir!$sbindir$ac_delim
21891 libexecdir!$libexecdir$ac_delim
21892 datarootdir!$datarootdir$ac_delim
21893 datadir!$datadir$ac_delim
21894 sysconfdir!$sysconfdir$ac_delim
21895 sharedstatedir!$sharedstatedir$ac_delim
21896 localstatedir!$localstatedir$ac_delim
21897 includedir!$includedir$ac_delim
21898 oldincludedir!$oldincludedir$ac_delim
21899 docdir!$docdir$ac_delim
21900 infodir!$infodir$ac_delim
21901 htmldir!$htmldir$ac_delim
21902 dvidir!$dvidir$ac_delim
21903 pdfdir!$pdfdir$ac_delim
21904 psdir!$psdir$ac_delim
21905 libdir!$libdir$ac_delim
21906 localedir!$localedir$ac_delim
21907 mandir!$mandir$ac_delim
21908 DEFS!$DEFS$ac_delim
21909 ECHO_C!$ECHO_C$ac_delim
21910 ECHO_N!$ECHO_N$ac_delim
21911 ECHO_T!$ECHO_T$ac_delim
21912 LIBS!$LIBS$ac_delim
21913 build_alias!$build_alias$ac_delim
21914 host_alias!$host_alias$ac_delim
21915 target_alias!$target_alias$ac_delim
21916 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21918 CFLAGS!$CFLAGS$ac_delim
21919 LDFLAGS!$LDFLAGS$ac_delim
21920 CPPFLAGS!$CPPFLAGS$ac_delim
21921 ac_ct_CC!$ac_ct_CC$ac_delim
21922 EXEEXT!$EXEEXT$ac_delim
21923 OBJEXT!$OBJEXT$ac_delim
21925 CXXFLAGS!$CXXFLAGS$ac_delim
21926 ac_ct_CXX!$ac_ct_CXX$ac_delim
21928 subdirs!$subdirs$ac_delim
21929 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21930 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21931 build!$build$ac_delim
21932 build_cpu!$build_cpu$ac_delim
21933 build_vendor!$build_vendor$ac_delim
21934 build_os!$build_os$ac_delim
21935 host!$host$ac_delim
21936 host_cpu!$host_cpu$ac_delim
21937 host_vendor!$host_vendor$ac_delim
21938 host_os!$host_os$ac_delim
21939 target!$target$ac_delim
21940 target_cpu!$target_cpu$ac_delim
21941 target_vendor!$target_vendor$ac_delim
21942 target_os!$target_os$ac_delim
21944 HOST_OS!$HOST_OS$ac_delim
21945 TARGET_OS!$TARGET_OS$ac_delim
21946 LINKALL!$LINKALL$ac_delim
21947 NOLINKALL!$NOLINKALL$ac_delim
21948 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21949 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21950 ARCH!$ARCH$ac_delim
21951 HOST_ARCH!$HOST_ARCH$ac_delim
21952 ENDIAN!$ENDIAN$ac_delim
21953 GREP!$GREP$ac_delim
21954 EGREP!$EGREP$ac_delim
21955 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21956 BUILD_CC!$BUILD_CC$ac_delim
21957 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21958 BUILD_CXX!$BUILD_CXX$ac_delim
21959 CVSBUILD!$CVSBUILD$ac_delim
21960 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21961 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21962 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21963 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21964 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21965 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21966 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21967 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21968 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21970 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21971 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21972 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21973 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21974 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21975 ENABLE_PIC!$ENABLE_PIC$ac_delim
21978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21980 elif $ac_last_try; then
21981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21982 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21983 { (exit 1); exit 1; }; }
21985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21989 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21990 if test -n "$ac_eof"; then
21991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21992 ac_eof=`expr $ac_eof + 1`
21995 cat >>$CONFIG_STATUS <<_ACEOF
21996 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22000 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22001 s/^/s,@/; s/!/@,|#_!!_#|/
22004 s/'"$ac_delim"'$/,g/; t
22006 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22007 ' >>$CONFIG_STATUS <conf$$subs.sed
22008 rm -f conf$$subs.sed
22009 cat >>$CONFIG_STATUS <<_ACEOF
22015 for ac_last_try in false false false false false :; do
22016 cat >conf$$subs.sed <<_ACEOF
22017 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22018 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22019 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22020 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22021 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22022 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22023 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22024 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22025 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22026 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22027 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22028 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22029 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22030 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22032 ifGNUmake!$ifGNUmake$ac_delim
22033 LN_S!$LN_S$ac_delim
22036 DATE!$DATE$ac_delim
22037 FIND!$FIND$ac_delim
22038 MKDIR!$MKDIR$ac_delim
22040 RANLIB!$RANLIB$ac_delim
22045 BINPWD!$BINPWD$ac_delim
22046 GRAPHVIZ!$GRAPHVIZ$ac_delim
22049 NEATO!$NEATO$ac_delim
22050 TWOPI!$TWOPI$ac_delim
22051 CIRCO!$CIRCO$ac_delim
22053 DOTTY!$DOTTY$ac_delim
22054 XDOT_PY!$XDOT_PY$ac_delim
22055 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22056 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22057 INSTALL_DATA!$INSTALL_DATA$ac_delim
22058 BZIP2!$BZIP2$ac_delim
22060 DOXYGEN!$DOXYGEN$ac_delim
22061 GROFF!$GROFF$ac_delim
22062 GZIPBIN!$GZIPBIN$ac_delim
22063 PDFROFF!$PDFROFF$ac_delim
22065 OCAMLC!$OCAMLC$ac_delim
22066 OCAMLOPT!$OCAMLOPT$ac_delim
22067 OCAMLDEP!$OCAMLDEP$ac_delim
22068 OCAMLDOC!$OCAMLDOC$ac_delim
22070 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22071 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22072 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22073 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22074 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22075 LIBADD_DL!$LIBADD_DL$ac_delim
22076 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22077 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22078 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22079 USE_UDIS86!$USE_UDIS86$ac_delim
22080 USE_OPROFILE!$USE_OPROFILE$ac_delim
22081 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22082 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22083 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22084 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22085 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22086 MMAP_FILE!$MMAP_FILE$ac_delim
22087 SHLIBEXT!$SHLIBEXT$ac_delim
22088 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22089 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22090 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22091 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22092 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22093 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22094 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22095 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22096 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22097 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22098 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22099 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22100 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22101 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22102 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22103 RPATH!$RPATH$ac_delim
22104 RDYNAMIC!$RDYNAMIC$ac_delim
22105 LIBOBJS!$LIBOBJS$ac_delim
22106 LTLIBOBJS!$LTLIBOBJS$ac_delim
22109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22111 elif $ac_last_try; then
22112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22113 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22114 { (exit 1); exit 1; }; }
22116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22120 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22121 if test -n "$ac_eof"; then
22122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22123 ac_eof=`expr $ac_eof + 1`
22126 cat >>$CONFIG_STATUS <<_ACEOF
22127 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22132 s/^/s,@/; s/!/@,|#_!!_#|/
22135 s/'"$ac_delim"'$/,g/; t
22137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22138 ' >>$CONFIG_STATUS <conf$$subs.sed
22139 rm -f conf$$subs.sed
22140 cat >>$CONFIG_STATUS <<_ACEOF
22147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22149 # trailing colons and then remove the whole line if VPATH becomes empty
22150 # (actually we leave an empty line to preserve line numbers).
22151 if test "x$srcdir" = x.; then
22152 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22153 s/:*\$(srcdir):*/:/
22154 s/:*\${srcdir}:*/:/
22156 s/^\([^=]*=[ ]*\):*/\1/
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 fi # test -n "$CONFIG_FILES"
22166 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22169 :[FHLC]) ac_mode=$ac_tag; continue;;
22171 case $ac_mode$ac_tag in
22173 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22174 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22175 { (exit 1); exit 1; }; };;
22176 :[FH]-) ac_tag=-:-;;
22177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22194 -) ac_f="$tmp/stdin";;
22195 *) # Look for the file first in the build tree, then in the source tree
22196 # (if the path is not absolute). The absolute path cannot be DOS-style,
22197 # because $ac_f cannot contain `:'.
22201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22203 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22204 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22205 { (exit 1); exit 1; }; };;
22207 ac_file_inputs="$ac_file_inputs $ac_f"
22210 # Let's still pretend it is `configure' which instantiates (i.e., don't
22211 # use $as_me), people would be surprised to read:
22212 # /* config.h. Generated by config.status. */
22213 configure_input="Generated from "`IFS=:
22214 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22215 if test x"$ac_file" != x-; then
22216 configure_input="$ac_file. $configure_input"
22217 { echo "$as_me:$LINENO: creating $ac_file" >&5
22218 echo "$as_me: creating $ac_file" >&6;}
22222 *:-:* | *:-) cat >"$tmp/stdin";;
22227 ac_dir=`$as_dirname -- "$ac_file" ||
22228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22229 X"$ac_file" : 'X\(//\)[^/]' \| \
22230 X"$ac_file" : 'X\(//\)$' \| \
22231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22237 /^X\(\/\/\)[^/].*/{
22252 -*) as_dir=./$as_dir;;
22254 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22258 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22259 *) as_qdir=$as_dir;;
22261 as_dirs="'$as_qdir' $as_dirs"
22262 as_dir=`$as_dirname -- "$as_dir" ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264 X"$as_dir" : 'X\(//\)[^/]' \| \
22265 X"$as_dir" : 'X\(//\)$' \| \
22266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22272 /^X\(\/\/\)[^/].*/{
22285 test -d "$as_dir" && break
22287 test -z "$as_dirs" || eval "mkdir $as_dirs"
22288 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22289 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22290 { (exit 1); exit 1; }; }; }
22294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22297 # A ".." for each directory in $ac_dir_suffix.
22298 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22299 case $ac_top_builddir_sub in
22300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22304 ac_abs_top_builddir=$ac_pwd
22305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22306 # for backward compatibility:
22307 ac_top_builddir=$ac_top_build_prefix
22310 .) # We are building in place.
22312 ac_top_srcdir=$ac_top_builddir_sub
22313 ac_abs_top_srcdir=$ac_pwd ;;
22314 [\\/]* | ?:[\\/]* ) # Absolute name.
22315 ac_srcdir=$srcdir$ac_dir_suffix;
22316 ac_top_srcdir=$srcdir
22317 ac_abs_top_srcdir=$srcdir ;;
22318 *) # Relative name.
22319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22320 ac_top_srcdir=$ac_top_build_prefix$srcdir
22321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22334 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22338 cat >>$CONFIG_STATUS <<\_ACEOF
22339 # If the template does not know about datarootdir, expand it.
22340 # FIXME: This hack should be removed a few years after 2.60.
22341 ac_datarootdir_hack=; ac_datarootdir_seen=
22343 case `sed -n '/datarootdir/ {
22352 ' $ac_file_inputs` in
22353 *datarootdir*) ac_datarootdir_seen=yes;;
22354 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22355 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22356 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22358 cat >>$CONFIG_STATUS <<_ACEOF
22359 ac_datarootdir_hack='
22360 s&@datadir@&$datadir&g
22361 s&@docdir@&$docdir&g
22362 s&@infodir@&$infodir&g
22363 s&@localedir@&$localedir&g
22364 s&@mandir@&$mandir&g
22365 s&\\\${datarootdir}&$datarootdir&g' ;;
22369 # Neutralize VPATH when `$srcdir' = `.'.
22370 # Shell code in configure.ac might set extrasub.
22371 # FIXME: do we really want to maintain this feature?
22372 cat >>$CONFIG_STATUS <<_ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22379 s&@configure_input@&$configure_input&;t t
22380 s&@top_builddir@&$ac_top_builddir_sub&;t t
22381 s&@srcdir@&$ac_srcdir&;t t
22382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22383 s&@top_srcdir@&$ac_top_srcdir&;t t
22384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22385 s&@builddir@&$ac_builddir&;t t
22386 s&@abs_builddir@&$ac_abs_builddir&;t t
22387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22388 s&@INSTALL@&$ac_INSTALL&;t t
22389 $ac_datarootdir_hack
22390 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22392 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22393 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22394 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22395 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22396 which seems to be undefined. Please make sure it is defined." >&5
22397 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22398 which seems to be undefined. Please make sure it is defined." >&2;}
22402 -) cat "$tmp/out"; rm -f "$tmp/out";;
22403 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22412 # Transform confdefs.h into a sed script `conftest.defines', that
22413 # substitutes the proper values into config.h.in to produce config.h.
22414 rm -f conftest.defines conftest.tail
22415 # First, append a space to every undef/define line, to ease matching.
22416 echo 's/$/ /' >conftest.defines
22417 # Then, protect against being on the right side of a sed subst, or in
22418 # an unquoted here document, in config.status. If some macros were
22419 # called several times there might be several #defines for the same
22420 # symbol, which is useless. But do not sort them, since the last
22421 # AC_DEFINE must be honored.
22422 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22423 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22424 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22425 # PARAMS is the parameter list in the macro definition--in most cases, it's
22426 # just an empty string.
22427 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22428 ac_dB='\\)[ (].*,\\1define\\2'
22436 s/^[ ]*#[ ]*define[ ][ ]*//
22441 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22442 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22443 ' >>conftest.defines
22445 # Remove the space that was appended to ease matching.
22446 # Then replace #undef with comments. This is necessary, for
22447 # example, in the case of _POSIX_SOURCE, which is predefined and required
22448 # on some systems where configure will not decide to define it.
22449 # (The regexp can be short, since the line contains either #define or #undef.)
22451 s,^[ #]*u.*,/* & */,' >>conftest.defines
22453 # Break up conftest.defines:
22454 ac_max_sed_lines=50
22456 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22457 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22458 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22460 ac_in='$ac_file_inputs'
22461 ac_out='"$tmp/out1"'
22462 ac_nxt='"$tmp/out2"'
22466 # Write a here document:
22467 cat >>$CONFIG_STATUS <<_ACEOF
22468 # First, check the format of the line:
22469 cat >"\$tmp/defines.sed" <<\\CEOF
22470 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22471 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22475 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22477 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22478 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22479 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22480 grep . conftest.tail >/dev/null || break
22481 rm -f conftest.defines
22482 mv conftest.tail conftest.defines
22484 rm -f conftest.defines conftest.tail
22486 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22487 cat >>$CONFIG_STATUS <<\_ACEOF
22488 if test x"$ac_file" != x-; then
22489 echo "/* $configure_input */" >"$tmp/config.h"
22490 cat "$ac_result" >>"$tmp/config.h"
22491 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22493 echo "$as_me: $ac_file is unchanged" >&6;}
22496 mv "$tmp/config.h" $ac_file
22499 echo "/* $configure_input */"
22505 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22506 echo "$as_me: executing $ac_file commands" >&6;}
22511 case $ac_file$ac_mode in
22512 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22514 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22516 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22518 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22520 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22522 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22524 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22526 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22528 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22530 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22532 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22534 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22536 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22543 { (exit 0); exit 0; }
22545 chmod +x $CONFIG_STATUS
22546 ac_clean_files=$ac_clean_files_save
22549 # configure is writing to config.log, and then calls config.status.
22550 # config.status does its own redirection, appending to config.log.
22551 # Unfortunately, on DOS this fails, as config.log is still kept open
22552 # by configure, so config.status won't be able to write to it; its
22553 # output is simply discarded. So we exec the FD to /dev/null,
22554 # effectively closing config.log, so it can be properly (re)opened and
22555 # appended to by config.status. When coming back to configure, we
22556 # need to make the FD available again.
22557 if test "$no_create" != yes; then
22559 ac_config_status_args=
22560 test "$silent" = yes &&
22561 ac_config_status_args="$ac_config_status_args --quiet"
22563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22566 # would make configure fail if this is the last instruction.
22567 $ac_cs_success || { (exit 1); exit 1; }
22571 # CONFIG_SUBDIRS section.
22573 if test "$no_recursion" != yes; then
22575 # Remove --cache-file and --srcdir arguments so they do not pile up.
22576 ac_sub_configure_args=
22578 eval "set x $ac_configure_args"
22582 if test -n "$ac_prev"; then
22587 -cache-file | --cache-file | --cache-fil | --cache-fi \
22588 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22589 ac_prev=cache_file ;;
22590 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22591 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22594 --config-cache | -C)
22596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22600 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22602 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22606 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22608 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22612 # Always prepend --prefix to ensure using the same prefix
22613 # in subdir configurations.
22614 ac_arg="--prefix=$prefix"
22616 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22618 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22621 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22623 # Do not complain, so a configure script can configure whichever
22624 # parts of a large source tree are present.
22625 test -d "$srcdir/$ac_dir" || continue
22627 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22628 echo "$as_me:$LINENO: $ac_msg" >&5
22632 -*) as_dir=./$as_dir;;
22634 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22638 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22639 *) as_qdir=$as_dir;;
22641 as_dirs="'$as_qdir' $as_dirs"
22642 as_dir=`$as_dirname -- "$as_dir" ||
22643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644 X"$as_dir" : 'X\(//\)[^/]' \| \
22645 X"$as_dir" : 'X\(//\)$' \| \
22646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22652 /^X\(\/\/\)[^/].*/{
22665 test -d "$as_dir" && break
22667 test -z "$as_dirs" || eval "mkdir $as_dirs"
22668 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22669 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22670 { (exit 1); exit 1; }; }; }
22674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22677 # A ".." for each directory in $ac_dir_suffix.
22678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22679 case $ac_top_builddir_sub in
22680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22684 ac_abs_top_builddir=$ac_pwd
22685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22686 # for backward compatibility:
22687 ac_top_builddir=$ac_top_build_prefix
22690 .) # We are building in place.
22692 ac_top_srcdir=$ac_top_builddir_sub
22693 ac_abs_top_srcdir=$ac_pwd ;;
22694 [\\/]* | ?:[\\/]* ) # Absolute name.
22695 ac_srcdir=$srcdir$ac_dir_suffix;
22696 ac_top_srcdir=$srcdir
22697 ac_abs_top_srcdir=$srcdir ;;
22698 *) # Relative name.
22699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22700 ac_top_srcdir=$ac_top_build_prefix$srcdir
22701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22708 # Check for guested configure; otherwise get Cygnus style configure.
22709 if test -f "$ac_srcdir/configure.gnu"; then
22710 ac_sub_configure=$ac_srcdir/configure.gnu
22711 elif test -f "$ac_srcdir/configure"; then
22712 ac_sub_configure=$ac_srcdir/configure
22713 elif test -f "$ac_srcdir/configure.in"; then
22714 # This should be Cygnus configure.
22715 ac_sub_configure=$ac_aux_dir/configure
22717 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22718 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22722 # The recursion is here.
22723 if test -n "$ac_sub_configure"; then
22724 # Make the cache file name correct relative to the subdirectory.
22725 case $cache_file in
22726 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22727 *) # Relative name.
22728 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22731 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22732 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22733 # The eval makes quoting arguments work.
22734 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22735 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22736 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22737 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22738 { (exit 1); exit 1; }; }