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
692 ENABLE_EXPENSIVE_CHECKS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/llvm-gcc
814 projects/llvm-poolalloc
817 projects/llvm-stacker
825 # Initialize some variables set by options.
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
1208 # Be sure to have absolute directory names.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-polly Use polly if available (default is YES)
1399 --enable-libcpp Use libc++ if available (default is NO)
1400 --enable-cxx11 Use c++11 if available (default is NO)
1401 --enable-optimized Compile with optimizations enabled (default is NO)
1402 --enable-profiling Compile with profiling enabled (default is NO)
1403 --enable-assertions Compile with assertion checks enabled (default is
1405 --enable-werror Compile with -Werror enabled (default is NO)
1406 --enable-expensive-checks
1407 Compile with expensive debug checks enabled (default
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
1413 --enable-keep-symbols Do not strip installed executables)
1414 --enable-jit Enable Just In Time Compiling (default is YES)
1415 --enable-docs Build documents (default is YES)
1416 --enable-doxygen Build doxygen documentation (default is NO)
1417 --enable-threads Use threads if available (default is YES)
1418 --enable-pthreads Use pthreads if available (default is YES)
1419 --enable-pic Build LLVM with Position Independent Code (default
1421 --enable-shared Build a shared library and link tools against it
1423 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1424 Win32 DLL (default is NO)
1425 --enable-timestamps Enable embedding timestamp information in build
1427 --enable-backtraces Enable embedding backtraces on crash (default is
1429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1432 xcore, msp430, nvptx, and cpp (default=all)
1433 --enable-experimental-targets
1434 Build experimental host targets: disable or
1435 target1,target2,... (default=disable)
1436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
1438 --enable-libffi Check for the presence of libffi (default is NO)
1439 --enable-ltdl-install install libltdl
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-optimize-option Select the compiler options to use for optimized
1446 --with-extra-options Specify additional options to compile LLVM with
1447 --with-extra-ld-options Specify additional options to link LLVM with
1448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1450 --with-clang-srcdir Directory to the out-of-tree Clang source
1451 --with-clang-resource-dir
1452 Relative directory from the Clang binary for
1454 --with-c-include-dirs Colon separated list of directories clang will
1456 --with-gcc-toolchain Directory where gcc is installed.
1457 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
1460 --with-bug-report-url Specify the URL where bug reports should be
1461 submitted (default=http://llvm.org/bugs/)
1462 --with-internal-prefix Installation directory for internal files
1463 --with-udis86=<path> Use udis86 external x86 disassembler library
1464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
1466 --with-intel-jitevents=<vtune-amplifier-dir>
1467 Specify location of run-time support library for
1469 (default=/opt/intel/vtune_amplifier_xe_2011)
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to <http://llvm.org/bugs/>.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" || continue
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1546 LLVM configure 3.2svn
1547 generated by GNU Autoconf 2.60
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1554 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1562 It was created by LLVM $as_me 3.2svn, which was
1563 generated by GNU Autoconf 2.60. Invocation command line was
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 echo "PATH: $as_dir"
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_must_keep_next=false
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 -* ) ac_must_keep_next=true ;;
1655 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log. We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1679 # The following way of writing the cache mishandles newlines in values,
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690 _ | IFS | as_nl) ;; #(
1691 *) $as_unset $ac_var ;;
1696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
1699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1716 for ac_var in $ac_subst_vars
1718 eval ac_val=\$$ac_var
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 echo "$ac_var='\''$ac_val'\''"
1726 if test -n "$ac_subst_files"; then
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1733 for ac_var in $ac_subst_files
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1744 if test -s confdefs.h; then
1754 test "$ac_signal" != 0 &&
1755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
1758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1770 # Predefined preprocessor variables.
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800 set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
1810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813 sed 's/^/| /' "$ac_site_file" >&5
1818 if test -r "$cache_file"; then
1819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
1830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1835 # Check that the precious variables saved in the cache have kept the same
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
1841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
1843 case $ac_old_set,$ac_new_set in
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
1855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858 echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860 echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 *) ac_arg=$ac_var=$ac_new_val ;;
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876 if $ac_cache_corrupted; then
1877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MAJOR 3
1921 cat >>confdefs.h <<\_ACEOF
1922 #define LLVM_VERSION_MINOR 2
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2014 { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in clang llvm-gcc gcc
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$ac_ct_CC" && break
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2157 for ac_file in $ac_files
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2166 if { (ac_try="$ac_link_default"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2181 for ac_file in $ac_files
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188 # We found the default executable, but exeext='' is most
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2223 # Check that the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2446 cat >conftest.$ac_ext <<_ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_c89=no
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2671 s = g (p, va_arg (v,int));
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 rm -f conftest.$ac_ext
2758 case "x$ac_cv_prog_cc_c89" in
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2827 test -n "$CXX" && break
2830 if test -z "$CXX"; then
2832 for ac_prog in clang++ llvm-g++ g++
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2871 test -n "$ac_ct_CXX" && break
2874 if test "x$ac_ct_CXX" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3198 if test "$GXX" = yes; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3328 rm -f conftest.err conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 if test -d ${srcdir}/projects/llvm-gcc ; then
3472 subdirs="$subdirs projects/llvm-gcc"
3476 if test -d ${srcdir}/projects/test-suite ; then
3477 subdirs="$subdirs projects/test-suite"
3481 if test -d ${srcdir}/projects/llvm-test ; then
3482 subdirs="$subdirs projects/llvm-test"
3486 if test -d ${srcdir}/projects/poolalloc ; then
3487 subdirs="$subdirs projects/poolalloc"
3491 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3492 subdirs="$subdirs projects/llvm-poolalloc"
3496 for i in `ls ${srcdir}/projects`
3498 if test -d ${srcdir}/projects/${i} ; then
3500 sample) subdirs="$subdirs projects/sample"
3502 privbracket) subdirs="$subdirs projects/privbracket"
3504 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3506 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3508 llvm-java) subdirs="$subdirs projects/llvm-java"
3510 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3512 safecode) subdirs="$subdirs projects/safecode"
3514 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3523 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3524 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3530 # Check whether --enable-polly was given.
3531 if test "${enable_polly+set}" = set; then
3532 enableval=$enable_polly;
3537 case "$enableval" in
3542 default) ENABLE_POLLY=1
3544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3545 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3546 { (exit 1); exit 1; }; } ;;
3550 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3553 subdirs="$subdirs tools/polly"
3558 # Make sure we can run config.sub.
3559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3561 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3562 { (exit 1); exit 1; }; }
3564 { echo "$as_me:$LINENO: checking build system type" >&5
3565 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3566 if test "${ac_cv_build+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_build_alias=$build_alias
3570 test "x$ac_build_alias" = x &&
3571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3572 test "x$ac_build_alias" = x &&
3573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3574 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3575 { (exit 1); exit 1; }; }
3576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3577 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3578 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3579 { (exit 1); exit 1; }; }
3582 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3583 echo "${ECHO_T}$ac_cv_build" >&6; }
3584 case $ac_cv_build in
3586 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3587 echo "$as_me: error: invalid value of canonical build" >&2;}
3588 { (exit 1); exit 1; }; };;
3591 ac_save_IFS=$IFS; IFS='-'
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3604 { echo "$as_me:$LINENO: checking host system type" >&5
3605 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3606 if test "${ac_cv_host+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3614 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3615 { (exit 1); exit 1; }; }
3619 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3620 echo "${ECHO_T}$ac_cv_host" >&6; }
3623 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3624 echo "$as_me: error: invalid value of canonical host" >&2;}
3625 { (exit 1); exit 1; }; };;
3628 ac_save_IFS=$IFS; IFS='-'
3634 # Remember, the first character of IFS is used to create $*,
3635 # except with old shells:
3638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3641 { echo "$as_me:$LINENO: checking target system type" >&5
3642 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3643 if test "${ac_cv_target+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 if test "x$target_alias" = x; then
3647 ac_cv_target=$ac_cv_host
3649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3650 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3651 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3652 { (exit 1); exit 1; }; }
3656 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3657 echo "${ECHO_T}$ac_cv_target" >&6; }
3658 case $ac_cv_target in
3660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3661 echo "$as_me: error: invalid value of canonical target" >&2;}
3662 { (exit 1); exit 1; }; };;
3664 target=$ac_cv_target
3665 ac_save_IFS=$IFS; IFS='-'
3671 # Remember, the first character of IFS is used to create $*,
3672 # except with old shells:
3675 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3678 # The aliases save the names the user supplied, while $host etc.
3679 # will get canonicalized.
3680 test -n "$target_alias" &&
3681 test "$program_prefix$program_suffix$program_transform_name" = \
3683 program_prefix=${target_alias}-
3685 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3686 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3687 if test "${llvm_cv_os_type+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="AIX"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="IRIX"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Cygwin"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Darwin"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Minix"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-freebsd* | *-*-kfreebsd-gnu)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="FreeBSD"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="OpenBSD"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="NetBSD"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="DragonFly"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="HP-UX"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Interix"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Linux"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="GNU"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="SunOS"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="AuroraUX"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Win32"
3770 llvm_cv_platform_type="Win32" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="MingW"
3775 llvm_cv_platform_type="Win32" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Haiku"
3780 llvm_cv_platform_type="Unix" ;;
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3792 llvm_cv_link_all_option=""
3793 llvm_cv_no_link_all_option=""
3794 llvm_cv_os_type="Unknown"
3795 llvm_cv_platform_type="Unknown" ;;
3798 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3799 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3802 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3803 if test "${llvm_cv_target_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 llvm_cv_target_os_type="AIX" ;;
3810 llvm_cv_target_os_type="IRIX" ;;
3812 llvm_cv_target_os_type="Cygwin" ;;
3814 llvm_cv_target_os_type="Darwin" ;;
3816 llvm_cv_target_os_type="Minix" ;;
3817 *-*-freebsd* | *-*-kfreebsd-gnu)
3818 llvm_cv_target_os_type="FreeBSD" ;;
3820 llvm_cv_target_os_type="OpenBSD" ;;
3822 llvm_cv_target_os_type="NetBSD" ;;
3824 llvm_cv_target_os_type="DragonFly" ;;
3826 llvm_cv_target_os_type="HP-UX" ;;
3828 llvm_cv_target_os_type="Interix" ;;
3830 llvm_cv_target_os_type="Linux" ;;
3832 llvm_cv_target_os_type="GNU" ;;
3834 llvm_cv_target_os_type="SunOS" ;;
3836 llvm_cv_target_os_type="AuroraUX" ;;
3838 llvm_cv_target_os_type="Win32" ;;
3840 llvm_cv_target_os_type="MingW" ;;
3842 llvm_cv_target_os_type="Haiku" ;;
3844 llvm_cv_target_os_type="RTEMS" ;;
3846 llvm_cv_target_os_type="NativeClient" ;;
3848 llvm_cv_target_os_type="Freestanding" ;;
3850 llvm_cv_target_os_type="Unknown" ;;
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3854 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3856 if test "$llvm_cv_os_type" = "Unknown" ; then
3857 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3858 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3859 { (exit 1); exit 1; }; }
3864 HOST_OS=$llvm_cv_os_type
3866 TARGET_OS=$llvm_cv_target_os_type
3869 LINKALL=$llvm_cv_link_all_option
3871 NOLINKALL=$llvm_cv_no_link_all_option
3874 case $llvm_cv_platform_type in
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_UNIX 1
3888 cat >>confdefs.h <<\_ACEOF
3889 #define LLVM_ON_WIN32 1
3899 { echo "$as_me:$LINENO: checking target architecture" >&5
3900 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_arch+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 i?86-*) llvm_cv_target_arch="x86" ;;
3906 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3907 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3908 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3909 arm*-*) llvm_cv_target_arch="ARM" ;;
3910 mips-*) llvm_cv_target_arch="Mips" ;;
3911 mipsel-*) llvm_cv_target_arch="Mips" ;;
3912 xcore-*) llvm_cv_target_arch="XCore" ;;
3913 msp430-*) llvm_cv_target_arch="MSP430" ;;
3914 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3915 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3916 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3917 *) llvm_cv_target_arch="Unknown" ;;
3920 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3921 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3923 if test "$llvm_cv_target_arch" = "Unknown" ; then
3924 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3925 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3928 case "$llvm_cv_target_arch" in
3929 x86) LLVM_NATIVE_ARCH="X86" ;;
3930 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3931 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3934 ARCH=$llvm_cv_target_arch
3938 i?86-*) host_arch="x86" ;;
3939 amd64-* | x86_64-*) host_arch="x86_64" ;;
3940 sparc*-*) host_arch="Sparc" ;;
3941 powerpc*-*) host_arch="PowerPC" ;;
3942 arm*-*) host_arch="ARM" ;;
3943 mips-*) host_arch="Mips" ;;
3944 mipsel-*) host_arch="Mips" ;;
3945 xcore-*) host_arch="XCore" ;;
3946 msp430-*) host_arch="MSP430" ;;
3947 hexagon-*) host_arch="Hexagon" ;;
3948 mblaze-*) host_arch="MBlaze" ;;
3949 *) host_arch="Unknown" ;;
3952 if test "$host_arch" = "Unknown" ; then
3953 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3954 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3957 HOST_ARCH=$host_arch
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_GREP_found && break 3
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4031 ac_cv_path_GREP=$GREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038 GREP="$ac_cv_path_GREP"
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4049 # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 $ac_path_EGREP_found && break 3
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4113 ac_cv_path_EGREP=$EGREP
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4124 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_header_stdc=yes
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_header_stdc=no
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "memchr" >/dev/null 2>&1; then
4207 ac_cv_header_stdc=no
4213 if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "free" >/dev/null 2>&1; then
4228 ac_cv_header_stdc=no
4234 if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4236 if test "$cross_compiling" = yes; then
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 #if ((' ' & 0x0FF) == 0x020)
4248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4251 # define ISLOWER(c) \
4252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
4255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
4265 || toupper (i) != TOUPPER (i))
4270 rm -f conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4292 echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_header_stdc=no
4299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4307 if test $ac_cv_header_stdc = yes; then
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4342 #include <$ac_header>
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 eval "$as_ac_Header=yes"
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 eval "$as_ac_Header=no"
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_res=`eval echo '${'$as_ac_Header'}'`
4389 { echo "$as_me:$LINENO: result: $ac_res" >&5
4390 echo "${ECHO_T}$ac_res" >&6; }
4391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4392 cat >>confdefs.h <<_ACEOF
4393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4403 if test "${ac_cv_c_bigendian+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # See if sys/param.h defines the BYTE_ORDER macro.
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4414 #include <sys/param.h>
4419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 # It does; now see whether it defined to BIG_ENDIAN or not.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4474 #if BYTE_ORDER != BIG_ENDIAN
4482 rm -f conftest.$ac_objext
4483 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_try") 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_c_bigendian=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_cv_c_bigendian=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 # It does not; compile a test program.
4530 if test "$cross_compiling" = yes; then
4531 # try to guess the endianness by grepping values into an object file
4532 ac_cv_c_bigendian=unknown
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4542 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4544 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4548 _ascii (); _ebcdic ();
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4562 grep -v '^ *+' conftest.er1 >conftest.err
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4588 ac_cv_c_bigendian=yes
4590 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4591 if test "$ac_cv_c_bigendian" = unknown; then
4592 ac_cv_c_bigendian=no
4594 # finding both strings is unlikely to happen, but who knows?
4595 ac_cv_c_bigendian=unknown
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4618 /* Are we little or big endian? From Harbison&Steele. */
4622 char c[sizeof (long int)];
4625 return u.c[sizeof (long int) - 1] == 1;
4631 rm -f conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_c_bigendian=no
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_cv_c_bigendian=yes
4660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4669 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4670 case $ac_cv_c_bigendian in
4678 { { echo "$as_me:$LINENO: error: unknown endianness
4679 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4680 echo "$as_me: error: unknown endianness
4681 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4686 if test "$cross_compiling" = yes; then
4687 LLVM_CROSS_COMPILING=1
4690 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4691 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4692 if test "${ac_cv_build_exeext+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4696 ac_cv_build_exeext=.exe
4698 ac_build_prefix=${build_alias}-
4700 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4701 set dummy ${ac_build_prefix}gcc; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 if test -n "$BUILD_CC"; then
4708 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 BUILD_CC=$ac_cv_prog_BUILD_CC
4728 if test -n "$BUILD_CC"; then
4729 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4730 echo "${ECHO_T}$BUILD_CC" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 if test -z "$BUILD_CC"; then
4738 # Extract the first word of "gcc", so it can be a program name with args.
4739 set dummy gcc; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$BUILD_CC"; then
4746 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_BUILD_CC="gcc"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 BUILD_CC=$ac_cv_prog_BUILD_CC
4766 if test -n "$BUILD_CC"; then
4767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 if test -z "$BUILD_CC"; then
4776 # Extract the first word of "cc", so it can be a program name with args.
4777 set dummy cc; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$BUILD_CC"; then
4784 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4795 ac_prog_rejected=yes
4798 ac_cv_prog_BUILD_CC="cc"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 if test $ac_prog_rejected = yes; then
4807 # We found a bogon in the path, so make sure we never use it.
4808 set dummy $ac_cv_prog_BUILD_CC
4810 if test $# != 0; then
4811 # We chose a different compiler from the bogus one.
4812 # However, it has the same basename, so the bogon will be chosen
4813 # first if we set BUILD_CC to just the basename; use the full file name.
4815 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4820 BUILD_CC=$ac_cv_prog_BUILD_CC
4821 if test -n "$BUILD_CC"; then
4822 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4823 echo "${ECHO_T}$BUILD_CC" >&6; }
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4832 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4833 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4834 { (exit 1); exit 1; }; }
4835 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4837 echo 'int main () { return 0; }' > conftest.$ac_ext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4840 (eval $ac_build_link) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
4844 for file in conftest.*; do
4846 *.c | *.o | *.obj | *.dSYM) ;;
4847 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4851 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4852 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4853 { (exit 1); exit 1; }; }
4856 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4861 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4862 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4863 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4864 ac_build_exeext=$BUILD_EXEEXT
4866 ac_build_prefix=${build_alias}-
4867 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4868 set dummy ${ac_build_prefix}g++; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$BUILD_CXX"; then
4875 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4895 if test -n "$BUILD_CXX"; then
4896 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4897 echo "${ECHO_T}$BUILD_CXX" >&6; }
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4904 if test -z "$BUILD_CXX"; then
4905 # Extract the first word of "g++", so it can be a program name with args.
4906 set dummy g++; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$BUILD_CXX"; then
4913 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_BUILD_CXX="g++"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933 if test -n "$BUILD_CXX"; then
4934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 if test -z "$BUILD_CXX"; then
4943 # Extract the first word of "c++", so it can be a program name with args.
4944 set dummy c++; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$BUILD_CXX"; then
4951 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4962 ac_prog_rejected=yes
4965 ac_cv_prog_BUILD_CXX="c++"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_BUILD_CXX
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set BUILD_CXX to just the basename; use the full file name.
4982 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4987 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4988 if test -n "$BUILD_CXX"; then
4989 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4990 echo "${ECHO_T}$BUILD_CXX" >&6; }
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
5000 LLVM_CROSS_COMPILING=0
5004 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5015 # Check whether --enable-libcpp was given.
5016 if test "${enable_libcpp+set}" = set; then
5017 enableval=$enable_libcpp;
5022 case "$enableval" in
5023 yes) ENABLE_LIBCPP=1
5027 default) ENABLE_LIBCPP=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-cxx11 was given.
5035 if test "${enable_cxx11+set}" = set; then
5036 enableval=$enable_cxx11;
5041 case "$enableval" in
5046 default) ENABLE_CXX11=0
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5049 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5053 # Check whether --enable-optimized was given.
5054 if test "${enable_optimized+set}" = set; then
5055 enableval=$enable_optimized;
5060 if test ${enableval} = "no" ; then
5064 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5068 # Check whether --enable-profiling was given.
5069 if test "${enable_profiling+set}" = set; then
5070 enableval=$enable_profiling;
5075 if test ${enableval} = "no" ; then
5079 ENABLE_PROFILING=ENABLE_PROFILING=1
5083 # Check whether --enable-assertions was given.
5084 if test "${enable_assertions+set}" = set; then
5085 enableval=$enable_assertions;
5090 if test ${enableval} = "yes" ; then
5094 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5098 # Check whether --enable-werror was given.
5099 if test "${enable_werror+set}" = set; then
5100 enableval=$enable_werror;
5105 case "$enableval" in
5106 yes) ENABLE_WERROR=1
5110 default) ENABLE_WERROR=0
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-expensive-checks was given.
5118 if test "${enable_expensive_checks+set}" = set; then
5119 enableval=$enable_expensive_checks;
5124 if test ${enableval} = "yes" ; then
5125 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5127 EXPENSIVE_CHECKS=yes
5130 ENABLE_EXPENSIVE_CHECKS=
5136 # Check whether --enable-debug-runtime was given.
5137 if test "${enable_debug_runtime+set}" = set; then
5138 enableval=$enable_debug_runtime;
5143 if test ${enableval} = "no" ; then
5147 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5151 # Check whether --enable-debug-symbols was given.
5152 if test "${enable_debug_symbols+set}" = set; then
5153 enableval=$enable_debug_symbols;
5158 if test ${enableval} = "no" ; then
5162 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5166 # Check whether --enable-keep-symbols was given.
5167 if test "${enable_keep_symbols+set}" = set; then
5168 enableval=$enable_keep_symbols;
5173 if test ${enableval} = "no" ; then
5177 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5181 # Check whether --enable-jit was given.
5182 if test "${enable_jit+set}" = set; then
5183 enableval=$enable_jit;
5188 if test ${enableval} = "no"
5193 case "$llvm_cv_target_arch" in
5194 x86) TARGET_HAS_JIT=1
5196 Sparc) TARGET_HAS_JIT=0
5198 PowerPC) TARGET_HAS_JIT=1
5200 x86_64) TARGET_HAS_JIT=1
5202 ARM) TARGET_HAS_JIT=1
5204 Mips) TARGET_HAS_JIT=1
5206 XCore) TARGET_HAS_JIT=0
5208 MSP430) TARGET_HAS_JIT=0
5210 Hexagon) TARGET_HAS_JIT=0
5212 MBlaze) TARGET_HAS_JIT=0
5214 NVPTX) TARGET_HAS_JIT=0
5221 # Check whether --enable-docs was given.
5222 if test "${enable_docs+set}" = set; then
5223 enableval=$enable_docs;
5228 case "$enableval" in
5233 default) ENABLE_DOCS=1
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5240 # Check whether --enable-doxygen was given.
5241 if test "${enable_doxygen+set}" = set; then
5242 enableval=$enable_doxygen;
5247 case "$enableval" in
5248 yes) ENABLE_DOXYGEN=1
5250 no) ENABLE_DOXYGEN=0
5252 default) ENABLE_DOXYGEN=0
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5259 # Check whether --enable-threads was given.
5260 if test "${enable_threads+set}" = set; then
5261 enableval=$enable_threads;
5266 case "$enableval" in
5267 yes) LLVM_ENABLE_THREADS=1
5269 no) LLVM_ENABLE_THREADS=0
5271 default) LLVM_ENABLE_THREADS=1
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 cat >>confdefs.h <<_ACEOF
5279 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5283 # Check whether --enable-pthreads was given.
5284 if test "${enable_pthreads+set}" = set; then
5285 enableval=$enable_pthreads;
5290 case "$enableval" in
5291 yes) ENABLE_PTHREADS=1
5293 no) ENABLE_PTHREADS=0
5295 default) ENABLE_PTHREADS=1
5297 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5298 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5302 # Check whether --enable-pic was given.
5303 if test "${enable_pic+set}" = set; then
5304 enableval=$enable_pic;
5309 case "$enableval" in
5314 default) ENABLE_PIC=1
5316 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5317 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5318 { (exit 1); exit 1; }; } ;;
5321 cat >>confdefs.h <<_ACEOF
5322 #define ENABLE_PIC $ENABLE_PIC
5326 # Check whether --enable-shared was given.
5327 if test "${enable_shared+set}" = set; then
5328 enableval=$enable_shared;
5333 case "$enableval" in
5334 yes) ENABLE_SHARED=1
5338 default) ENABLE_SHARED=0
5340 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5341 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5345 # Check whether --enable-embed-stdcxx was given.
5346 if test "${enable_embed_stdcxx+set}" = set; then
5347 enableval=$enable_embed_stdcxx;
5352 case "$enableval" in
5353 yes) ENABLE_EMBED_STDCXX=1
5355 no) ENABLE_EMBED_STDCXX=0
5357 default) ENABLE_EMBED_STDCXX=0
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5360 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5364 # Check whether --enable-timestamps was given.
5365 if test "${enable_timestamps+set}" = set; then
5366 enableval=$enable_timestamps;
5371 case "$enableval" in
5372 yes) ENABLE_TIMESTAMPS=1
5374 no) ENABLE_TIMESTAMPS=0
5376 default) ENABLE_TIMESTAMPS=1
5378 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5379 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5380 { (exit 1); exit 1; }; } ;;
5383 cat >>confdefs.h <<_ACEOF
5384 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5389 # Check whether --enable-backtraces was given.
5390 if test "${enable_backtraces+set}" = set; then
5391 enableval=$enable_backtraces;
5396 case "$enableval" in
5397 yes) ENABLE_TIMESTAMPS=1
5399 no) ENABLE_TIMESTAMPS=0
5401 default) ENABLE_TIMESTAMPS=1
5403 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5404 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5405 { (exit 1); exit 1; }; } ;;
5408 cat >>confdefs.h <<_ACEOF
5409 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5414 # Check whether --enable-targets was given.
5415 if test "${enable_targets+set}" = set; then
5416 enableval=$enable_targets;
5421 if test "$enableval" = host-only ; then
5424 case "$enableval" in
5425 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5426 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5428 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5430 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5431 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5432 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5433 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5435 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5436 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5437 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5438 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5439 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5440 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5441 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5442 host) case "$llvm_cv_target_arch" in
5443 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5445 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5446 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5447 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5448 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5449 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5450 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5451 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5452 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5453 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5454 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5455 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5456 echo "$as_me: error: Can not set target to build" >&2;}
5457 { (exit 1); exit 1; }; } ;;
5459 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5460 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5467 # Check whether --enable-experimental-targets was given.
5468 if test "${enable_experimental_targets+set}" = set; then
5469 enableval=$enable_experimental_targets;
5475 if test ${enableval} != "disable"
5477 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5480 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5483 for a_target in $TARGETS_TO_BUILD; do
5484 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5490 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5491 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5492 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5493 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5494 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5495 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5497 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5498 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5506 cat >>confdefs.h <<_ACEOF
5507 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5516 cat >>confdefs.h <<_ACEOF
5517 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5520 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5522 cat >>confdefs.h <<_ACEOF
5523 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5527 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5529 cat >>confdefs.h <<_ACEOF
5530 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5537 LLVM_ENUM_TARGETS=""
5538 LLVM_ENUM_ASM_PRINTERS=""
5539 LLVM_ENUM_ASM_PARSERS=""
5540 LLVM_ENUM_DISASSEMBLERS=""
5541 for target_to_build in $TARGETS_TO_BUILD; do
5542 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5543 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5544 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5546 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5547 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5549 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5550 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5559 # Check whether --with-optimize-option was given.
5560 if test "${with_optimize_option+set}" = set; then
5561 withval=$with_optimize_option;
5566 { echo "$as_me:$LINENO: checking optimization flags" >&5
5567 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5570 case "$llvm_cv_os_type" in
5571 FreeBSD) optimize_option=-O2 ;;
5572 MingW) optimize_option=-O2 ;;
5573 *) optimize_option=-O3 ;;
5575 *) optimize_option="$withval" ;;
5577 OPTIMIZE_OPTION=$optimize_option
5579 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5580 echo "${ECHO_T}$optimize_option" >&6; }
5583 # Check whether --with-extra-options was given.
5584 if test "${with_extra_options+set}" = set; then
5585 withval=$with_extra_options;
5591 default) EXTRA_OPTIONS= ;;
5592 *) EXTRA_OPTIONS=$withval ;;
5594 EXTRA_OPTIONS=$EXTRA_OPTIONS
5598 # Check whether --with-extra-ld-options was given.
5599 if test "${with_extra_ld_options+set}" = set; then
5600 withval=$with_extra_ld_options;
5606 default) EXTRA_LD_OPTIONS= ;;
5607 *) EXTRA_LD_OPTIONS=$withval ;;
5609 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5612 # Check whether --enable-bindings was given.
5613 if test "${enable_bindings+set}" = set; then
5614 enableval=$enable_bindings;
5619 BINDINGS_TO_BUILD=""
5620 case "$enableval" in
5621 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5622 all ) BINDINGS_TO_BUILD="ocaml" ;;
5623 none | no) BINDINGS_TO_BUILD="" ;;
5624 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5625 case "$a_binding" in
5626 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5627 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5628 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5629 { (exit 1); exit 1; }; } ;;
5636 # Check whether --with-ocaml-libdir was given.
5637 if test "${with_ocaml_libdir+set}" = set; then
5638 withval=$with_ocaml_libdir;
5644 auto) with_ocaml_libdir="$withval" ;;
5645 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5646 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5647 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5648 { (exit 1); exit 1; }; } ;;
5652 # Check whether --with-clang-srcdir was given.
5653 if test "${with_clang_srcdir+set}" = set; then
5654 withval=$with_clang_srcdir;
5660 -) clang_src_root="" ;;
5661 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5662 *) clang_src_root="$ac_pwd/$withval" ;;
5664 CLANG_SRC_ROOT=$clang_src_root
5668 # Check whether --with-clang-resource-dir was given.
5669 if test "${with_clang_resource_dir+set}" = set; then
5670 withval=$with_clang_resource_dir;
5676 cat >>confdefs.h <<_ACEOF
5677 #define CLANG_RESOURCE_DIR "$withval"
5682 # Check whether --with-c-include-dirs was given.
5683 if test "${with_c_include_dirs+set}" = set; then
5684 withval=$with_c_include_dirs;
5690 cat >>confdefs.h <<_ACEOF
5691 #define C_INCLUDE_DIRS "$withval"
5695 # Clang normally uses the system c++ headers and libraries. With this option,
5696 # clang will use the ones provided by a gcc installation instead. This option should
5697 # be passed the same value that was used with --prefix when configuring gcc.
5699 # Check whether --with-gcc-toolchain was given.
5700 if test "${with_gcc_toolchain+set}" = set; then
5701 withval=$with_gcc_toolchain;
5707 cat >>confdefs.h <<_ACEOF
5708 #define GCC_INSTALL_PREFIX "$withval"
5713 # Check whether --with-default-sysroot was given.
5714 if test "${with_default_sysroot+set}" = set; then
5715 withval=$with_default_sysroot;
5721 cat >>confdefs.h <<_ACEOF
5722 #define DEFAULT_SYSROOT "$withval"
5727 # Check whether --with-binutils-include was given.
5728 if test "${with_binutils_include+set}" = set; then
5729 withval=$with_binutils_include;
5735 default) WITH_BINUTILS_INCDIR=default ;;
5736 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5737 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5738 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5739 { (exit 1); exit 1; }; } ;;
5741 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5742 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5744 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5745 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5746 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5747 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5748 { (exit 1); exit 1; }; };
5753 # Check whether --with-bug-report-url was given.
5754 if test "${with_bug_report_url+set}" = set; then
5755 withval=$with_bug_report_url;
5757 withval="http://llvm.org/bugs/"
5761 cat >>confdefs.h <<_ACEOF
5762 #define BUG_REPORT_URL "$withval"
5766 # Check whether --enable-libffi was given.
5767 if test "${enable_libffi+set}" = set; then
5768 enableval=$enable_libffi; case "$enableval" in
5769 yes) llvm_cv_enable_libffi="yes" ;;
5770 no) llvm_cv_enable_libffi="no" ;;
5771 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5772 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5773 { (exit 1); exit 1; }; } ;;
5776 llvm_cv_enable_libffi=no
5781 # Check whether --with-internal-prefix was given.
5782 if test "${with_internal_prefix+set}" = set; then
5783 withval=$with_internal_prefix;
5788 INTERNAL_PREFIX=$withval
5792 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5793 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5794 if test "${lt_cv_path_NM+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 if test -n "$NM"; then
5798 # Let the user override the test.
5801 lt_nm_to_check="${ac_tool_prefix}nm"
5802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5803 lt_nm_to_check="$lt_nm_to_check nm"
5805 for lt_tmp_nm in $lt_nm_to_check; do
5806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809 test -z "$ac_dir" && ac_dir=.
5810 tmp_nm="$ac_dir/$lt_tmp_nm"
5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812 # Check to see if the nm accepts a BSD-compat flag.
5813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814 # nm: unknown option "B" ignored
5815 # Tru64's nm complains that /dev/null is an invalid object file
5816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817 */dev/null* | *'Invalid file or object type'*)
5818 lt_cv_path_NM="$tmp_nm -B"
5822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 lt_cv_path_NM="$tmp_nm -p"
5828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829 continue # so that we can try to find one that supports BSD flags
5838 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5841 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5842 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5847 { echo "$as_me:$LINENO: checking for GNU make" >&5
5848 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5849 if test "${llvm_cv_gnu_make_command+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 llvm_cv_gnu_make_command=''
5853 for a in "$MAKE" make gmake gnumake ; do
5854 if test -z "$a" ; then continue ; fi ;
5855 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5857 llvm_cv_gnu_make_command=$a ;
5862 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5863 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5864 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5868 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5869 echo "${ECHO_T}\"Not found\"" >&6; };
5873 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5874 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5876 if test "$LN_S" = "ln -s"; then
5877 { echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6; }
5880 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5881 echo "${ECHO_T}no, using $LN_S" >&6; }
5884 # Extract the first word of "cmp", so it can be a program name with args.
5885 set dummy cmp; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_CMP+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5916 if test -n "$CMP"; then
5917 { echo "$as_me:$LINENO: result: $CMP" >&5
5918 echo "${ECHO_T}$CMP" >&6; }
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5925 # Extract the first word of "cp", so it can be a program name with args.
5926 set dummy cp; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_CP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5957 if test -n "$CP"; then
5958 { echo "$as_me:$LINENO: result: $CP" >&5
5959 echo "${ECHO_T}$CP" >&6; }
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5966 # Extract the first word of "date", so it can be a program name with args.
5967 set dummy date; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_DATE+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5997 DATE=$ac_cv_path_DATE
5998 if test -n "$DATE"; then
5999 { echo "$as_me:$LINENO: result: $DATE" >&5
6000 echo "${ECHO_T}$DATE" >&6; }
6002 { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6007 # Extract the first word of "find", so it can be a program name with args.
6008 set dummy find; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_FIND+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6038 FIND=$ac_cv_path_FIND
6039 if test -n "$FIND"; then
6040 { echo "$as_me:$LINENO: result: $FIND" >&5
6041 echo "${ECHO_T}$FIND" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 # Extract the first word of "grep", so it can be a program name with args.
6049 set dummy grep; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_path_GREP+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6079 GREP=$ac_cv_path_GREP
6080 if test -n "$GREP"; then
6081 { echo "$as_me:$LINENO: result: $GREP" >&5
6082 echo "${ECHO_T}$GREP" >&6; }
6084 { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6089 # Extract the first word of "mkdir", so it can be a program name with args.
6090 set dummy mkdir; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_path_MKDIR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6120 MKDIR=$ac_cv_path_MKDIR
6121 if test -n "$MKDIR"; then
6122 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6123 echo "${ECHO_T}$MKDIR" >&6; }
6125 { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6130 # Extract the first word of "mv", so it can be a program name with args.
6131 set dummy mv; ac_word=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_path_MV+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6162 if test -n "$MV"; then
6163 { echo "$as_me:$LINENO: result: $MV" >&5
6164 echo "${ECHO_T}$MV" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6171 if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_RANLIB+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test -n "$RANLIB"; then
6180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 RANLIB=$ac_cv_prog_RANLIB
6200 if test -n "$RANLIB"; then
6201 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6202 echo "${ECHO_T}$RANLIB" >&6; }
6204 { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6210 if test -z "$ac_cv_prog_RANLIB"; then
6211 ac_ct_RANLIB=$RANLIB
6212 # Extract the first word of "ranlib", so it can be a program name with args.
6213 set dummy ranlib; ac_word=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 if test -n "$ac_ct_RANLIB"; then
6220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_ac_ct_RANLIB="ranlib"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240 if test -n "$ac_ct_RANLIB"; then
6241 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6242 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6244 { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6248 if test "x$ac_ct_RANLIB" = x; then
6251 case $cross_compiling:$ac_tool_warned in
6253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&5
6256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6257 whose name does not start with the host triplet. If you think this
6258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6259 ac_tool_warned=yes ;;
6261 RANLIB=$ac_ct_RANLIB
6264 RANLIB="$ac_cv_prog_RANLIB"
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}ar; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_prog_AR+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 if test -n "$AR"; then
6276 ac_cv_prog_AR="$AR" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_AR="${ac_tool_prefix}ar"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 if test -n "$AR"; then
6297 { echo "$as_me:$LINENO: result: $AR" >&5
6298 echo "${ECHO_T}$AR" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6306 if test -z "$ac_cv_prog_AR"; then
6308 # Extract the first word of "ar", so it can be a program name with args.
6309 set dummy ar; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 if test -n "$ac_ct_AR"; then
6316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_ac_ct_AR="ar"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6336 if test -n "$ac_ct_AR"; then
6337 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6338 echo "${ECHO_T}$ac_ct_AR" >&6; }
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6344 if test "x$ac_ct_AR" = x; then
6347 case $cross_compiling:$ac_tool_warned in
6349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6350 whose name does not start with the host triplet. If you think this
6351 configuration is useful to you, please write to autoconf@gnu.org." >&5
6352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6353 whose name does not start with the host triplet. If you think this
6354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6355 ac_tool_warned=yes ;;
6363 # Extract the first word of "rm", so it can be a program name with args.
6364 set dummy rm; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_RM+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6395 if test -n "$RM"; then
6396 { echo "$as_me:$LINENO: result: $RM" >&5
6397 echo "${ECHO_T}$RM" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 # Extract the first word of "sed", so it can be a program name with args.
6405 set dummy sed; ac_word=$2
6406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408 if test "${ac_cv_path_SED+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6436 if test -n "$SED"; then
6437 { echo "$as_me:$LINENO: result: $SED" >&5
6438 echo "${ECHO_T}$SED" >&6; }
6440 { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6445 # Extract the first word of "tar", so it can be a program name with args.
6446 set dummy tar; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_TAR+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6477 if test -n "$TAR"; then
6478 { echo "$as_me:$LINENO: result: $TAR" >&5
6479 echo "${ECHO_T}$TAR" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6486 # Extract the first word of "pwd", so it can be a program name with args.
6487 set dummy pwd; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_BINPWD+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6517 BINPWD=$ac_cv_path_BINPWD
6518 if test -n "$BINPWD"; then
6519 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6520 echo "${ECHO_T}$BINPWD" >&6; }
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6528 # Extract the first word of "Graphviz", so it can be a program name with args.
6529 set dummy Graphviz; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6559 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6560 if test -n "$GRAPHVIZ"; then
6561 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6562 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6564 { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6569 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6571 cat >>confdefs.h <<\_ACEOF
6572 #define HAVE_GRAPHVIZ 1
6575 if test "$llvm_cv_os_type" = "MingW" ; then
6576 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6579 cat >>confdefs.h <<_ACEOF
6580 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6584 # Extract the first word of "dot", so it can be a program name with args.
6585 set dummy dot; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_DOT+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6616 if test -n "$DOT"; then
6617 { echo "$as_me:$LINENO: result: $DOT" >&5
6618 echo "${ECHO_T}$DOT" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 if test "$DOT" != "echo dot" ; then
6627 cat >>confdefs.h <<\_ACEOF
6631 if test "$llvm_cv_os_type" = "MingW" ; then
6632 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6635 cat >>confdefs.h <<_ACEOF
6636 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6640 # Extract the first word of "fdp", so it can be a program name with args.
6641 set dummy fdp; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_FDP+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6672 if test -n "$FDP"; then
6673 { echo "$as_me:$LINENO: result: $FDP" >&5
6674 echo "${ECHO_T}$FDP" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6681 if test "$FDP" != "echo fdp" ; then
6683 cat >>confdefs.h <<\_ACEOF
6687 if test "$llvm_cv_os_type" = "MingW" ; then
6688 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6696 # Extract the first word of "neato", so it can be a program name with args.
6697 set dummy neato; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_NEATO+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6727 NEATO=$ac_cv_path_NEATO
6728 if test -n "$NEATO"; then
6729 { echo "$as_me:$LINENO: result: $NEATO" >&5
6730 echo "${ECHO_T}$NEATO" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 if test "$NEATO" != "echo neato" ; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_NEATO 1
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6752 # Extract the first word of "twopi", so it can be a program name with args.
6753 set dummy twopi; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_TWOPI+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6783 TWOPI=$ac_cv_path_TWOPI
6784 if test -n "$TWOPI"; then
6785 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6786 echo "${ECHO_T}$TWOPI" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 if test "$TWOPI" != "echo twopi" ; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_TWOPI 1
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6808 # Extract the first word of "circo", so it can be a program name with args.
6809 set dummy circo; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_path_CIRCO+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6839 CIRCO=$ac_cv_path_CIRCO
6840 if test -n "$CIRCO"; then
6841 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6842 echo "${ECHO_T}$CIRCO" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6849 if test "$CIRCO" != "echo circo" ; then
6851 cat >>confdefs.h <<\_ACEOF
6852 #define HAVE_CIRCO 1
6855 if test "$llvm_cv_os_type" = "MingW" ; then
6856 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859 cat >>confdefs.h <<_ACEOF
6860 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6864 for ac_prog in gv gsview32
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_GV+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 if test -n "$GV"; then
6898 { echo "$as_me:$LINENO: result: $GV" >&5
6899 echo "${ECHO_T}$GV" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6906 test -n "$GV" && break
6908 test -n "$GV" || GV="echo gv"
6910 if test "$GV" != "echo gv" ; then
6912 cat >>confdefs.h <<\_ACEOF
6916 if test "$llvm_cv_os_type" = "MingW" ; then
6917 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6920 cat >>confdefs.h <<_ACEOF
6921 #define LLVM_PATH_GV "$GV${EXEEXT}"
6925 # Extract the first word of "dotty", so it can be a program name with args.
6926 set dummy dotty; ac_word=$2
6927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929 if test "${ac_cv_path_DOTTY+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6956 DOTTY=$ac_cv_path_DOTTY
6957 if test -n "$DOTTY"; then
6958 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6959 echo "${ECHO_T}$DOTTY" >&6; }
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6966 if test "$DOTTY" != "echo dotty" ; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define HAVE_DOTTY 1
6972 if test "$llvm_cv_os_type" = "MingW" ; then
6973 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6976 cat >>confdefs.h <<_ACEOF
6977 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6981 # Extract the first word of "xdot.py", so it can be a program name with args.
6982 set dummy xdot.py; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7012 XDOT_PY=$ac_cv_path_XDOT_PY
7013 if test -n "$XDOT_PY"; then
7014 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7015 echo "${ECHO_T}$XDOT_PY" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 if test "$XDOT_PY" != "echo xdot.py" ; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define HAVE_XDOT_PY 1
7028 if test "$llvm_cv_os_type" = "MingW" ; then
7029 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7032 cat >>confdefs.h <<_ACEOF
7033 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7038 # Find a good install program. We prefer a C program (faster),
7039 # so one script is as good as another. But avoid the broken or
7040 # incompatible versions:
7041 # SysV /etc/install, /usr/sbin/install
7042 # SunOS /usr/etc/install
7043 # IRIX /sbin/install
7045 # AmigaOS /C/install, which installs bootblocks on floppy discs
7046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7049 # OS/2's system install, which has a completely different semantic
7050 # ./install, which can be erroneously created by make from ./install.sh.
7051 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7052 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7053 if test -z "$INSTALL"; then
7054 if test "${ac_cv_path_install+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 # Account for people who put trailing slashes in PATH elements.
7064 ./ | .// | /cC/* | \
7065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7066 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7069 # OSF1 and SCO ODT 3.0 have their own names for install.
7070 # Don't use installbsd from OSF since it installs stuff as root
7072 for ac_prog in ginstall scoinst install; do
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7075 if test $ac_prog = install &&
7076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077 # AIX install. It has an incompatible calling convention.
7079 elif test $ac_prog = install &&
7080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7081 # program-specific install script used by HP pwplus--don't use.
7084 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7097 if test "${ac_cv_path_install+set}" = set; then
7098 INSTALL=$ac_cv_path_install
7100 # As a last resort, use the slow shell script. Don't cache a
7101 # value for INSTALL within a source directory, because that will
7102 # break other packages using the cache if that directory is
7103 # removed, or if the value is a relative name.
7104 INSTALL=$ac_install_sh
7107 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7108 echo "${ECHO_T}$INSTALL" >&6; }
7110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7111 # It thinks the first close brace ends the variable substitution.
7112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7119 [\\/$]* | ?:[\\/]* ) ;;
7120 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7123 # Extract the first word of "bzip2", so it can be a program name with args.
7124 set dummy bzip2; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_BZIP2+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 BZIP2=$ac_cv_path_BZIP2
7154 if test -n "$BZIP2"; then
7155 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7156 echo "${ECHO_T}$BZIP2" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 # Extract the first word of "cat", so it can be a program name with args.
7164 set dummy cat; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_CAT+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 if test -n "$CAT"; then
7195 { echo "$as_me:$LINENO: result: $CAT" >&5
7196 echo "${ECHO_T}$CAT" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "doxygen", so it can be a program name with args.
7204 set dummy doxygen; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 DOXYGEN=$ac_cv_path_DOXYGEN
7234 if test -n "$DOXYGEN"; then
7235 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7236 echo "${ECHO_T}$DOXYGEN" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 # Extract the first word of "groff", so it can be a program name with args.
7244 set dummy groff; ac_word=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_GROFF+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 GROFF=$ac_cv_path_GROFF
7274 if test -n "$GROFF"; then
7275 { echo "$as_me:$LINENO: result: $GROFF" >&5
7276 echo "${ECHO_T}$GROFF" >&6; }
7278 { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7283 # Extract the first word of "gzip", so it can be a program name with args.
7284 set dummy gzip; ac_word=$2
7285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 GZIPBIN=$ac_cv_path_GZIPBIN
7314 if test -n "$GZIPBIN"; then
7315 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7316 echo "${ECHO_T}$GZIPBIN" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 # Extract the first word of "pdfroff", so it can be a program name with args.
7324 set dummy pdfroff; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_PDFROFF+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 PDFROFF=$ac_cv_path_PDFROFF
7354 if test -n "$PDFROFF"; then
7355 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7356 echo "${ECHO_T}$PDFROFF" >&6; }
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7363 # Extract the first word of "zip", so it can be a program name with args.
7364 set dummy zip; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_ZIP+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 if test -n "$ZIP"; then
7395 { echo "$as_me:$LINENO: result: $ZIP" >&5
7396 echo "${ECHO_T}$ZIP" >&6; }
7398 { echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6; }
7403 for ac_prog in ocamlc
7405 # Extract the first word of "$ac_prog", so it can be a program name with args.
7406 set dummy $ac_prog; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_OCAMLC+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 OCAMLC=$ac_cv_path_OCAMLC
7436 if test -n "$OCAMLC"; then
7437 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7438 echo "${ECHO_T}$OCAMLC" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7445 test -n "$OCAMLC" && break
7448 for ac_prog in ocamlopt
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 OCAMLOPT=$ac_cv_path_OCAMLOPT
7481 if test -n "$OCAMLOPT"; then
7482 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7483 echo "${ECHO_T}$OCAMLOPT" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 test -n "$OCAMLOPT" && break
7493 for ac_prog in ocamldep
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 OCAMLDEP=$ac_cv_path_OCAMLDEP
7526 if test -n "$OCAMLDEP"; then
7527 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7528 echo "${ECHO_T}$OCAMLDEP" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 test -n "$OCAMLDEP" && break
7538 for ac_prog in ocamldoc
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 OCAMLDOC=$ac_cv_path_OCAMLDOC
7571 if test -n "$OCAMLDOC"; then
7572 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7573 echo "${ECHO_T}$OCAMLDOC" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7580 test -n "$OCAMLDOC" && break
7583 for ac_prog in gas as
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_GAS+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 if test -n "$GAS"; then
7617 { echo "$as_me:$LINENO: result: $GAS" >&5
7618 echo "${ECHO_T}$GAS" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$GAS" && break
7629 { echo "$as_me:$LINENO: checking for linker version" >&5
7630 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7631 if test "${llvm_cv_link_version+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 version_string="$(ld -v 2>&1 | head -1)"
7638 if (echo "$version_string" | grep -q "ld64"); then
7639 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7641 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7645 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7646 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7648 cat >>confdefs.h <<_ACEOF
7649 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7654 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7655 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7656 if test "${llvm_cv_link_use_r+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666 CFLAGS="$CFLAGS -Wl,-R."
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7697 { (case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_try") 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_try") 2>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 llvm_cv_link_use_r=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 llvm_cv_link_use_r=no
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7736 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7737 if test "$llvm_cv_link_use_r" = yes ; then
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LINK_R 1
7746 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7747 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7748 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7759 cat >conftest.$ac_ext <<_ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (ac_try="$ac_link"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_link") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789 { (case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_try") 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 llvm_cv_link_use_export_dynamic=yes
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 llvm_cv_link_use_export_dynamic=no
7816 rm -f core conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7828 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7829 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_LINK_EXPORT_DYNAMIC 1
7838 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7839 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_use_version_script+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 # The following code is from the autoconf manual,
7852 # "11.13: Limitations of Usual Tools".
7853 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7854 # Use mktemp if possible; otherwise fall back on mkdir,
7855 # with $RANDOM to make collisions less likely.
7859 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7861 test -n "$tmp" && test -d "$tmp"
7863 tmp=$TMPDIR/foo$$-$RANDOM
7864 (umask 077 && mkdir "$tmp")
7867 echo "{" > "$tmp/export.map"
7868 echo " global: main;" >> "$tmp/export.map"
7869 echo " local: *;" >> "$tmp/export.map"
7870 echo "};" >> "$tmp/export.map"
7872 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (ac_try="$ac_link"
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_link") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_try") 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 llvm_cv_link_use_version_script=yes
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 llvm_cv_link_use_version_script=no
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 rm "$tmp/export.map"
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7944 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7945 if test "$llvm_cv_link_use_version_script" = yes ; then
7946 HAVE_LINK_VERSION_SCRIPT=1
7953 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7954 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7955 if test "${ac_cv_c_const+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7968 /* FIXME: Include the comments suggested by Paul. */
7970 /* Ultrix mips cc rejects this. */
7971 typedef int charset[2];
7973 /* SunOS 4.1.1 cc rejects this. */
7974 char const *const *ccp;
7976 /* NEC SVR4.0.2 mips cc rejects this. */
7977 struct point {int x, y;};
7978 static struct point const zero = {0,0};
7979 /* AIX XL C 1.02.0.0 rejects this.
7980 It does not let you subtract one const X* pointer from another in
7981 an arm of an if-expression whose if-part is not a constant
7983 const char *g = "string";
7984 ccp = &g + (g ? g-g : 0);
7985 /* HPUX 7.0 cc rejects these. */
7988 ccp = (char const *const *) p;
7989 { /* SCO 3.2v4 cc rejects this. */
7991 char const *s = 0 ? (char *) 0 : (char const *) 0;
7996 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7998 const int *foo = &x[0];
8001 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8002 typedef const int *iptr;
8006 { /* AIX XL C 1.02.0.0 rejects this saying
8007 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8008 struct s { int j; const int *ap[3]; };
8009 struct s *b; b->j = 5;
8011 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8015 return !x[0] && !zero.x;
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8067 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8068 if test $ac_cv_c_const = no; then
8070 cat >>confdefs.h <<\_ACEOF
8082 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8083 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8084 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8085 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 #include <sys/types.h>
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 eval "$as_ac_Header=yes"
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 eval "$as_ac_Header=no"
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 ac_res=`eval echo '${'$as_ac_Header'}'`
8152 { echo "$as_me:$LINENO: result: $ac_res" >&5
8153 echo "${ECHO_T}$ac_res" >&6; }
8154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8159 ac_header_dirent=$ac_hdr; break
8163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8164 if test $ac_header_dirent = dirent.h; then
8165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8167 if test "${ac_cv_search_opendir+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_func_search_save_LIBS=$LIBS
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8193 for ac_lib in '' dir; do
8194 if test -z "$ac_lib"; then
8195 ac_res="none required"
8198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_search_opendir=$ac_res
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8242 rm -f core conftest.err conftest.$ac_objext \
8244 if test "${ac_cv_search_opendir+set}" = set; then
8248 if test "${ac_cv_search_opendir+set}" = set; then
8251 ac_cv_search_opendir=no
8254 LIBS=$ac_func_search_save_LIBS
8256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8258 ac_res=$ac_cv_search_opendir
8259 if test "$ac_res" != no; then
8260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8267 if test "${ac_cv_search_opendir+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_func_search_save_LIBS=$LIBS
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8293 for ac_lib in '' x; do
8294 if test -z "$ac_lib"; then
8295 ac_res="none required"
8298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8300 rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_search_opendir=$ac_res
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f core conftest.err conftest.$ac_objext \
8344 if test "${ac_cv_search_opendir+set}" = set; then
8348 if test "${ac_cv_search_opendir+set}" = set; then
8351 ac_cv_search_opendir=no
8354 LIBS=$ac_func_search_save_LIBS
8356 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8357 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8358 ac_res=$ac_cv_search_opendir
8359 if test "$ac_res" != no; then
8360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8367 for ac_header in dlfcn.h
8369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 ac_res=`eval echo '${'$as_ac_Header'}'`
8377 { echo "$as_me:$LINENO: result: $ac_res" >&5
8378 echo "${ECHO_T}$ac_res" >&6; }
8380 # Is the header compilable?
8381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #include <$ac_header>
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_header_compiler=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_header_compiler=no
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8436 echo "${ECHO_T}$ac_header_compiler" >&6; }
8438 # Is the header present?
8439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <$ac_header>
8449 if { (ac_try="$ac_cpp conftest.$ac_ext"
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } >/dev/null; then
8462 if test -s conftest.err; then
8463 ac_cpp_err=$ac_c_preproc_warn_flag
8464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8471 if test -z "$ac_cpp_err"; then
8472 ac_header_preproc=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_header_preproc=no
8480 rm -f conftest.err conftest.$ac_ext
8481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8482 echo "${ECHO_T}$ac_header_preproc" >&6; }
8484 # So? What about this header?
8485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8491 ac_header_preproc=yes
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8507 ## ------------------------------------ ##
8508 ## Report this to http://llvm.org/bugs/ ##
8509 ## ------------------------------------ ##
8511 ) | sed "s/^/$as_me: WARNING: /" >&2
8514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 eval "$as_ac_Header=\$ac_header_preproc"
8521 ac_res=`eval echo '${'$as_ac_Header'}'`
8522 { echo "$as_me:$LINENO: result: $ac_res" >&5
8523 echo "${ECHO_T}$ac_res" >&6; }
8526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8527 cat >>confdefs.h <<_ACEOF
8528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8535 # Check whether --enable-ltdl-install was given.
8536 if test "${enable_ltdl_install+set}" = set; then
8537 enableval=$enable_ltdl_install;
8543 if test x"${enable_ltdl_install-no}" != xno; then
8545 INSTALL_LTDL_FALSE='#'
8547 INSTALL_LTDL_TRUE='#'
8553 if test x"${enable_ltdl_convenience-no}" != xno; then
8554 CONVENIENCE_LTDL_TRUE=
8555 CONVENIENCE_LTDL_FALSE='#'
8557 CONVENIENCE_LTDL_TRUE='#'
8558 CONVENIENCE_LTDL_FALSE=
8562 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8563 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8565 libname_spec='lib$name'
8573 shlibpath_overrides_runpath=unknown
8575 dynamic_linker="$host_os ld.so"
8576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8577 if test "$GCC" = yes; then
8578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8579 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8580 # if the path contains ";" then we assume it to be the separator
8581 # otherwise default to the standard path separator (i.e. ":") - it is
8582 # assumed that no part of a normal pathname contains ";" but that should
8583 # okay in the real world where ";" in dirpaths is itself problematic.
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8591 need_lib_prefix=unknown
8592 hardcode_into_libs=no
8594 # when you set need_version to no, make sure it does not cause -set_version
8595 # flags to be left without arguments
8596 need_version=unknown
8601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8602 shlibpath_var=LIBPATH
8604 # AIX 3 has no versioning support, so we append a major version to the name.
8605 soname_spec='${libname}${release}${shared_ext}$major'
8612 hardcode_into_libs=yes
8613 if test "$host_cpu" = ia64; then
8614 # AIX 5 supports IA64
8615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8616 shlibpath_var=LD_LIBRARY_PATH
8618 # With GCC up to 2.95.x, collect2 would create an import file
8619 # for dependence libraries. The import file would start with
8620 # the line `#! .'. This would cause the generated library to
8621 # depend on `.', always an invalid library. This was fixed in
8622 # development snapshots of GCC prior to 3.0.
8624 aix4 | aix4.[01] | aix4.[01].*)
8625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8635 # soname into executable. Probably we can add versioning support to
8636 # collect2, so additional links can be useful in future.
8637 if test "$aix_use_runtimelinking" = yes; then
8638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8639 # instead of lib<name>.a to let people know that these are not
8640 # typical AIX shared libraries.
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643 # We preserve .a as extension for shared libraries through AIX4.2
8644 # and later when we are not doing run time linking.
8645 library_names_spec='${libname}${release}.a $libname.a'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8648 shlibpath_var=LIBPATH
8653 library_names_spec='$libname.ixlibrary $libname.a'
8654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8655 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'
8659 library_names_spec='${libname}${shared_ext}'
8660 dynamic_linker="$host_os ld.so"
8661 shlibpath_var=LIBRARY_PATH
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8670 shlibpath_var=LD_LIBRARY_PATH
8671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8673 # the default ld.so.conf also contains /usr/contrib/lib and
8674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8675 # libtool to hard-code these into programs
8678 cygwin* | mingw* | pw32*)
8679 version_type=windows
8684 case $GCC,$host_os in
8685 yes,cygwin* | yes,mingw* | yes,pw32*)
8686 library_names_spec='$libname.dll.a'
8687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8688 postinstall_cmds='base_file=`basename \${file}`~
8689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8690 dldir=$destdir/`dirname \$dlpath`~
8691 test -d \$dldir || mkdir -p \$dldir~
8692 $install_prog $dir/$dlname \$dldir/$dlname~
8693 chmod a+x \$dldir/$dlname'
8694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8695 dlpath=$dir/\$dldll~
8697 shlibpath_overrides_runpath=yes
8701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8706 # MinGW DLLs use traditional 'lib' prefix
8707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8710 # It is most probably a Windows format PATH printed by
8711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8712 # path with ; separators, and with drive letters. We can handle the
8713 # drive letters (cygwin fileutils understands them), so leave them,
8714 # especially as we might pass files found there to a mingw objdump,
8715 # which wouldn't understand a cygwinified path. Ahh.
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8722 # pw32 DLLs use 'pw' prefix rather than 'lib'
8723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8732 dynamic_linker='Win32 ld.exe'
8733 # FIXME: first we should search . and the directory the executable is in
8737 darwin* | rhapsody*)
8738 dynamic_linker="$host_os dyld"
8742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8743 soname_spec='${libname}${release}${major}$shared_ext'
8744 shlibpath_overrides_runpath=yes
8745 shlibpath_var=DYLD_LIBRARY_PATH
8746 shrext_cmds='.dylib'
8747 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8748 if test "$GCC" = yes; then
8749 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"`
8751 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 shlibpath_var=LD_LIBRARY_PATH
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8774 soname_spec='${libname}${release}${shared_ext}$major'
8775 shlibpath_var=LD_LIBRARY_PATH
8776 shlibpath_overrides_runpath=no
8777 hardcode_into_libs=yes
8778 dynamic_linker='GNU ld.so'
8781 freebsd* | dragonfly*)
8782 # DragonFly does not have aout. When/if they implement a new
8783 # versioning mechanism, adjust this.
8784 if test -x /usr/bin/objformat; then
8785 objformat=`/usr/bin/objformat`
8788 freebsd[123].*) objformat=aout ;;
8792 version_type=freebsd-$objformat
8793 case $version_type in
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8804 shlibpath_var=LD_LIBRARY_PATH
8807 shlibpath_overrides_runpath=yes
8809 freebsd3.[01]* | freebsdelf3.[01]*)
8810 shlibpath_overrides_runpath=yes
8811 hardcode_into_libs=yes
8813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8818 freebsd*) # from 4.6 on
8819 shlibpath_overrides_runpath=yes
8820 hardcode_into_libs=yes
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 hardcode_into_libs=yes
8835 hpux9* | hpux10* | hpux11*)
8836 # Give a soname corresponding to the major version so that dld.sl refuses to
8837 # link against other versions.
8844 hardcode_into_libs=yes
8845 dynamic_linker="$host_os dld.so"
8846 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 if test "X$HPUX_IA64_MODE" = X32; then
8851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8859 hardcode_into_libs=yes
8860 dynamic_linker="$host_os dld.sl"
8861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8870 dynamic_linker="$host_os dld.sl"
8871 shlibpath_var=SHLIB_PATH
8872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8878 postinstall_cmds='chmod 555 $lib'
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
8890 hardcode_into_libs=yes
8893 irix5* | irix6* | nonstopux*)
8895 nonstopux*) version_type=nonstopux ;;
8897 if test "$lt_cv_prog_gnu_ld" = yes; then
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8908 irix5* | nonstopux*)
8912 case $LD in # libtool.m4 will add one of these switches to LD
8913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8914 libsuff= shlibsuff= libmagic=32-bit;;
8915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8916 libsuff=32 shlibsuff=N32 libmagic=N32;;
8917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8919 *) libsuff= shlibsuff= libmagic=never-match;;
8923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8924 shlibpath_overrides_runpath=no
8925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8927 hardcode_into_libs=yes
8930 # No shared lib support for Linux oldld, aout, or coff.
8931 linux*oldld* | linux*aout* | linux*coff*)
8935 # This must be Linux ELF.
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 # This implies no fast_install, which is unacceptable.
8946 # Some rework will be needed to allow for fast_install
8947 # before this can be enabled.
8948 hardcode_into_libs=yes
8950 # Append ld.so.conf contents to the search path
8951 if test -f /etc/ld.so.conf; then
8952 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' ' '`
8953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8956 # We used to test for /lib/ld.so.1 and disable shared libraries on
8957 # powerpc, because MkLinux only supported shared libraries with the
8958 # GNU dynamic linker. Since this was broken with cross compilers,
8959 # most powerpc-linux boxes support dynamic linking these days and
8960 # people can always --disable-shared, the test was removed, and we
8961 # assume the GNU/Linux dynamic linker is in use.
8962 dynamic_linker='GNU/Linux ld.so'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 dynamic_linker='GNU ld.so'
8981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984 dynamic_linker='NetBSD (a.out) ld.so'
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 dynamic_linker='NetBSD ld.elf_so'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9014 sys_lib_dlsearch_path_spec="/usr/lib"
9016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9019 *) need_version=no ;;
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023 shlibpath_var=LD_LIBRARY_PATH
9024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9026 openbsd2.[89] | openbsd2.[89].*)
9027 shlibpath_overrides_runpath=no
9030 shlibpath_overrides_runpath=yes
9034 shlibpath_overrides_runpath=yes
9039 libname_spec='$name'
9042 library_names_spec='$libname${shared_ext} $libname.a'
9043 dynamic_linker='OS/2 ld.exe'
9044 shlibpath_var=LIBPATH
9047 osf3* | osf4* | osf5*)
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=yes
9066 hardcode_into_libs=yes
9067 # ldd complains unless libraries are executable
9068 postinstall_cmds='chmod +x $lib'
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9077 if test "$with_gnu_ld" = yes; then
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 case $host_vendor in
9090 shlibpath_overrides_runpath=no
9092 export_dynamic_flag_spec='${wl}-Blargedynsym'
9093 runpath_var=LD_RUN_PATH
9101 shlibpath_overrides_runpath=no
9102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9108 if test -d /usr/nec ;then
9110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9111 soname_spec='$libname${shared_ext}.$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9117 version_type=freebsd-elf
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 hardcode_into_libs=yes
9124 if test "$with_gnu_ld" = yes; then
9125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9126 shlibpath_overrides_runpath=no
9128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9129 shlibpath_overrides_runpath=yes
9132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9136 sys_lib_dlsearch_path_spec='/usr/lib'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9151 echo "${ECHO_T}$dynamic_linker" >&6; }
9152 test "$dynamic_linker" = no && can_build_shared=no
9154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9155 if test "$GCC" = yes; then
9156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9160 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9161 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9162 if test "${libltdl_cv_shlibext+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 eval libltdl_cv_shlibext=$shrext_cmds
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9171 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9172 if test -n "$libltdl_cv_shlibext"; then
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9181 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9182 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9183 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 libltdl_cv_shlibpath_var="$shlibpath_var"
9188 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9189 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9190 if test -n "$libltdl_cv_shlibpath_var"; then
9192 cat >>confdefs.h <<_ACEOF
9193 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9199 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9200 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9201 if test "${libltdl_cv_sys_search_path+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9207 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9208 if test -n "$libltdl_cv_sys_search_path"; then
9210 for dir in $libltdl_cv_sys_search_path; do
9211 if test -z "$sys_search_path"; then
9212 sys_search_path="$dir"
9214 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9218 cat >>confdefs.h <<_ACEOF
9219 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9224 { echo "$as_me:$LINENO: checking for objdir" >&5
9225 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9226 if test "${libltdl_cv_objdir+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 libltdl_cv_objdir="$objdir"
9230 if test -n "$objdir"; then
9233 rm -f .libs 2>/dev/null
9234 mkdir .libs 2>/dev/null
9235 if test -d .libs; then
9236 libltdl_cv_objdir=.libs
9238 # MS-DOS does not allow filenames that begin with a dot.
9239 libltdl_cv_objdir=_libs
9241 rmdir .libs 2>/dev/null
9245 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9246 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9248 cat >>confdefs.h <<_ACEOF
9249 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9257 # Check for command to grab the raw symbol name followed by C symbol from nm.
9258 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 # These are sane defaults that work on at least a few old systems.
9265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9267 # Character class describing NM global symbol codes.
9268 symcode='[BCDEGRST]'
9270 # Regexp to match symbols that can be accessed directly from C.
9271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9273 # Transform an extracted symbol line into a proper C declaration
9274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9276 # Transform an extracted symbol line into symbol name and symbol address
9277 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'"
9279 # Define system-specific variables.
9284 cygwin* | mingw* | pw32*)
9285 symcode='[ABCDGISTW]'
9287 hpux*) # Its linker distinguishes data from code symbols
9288 if test "$host_cpu" = ia64; then
9289 symcode='[ABCDEGRST]'
9291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9292 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'"
9295 if test "$host_cpu" = ia64; then
9296 symcode='[ABCDGIRSTW]'
9297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9298 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'"
9302 symcode='[BCDEGRST]'
9305 symcode='[BCDEGQRST]'
9316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9324 # Handle CRLF in mingw tool chain
9328 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9332 # If we're using GNU nm, then use its standard symbol codes.
9333 case `$NM -V 2>&1` in
9334 *GNU* | *'with BFD'*)
9335 symcode='[ABCDGIRSTW]' ;;
9338 # Try without a prefix undercore, then with it.
9339 for ac_symprfx in "" "_"; do
9341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9342 symxfrm="\\1 $ac_symprfx\\2 \\2"
9344 # Write the raw and C identifiers.
9345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9347 # Check to see that the pipe works correctly.
9351 cat > conftest.$ac_ext <<EOF
9356 void nm_test_func(){}
9360 int main(){nm_test_var='a';nm_test_func();return(0);}
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; then
9368 # Now try to grab the symbols.
9370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && test -s "$nlist"; then
9375 # Try sorting and uniquifying the output.
9376 if sort "$nlist" | uniq > "$nlist"T; then
9377 mv -f "$nlist"T "$nlist"
9382 # Make sure that we snagged all the symbols we need.
9383 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9384 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9385 cat <<EOF > conftest.$ac_ext
9391 # Now generate the symbol file.
9392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9394 cat <<EOF >> conftest.$ac_ext
9395 #if defined (__STDC__) && __STDC__
9396 # define lt_ptr_t void *
9398 # define lt_ptr_t char *
9402 /* The mapping between symbol names and symbols. */
9407 lt_preloaded_symbols[] =
9410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9411 cat <<\EOF >> conftest.$ac_ext
9419 # Now try linking the two files.
9420 mv conftest.$ac_objext conftstm.$ac_objext
9421 lt_save_LIBS="$LIBS"
9422 lt_save_CFLAGS="$CFLAGS"
9423 LIBS="conftstm.$ac_objext"
9424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9432 LIBS="$lt_save_LIBS"
9433 CFLAGS="$lt_save_CFLAGS"
9435 echo "cannot find nm_test_func in $nlist" >&5
9438 echo "cannot find nm_test_var in $nlist" >&5
9441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9444 echo "$progname: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9447 rm -f conftest* conftst*
9449 # Do not use the global_symbol_pipe unless it works.
9450 if test "$pipe_works" = yes; then
9453 lt_cv_sys_global_symbol_pipe=
9459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9460 lt_cv_sys_global_symbol_to_cdecl=
9462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9463 { echo "$as_me:$LINENO: result: failed" >&5
9464 echo "${ECHO_T}failed" >&6; }
9466 { echo "$as_me:$LINENO: result: ok" >&5
9467 echo "${ECHO_T}ok" >&6; }
9471 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9472 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9473 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9477 libltdl_cv_preloaded_symbols=yes
9479 libltdl_cv_preloaded_symbols=no
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9484 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9485 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_PRELOADED_SYMBOLS 1
9496 ac_cpp='$CPP $CPPFLAGS'
9497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9502 { echo "$as_me:$LINENO: checking for shl_load" >&5
9503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9504 if test "${ac_cv_func_shl_load+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9515 #define shl_load innocuous_shl_load
9517 /* System header to define __stub macros and hopefully few prototypes,
9518 which can conflict with char shl_load (); below.
9519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520 <limits.h> exists even on freestanding compilers. */
9523 # include <limits.h>
9525 # include <assert.h>
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9537 /* The GNU C library defines this for functions which it implements
9538 to always fail with ENOSYS. Some functions are actually named
9539 something starting with __ and the normal name is an alias. */
9540 #if defined __stub_shl_load || defined __stub___shl_load
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_func_shl_load=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_cv_func_shl_load=no
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9597 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9599 if test $ac_cv_func_shl_load = yes; then
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_SHL_LOAD 1
9606 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 ac_check_lib_save_LIBS=$LIBS
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_dld_shl_load=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_lib_dld_shl_load=no
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9683 if test $ac_cv_lib_dld_shl_load = yes; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_SHL_LOAD 1
9689 LIBADD_DL="$LIBADD_DL -ldld"
9691 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 ac_check_lib_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_dl_dlopen=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_lib_dl_dlopen=no
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_LIBDL 1
9774 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_LIBDL 1
9832 libltdl_cv_func_dlopen="yes"
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9838 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9839 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_check_lib_save_LIBS=$LIBS
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_svld_dlopen=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_lib_svld_dlopen=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9912 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9914 if test $ac_cv_lib_svld_dlopen = yes; then
9916 cat >>confdefs.h <<\_ACEOF
9917 #define HAVE_LIBDL 1
9920 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9922 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9923 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 ac_check_lib_save_LIBS=$LIBS
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_lib_dld_dld_link=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_lib_dld_dld_link=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9999 if test $ac_cv_lib_dld_dld_link = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10005 LIBADD_DL="$LIBADD_DL -ldld"
10007 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10008 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10009 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10020 #define _dyld_func_lookup innocuous__dyld_func_lookup
10022 /* System header to define __stub macros and hopefully few prototypes,
10023 which can conflict with char _dyld_func_lookup (); below.
10024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10025 <limits.h> exists even on freestanding compilers. */
10028 # include <limits.h>
10030 # include <assert.h>
10033 #undef _dyld_func_lookup
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10041 char _dyld_func_lookup ();
10042 /* The GNU C library defines this for functions which it implements
10043 to always fail with ENOSYS. Some functions are actually named
10044 something starting with __ and the normal name is an alias. */
10045 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10052 return _dyld_func_lookup ();
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_func__dyld_func_lookup=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func__dyld_func_lookup=no
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10103 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10104 if test $ac_cv_func__dyld_func_lookup = yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_DYLD 1
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10133 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10135 lt_save_LIBS="$LIBS"
10136 LIBS="$LIBS $LIBADD_DL"
10138 for ac_func in dlerror
10140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154 #define $ac_func innocuous_$ac_func
10156 /* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char $ac_func (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10162 # include <limits.h>
10164 # include <assert.h>
10169 /* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10176 /* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179 #if defined __stub_$ac_func || defined __stub___$ac_func
10186 return $ac_func ();
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 eval "$as_ac_var=yes"
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 eval "$as_ac_var=no"
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10236 ac_res=`eval echo '${'$as_ac_var'}'`
10237 { echo "$as_me:$LINENO: result: $ac_res" >&5
10238 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_var'}'` = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10247 LIBS="$lt_save_LIBS"
10250 ac_cpp='$CPP $CPPFLAGS'
10251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10257 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10258 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10259 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 ac_cv_sys_symbol_underscore=no
10263 cat > conftest.$ac_ext <<EOF
10264 void nm_test_func(){}
10265 int main(){nm_test_func;return 0;}
10267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; then
10272 # Now try to grab the symbols.
10273 ac_nlist=conftest.nm
10274 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10275 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && test -s "$ac_nlist"; then
10279 # See whether the symbols have a leading underscore.
10280 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10281 ac_cv_sys_symbol_underscore=yes
10283 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10286 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10290 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10293 echo "configure: failed program was:" >&5
10299 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10300 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10303 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10304 if test x"$libltdl_cv_func_dlopen" = xyes ||
10305 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10306 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10307 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10308 if test "${libltdl_cv_need_uscore+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 libltdl_cv_need_uscore=unknown
10313 LIBS="$LIBS $LIBADD_DL"
10314 if test "$cross_compiling" = yes; then :
10315 libltdl_cv_need_uscore=cross
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10330 # define LT_DLGLOBAL RTLD_GLOBAL
10333 # define LT_DLGLOBAL DL_GLOBAL
10335 # define LT_DLGLOBAL 0
10339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341 #ifndef LT_DLLAZY_OR_NOW
10343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10346 # define LT_DLLAZY_OR_NOW DL_LAZY
10349 # define LT_DLLAZY_OR_NOW RTLD_NOW
10352 # define LT_DLLAZY_OR_NOW DL_NOW
10354 # define LT_DLLAZY_OR_NOW 0
10362 extern "C" void exit (int);
10365 void fnord() { int i=42;}
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10390 case x$lt_status in
10391 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10392 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10393 x$lt_dlunknown|x*) ;;
10396 # compilation failed
10405 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10406 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10410 if test x"$libltdl_cv_need_uscore" = xyes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define NEED_USCORE 1
10419 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10420 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10421 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 # PORTME does your system automatically load deplibs for dlopen?
10425 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10426 # For now, we just catch OSes we know something about -- in the
10427 # future, we'll try test this programmatically.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10430 aix3*|aix4.1.*|aix4.2.*)
10431 # Unknown whether this is true for these versions of AIX, but
10432 # we want this `case' here to explicitly catch those versions.
10433 libltdl_cv_sys_dlopen_deplibs=unknown
10436 libltdl_cv_sys_dlopen_deplibs=yes
10439 # Assuming the user has installed a libdl from somewhere, this is true
10440 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10441 libltdl_cv_sys_dlopen_deplibs=yes
10443 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10444 # GNU and its variants, using gnu ld.so (Glibc)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10448 libltdl_cv_sys_dlopen_deplibs=yes
10451 libltdl_cv_sys_dlopen_deplibs=yes
10453 irix[12345]*|irix6.[01]*)
10454 # Catch all versions of IRIX before 6.2, and indicate that we don't
10455 # know how it worked for any of those versions.
10456 libltdl_cv_sys_dlopen_deplibs=unknown
10459 # The case above catches anything before 6.2, and it's known that
10460 # at 6.2 and later dlopen does load deplibs.
10461 libltdl_cv_sys_dlopen_deplibs=yes
10464 libltdl_cv_sys_dlopen_deplibs=yes
10467 libltdl_cv_sys_dlopen_deplibs=yes
10470 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10471 # it did *not* use an RPATH in a shared library to find objects the
10472 # library depends on, so we explicitly say `no'.
10473 libltdl_cv_sys_dlopen_deplibs=no
10475 osf5.0|osf5.0a|osf5.1)
10476 # dlopen *does* load deplibs and with the right loader patch applied
10477 # it even uses RPATH in a shared library to search for shared objects
10478 # that the library depends on, but there's no easy way to know if that
10479 # patch is installed. Since this is the case, all we can really
10480 # say is unknown -- it depends on the patch being installed. If
10481 # it is, this changes to `yes'. Without it, it would be `no'.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10485 # the two cases above should catch all versions of osf <= 5.1. Read
10486 # the comments above for what we know about them.
10487 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10488 # is used to find them so we can finally say `yes'.
10489 libltdl_cv_sys_dlopen_deplibs=yes
10492 libltdl_cv_sys_dlopen_deplibs=yes
10494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10495 libltdl_cv_sys_dlopen_deplibs=yes
10500 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10501 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10502 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define LTDL_DLOPEN_DEPLIBS 1
10511 for ac_header in argz.h
10513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 ac_res=`eval echo '${'$as_ac_Header'}'`
10521 { echo "$as_me:$LINENO: result: $ac_res" >&5
10522 echo "${ECHO_T}$ac_res" >&6; }
10524 # Is the header compilable?
10525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 #include <$ac_header>
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_header_compiler=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_header_compiler=no
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580 echo "${ECHO_T}$ac_header_compiler" >&6; }
10582 # Is the header present?
10583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #include <$ac_header>
10593 if { (ac_try="$ac_cpp conftest.$ac_ext"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } >/dev/null; then
10606 if test -s conftest.err; then
10607 ac_cpp_err=$ac_c_preproc_warn_flag
10608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10615 if test -z "$ac_cpp_err"; then
10616 ac_header_preproc=yes
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_header_preproc=no
10624 rm -f conftest.err conftest.$ac_ext
10625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626 echo "${ECHO_T}$ac_header_preproc" >&6; }
10628 # So? What about this header?
10629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635 ac_header_preproc=yes
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10651 ## ------------------------------------ ##
10652 ## Report this to http://llvm.org/bugs/ ##
10653 ## ------------------------------------ ##
10655 ) | sed "s/^/$as_me: WARNING: /" >&2
10658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 eval "$as_ac_Header=\$ac_header_preproc"
10665 ac_res=`eval echo '${'$as_ac_Header'}'`
10666 { echo "$as_me:$LINENO: result: $ac_res" >&5
10667 echo "${ECHO_T}$ac_res" >&6; }
10670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 { echo "$as_me:$LINENO: checking for error_t" >&5
10681 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10682 if test "${ac_cv_type_error_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10695 typedef error_t ac__type_new_;
10699 if ((ac__type_new_ *) 0)
10701 if (sizeof (ac__type_new_))
10707 rm -f conftest.$ac_objext
10708 if { (ac_try="$ac_compile"
10709 case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_compile") 2>conftest.er1
10716 grep -v '^ *+' conftest.er1 >conftest.err
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest.$ac_objext'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_type_error_t=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_cv_type_error_t=no
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10752 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10753 if test $ac_cv_type_error_t = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_ERROR_T 1
10762 cat >>confdefs.h <<\_ACEOF
10763 #define error_t int
10774 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10790 #define $ac_func innocuous_$ac_func
10792 /* System header to define __stub macros and hopefully few prototypes,
10793 which can conflict with char $ac_func (); below.
10794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795 <limits.h> exists even on freestanding compilers. */
10798 # include <limits.h>
10800 # include <assert.h>
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10812 /* The GNU C library defines this for functions which it implements
10813 to always fail with ENOSYS. Some functions are actually named
10814 something starting with __ and the normal name is an alias. */
10815 #if defined __stub_$ac_func || defined __stub___$ac_func
10822 return $ac_func ();
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1 >conftest.err
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 eval "$as_ac_var=yes"
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 eval "$as_ac_var=no"
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10872 ac_res=`eval echo '${'$as_ac_var'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10875 if test `eval echo '${'$as_ac_var'}'` = yes; then
10876 cat >>confdefs.h <<_ACEOF
10877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10910 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 ac_res=`eval echo '${'$as_ac_Header'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10924 # Is the header compilable?
10925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10927 cat >conftest.$ac_ext <<_ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 $ac_includes_default
10934 #include <$ac_header>
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_header_compiler=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_header_compiler=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980 echo "${ECHO_T}$ac_header_compiler" >&6; }
10982 # Is the header present?
10983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 #include <$ac_header>
10993 if { (ac_try="$ac_cpp conftest.$ac_ext"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } >/dev/null; then
11006 if test -s conftest.err; then
11007 ac_cpp_err=$ac_c_preproc_warn_flag
11008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11015 if test -z "$ac_cpp_err"; then
11016 ac_header_preproc=yes
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6; }
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11051 ## ------------------------------------ ##
11052 ## Report this to http://llvm.org/bugs/ ##
11053 ## ------------------------------------ ##
11055 ) | sed "s/^/$as_me: WARNING: /" >&2
11058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 eval "$as_ac_Header=\$ac_header_preproc"
11065 ac_res=`eval echo '${'$as_ac_Header'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067 echo "${ECHO_T}$ac_res" >&6; }
11070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11071 cat >>confdefs.h <<_ACEOF
11072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11096 # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11106 #include <$ac_header>
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_header_compiler=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_compiler=no
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <$ac_header>
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187 if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200 # So? What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223 ## ------------------------------------ ##
11224 ## Report this to http://llvm.org/bugs/ ##
11225 ## ------------------------------------ ##
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 eval "$as_ac_Header=\$ac_header_preproc"
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 for ac_header in string.h strings.h
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11266 # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 #include <$ac_header>
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_compile") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_header_compiler=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_header_compiler=no
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <$ac_header>
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357 if test -z "$ac_cpp_err"; then
11358 ac_header_preproc=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_header_preproc=no
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11370 # So? What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377 ac_header_preproc=yes
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11393 ## ------------------------------------ ##
11394 ## Report this to http://llvm.org/bugs/ ##
11395 ## ------------------------------------ ##
11397 ) | sed "s/^/$as_me: WARNING: /" >&2
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 eval "$as_ac_Header=\$ac_header_preproc"
11407 ac_res=`eval echo '${'$as_ac_Header'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11424 for ac_func in strchr index
11426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11440 #define $ac_func innocuous_$ac_func
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below.
11444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 <limits.h> exists even on freestanding compilers. */
11448 # include <limits.h>
11450 # include <assert.h>
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11462 /* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465 #if defined __stub_$ac_func || defined __stub___$ac_func
11472 return $ac_func ();
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest$ac_exeext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 eval "$as_ac_var=yes"
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 eval "$as_ac_var=no"
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11522 ac_res=`eval echo '${'$as_ac_var'}'`
11523 { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11525 if test `eval echo '${'$as_ac_var'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11535 for ac_func in strrchr rindex
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11551 #define $ac_func innocuous_$ac_func
11553 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $ac_func (); below.
11555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 <limits.h> exists even on freestanding compilers. */
11559 # include <limits.h>
11561 # include <assert.h>
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined __stub_$ac_func || defined __stub___$ac_func
11583 return $ac_func ();
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_link") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11603 { (case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_try") 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 eval "$as_ac_var=yes"
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 eval "$as_ac_var=no"
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11633 ac_res=`eval echo '${'$as_ac_var'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11636 if test `eval echo '${'$as_ac_var'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 for ac_func in memcpy bcopy
11648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662 #define $ac_func innocuous_$ac_func
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11670 # include <limits.h>
11672 # include <assert.h>
11677 /* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11684 /* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 return $ac_func ();
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (ac_try="$ac_link"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_link") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 eval "$as_ac_var=yes"
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 eval "$as_ac_var=no"
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11744 ac_res=`eval echo '${'$as_ac_var'}'`
11745 { echo "$as_me:$LINENO: result: $ac_res" >&5
11746 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_var'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 for ac_func in memmove strcmp
11759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cat >conftest.$ac_ext <<_ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11773 #define $ac_func innocuous_$ac_func
11775 /* System header to define __stub macros and hopefully few prototypes,
11776 which can conflict with char $ac_func (); below.
11777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11778 <limits.h> exists even on freestanding compilers. */
11781 # include <limits.h>
11783 # include <assert.h>
11788 /* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11795 /* The GNU C library defines this for functions which it implements
11796 to always fail with ENOSYS. Some functions are actually named
11797 something starting with __ and the normal name is an alias. */
11798 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 return $ac_func ();
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (ac_try="$ac_link"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_link") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_try") 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 eval "$as_ac_var=yes"
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 eval "$as_ac_var=no"
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11855 ac_res=`eval echo '${'$as_ac_var'}'`
11856 { echo "$as_me:$LINENO: result: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869 for ac_func in closedir opendir readdir
11871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11885 #define $ac_func innocuous_$ac_func
11887 /* System header to define __stub macros and hopefully few prototypes,
11888 which can conflict with char $ac_func (); below.
11889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890 <limits.h> exists even on freestanding compilers. */
11893 # include <limits.h>
11895 # include <assert.h>
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11907 /* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910 #if defined __stub_$ac_func || defined __stub___$ac_func
11917 return $ac_func ();
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 eval "$as_ac_var=yes"
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 eval "$as_ac_var=no"
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11967 ac_res=`eval echo '${'$as_ac_var'}'`
11968 { echo "$as_me:$LINENO: result: $ac_res" >&5
11969 echo "${ECHO_T}$ac_res" >&6; }
11970 if test `eval echo '${'$as_ac_var'}'` = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11981 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11994 if test "$GCC" != "yes" && test "$ICC" != "yes"
11996 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11997 echo "$as_me: error: gcc|icc required but not found" >&2;}
11998 { (exit 1); exit 1; }; }
12001 if test "$GXX" != "yes" && test "$IXX" != "yes"
12003 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12004 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12005 { (exit 1); exit 1; }; }
12008 if test "$GCC" = "yes"
12010 cat >conftest.$ac_ext <<_ACEOF
12011 #if !defined(__GNUC__) || __GNUC__ < 3
12012 #error Unsupported GCC version
12016 rm -f conftest.$ac_objext
12017 if { (ac_try="$ac_compile"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12056 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12057 { (exit 1); exit 1; }; }
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 if test -z "$llvm_cv_gnu_make_command"
12065 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12066 echo "$as_me: error: GNU Make required but not found" >&2;}
12067 { (exit 1); exit 1; }; }
12070 { echo "$as_me:$LINENO: result: ok" >&5
12071 echo "${ECHO_T}ok" >&6; }
12073 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12074 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12075 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12077 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12079 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12081 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12082 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12086 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12087 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_m_sin+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_check_lib_save_LIBS=$LIBS
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_link") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest$ac_exeext'
12140 { (case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_try") 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_cv_lib_m_sin=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12157 rm -f core conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12162 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12163 if test $ac_cv_lib_m_sin = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_LIBM 1
12172 if test "$llvm_cv_os_type" = "MingW" ; then
12174 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12175 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12176 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-limagehlp $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (ac_try="$ac_link"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_link") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_lib_imagehlp_main=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_imagehlp_main=no
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12244 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12245 if test $ac_cv_lib_imagehlp_main = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define HAVE_LIBIMAGEHLP 1
12250 LIBS="-limagehlp $LIBS"
12255 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12256 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12257 if test "${ac_cv_lib_psapi_main+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-lpsapi $LIBS"
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (ac_try="$ac_link"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_link") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12293 { (case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_try") 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest$ac_exeext'
12303 { (case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_try") 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_psapi_main=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_lib_psapi_main=no
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12325 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12326 if test $ac_cv_lib_psapi_main = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_LIBPSAPI 1
12331 LIBS="-lpsapi $LIBS"
12337 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12338 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12339 if test "${ac_cv_search_dlopen+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 ac_func_search_save_LIBS=$LIBS
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12350 /* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
12365 for ac_lib in '' dl; do
12366 if test -z "$ac_lib"; then
12367 ac_res="none required"
12370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (ac_try="$ac_link"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_try") 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_search_dlopen=$ac_res
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12414 rm -f core conftest.err conftest.$ac_objext \
12416 if test "${ac_cv_search_dlopen+set}" = set; then
12420 if test "${ac_cv_search_dlopen+set}" = set; then
12423 ac_cv_search_dlopen=no
12425 rm conftest.$ac_ext
12426 LIBS=$ac_func_search_save_LIBS
12428 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12429 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12430 ac_res=$ac_cv_search_dlopen
12431 if test "$ac_res" != no; then
12432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12434 cat >>confdefs.h <<\_ACEOF
12435 #define HAVE_DLOPEN 1
12439 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12440 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12444 if test "$llvm_cv_enable_libffi" = "yes" ; then
12445 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12446 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12447 if test "${ac_cv_search_ffi_call+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 ac_func_search_save_LIBS=$LIBS
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12468 return ffi_call ();
12473 for ac_lib in '' ffi; do
12474 if test -z "$ac_lib"; then
12475 ac_res="none required"
12478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (ac_try="$ac_link"
12482 case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_link") 2>conftest.er1
12489 grep -v '^ *+' conftest.er1 >conftest.err
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_search_ffi_call=$ac_res
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12522 rm -f core conftest.err conftest.$ac_objext \
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
12528 if test "${ac_cv_search_ffi_call+set}" = set; then
12531 ac_cv_search_ffi_call=no
12533 rm conftest.$ac_ext
12534 LIBS=$ac_func_search_save_LIBS
12536 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12537 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12538 ac_res=$ac_cv_search_ffi_call
12539 if test "$ac_res" != no; then
12540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12542 cat >>confdefs.h <<\_ACEOF
12543 #define HAVE_FFI_CALL 1
12547 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12548 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12549 { (exit 1); exit 1; }; }
12554 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12555 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12556 if test "${ac_cv_search_mallinfo+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_func_search_save_LIBS=$LIBS
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12577 return mallinfo ();
12582 for ac_lib in '' malloc; do
12583 if test -z "$ac_lib"; then
12584 ac_res="none required"
12587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12589 rm -f conftest.$ac_objext conftest$ac_exeext
12590 if { (ac_try="$ac_link"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12604 { (case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_try") 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_search_mallinfo=$ac_res
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12631 rm -f core conftest.err conftest.$ac_objext \
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
12637 if test "${ac_cv_search_mallinfo+set}" = set; then
12640 ac_cv_search_mallinfo=no
12642 rm conftest.$ac_ext
12643 LIBS=$ac_func_search_save_LIBS
12645 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12646 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12647 ac_res=$ac_cv_search_mallinfo
12648 if test "$ac_res" != no; then
12649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12651 cat >>confdefs.h <<\_ACEOF
12652 #define HAVE_MALLINFO 1
12658 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12660 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12661 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12662 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-lpthread $LIBS"
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12680 char pthread_mutex_init ();
12684 return pthread_mutex_init ();
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (ac_try="$ac_link"
12691 case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_link") 2>conftest.er1
12698 grep -v '^ *+' conftest.er1 >conftest.err
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_try") 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_lib_pthread_pthread_mutex_init=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_cv_lib_pthread_pthread_mutex_init=no
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12736 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12737 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_LIBPTHREAD 1
12742 LIBS="-lpthread $LIBS"
12746 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12747 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12748 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 ac_func_search_save_LIBS=$LIBS
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char pthread_mutex_lock ();
12769 return pthread_mutex_lock ();
12774 for ac_lib in '' pthread; do
12775 if test -z "$ac_lib"; then
12776 ac_res="none required"
12779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_link") 2>conftest.er1
12790 grep -v '^ *+' conftest.er1 >conftest.err
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest$ac_exeext'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_search_pthread_mutex_lock=$ac_res
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12823 rm -f core conftest.err conftest.$ac_objext \
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12829 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12832 ac_cv_search_pthread_mutex_lock=no
12834 rm conftest.$ac_ext
12835 LIBS=$ac_func_search_save_LIBS
12837 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12838 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12839 ac_res=$ac_cv_search_pthread_mutex_lock
12840 if test "$ac_res" != no; then
12841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_PTHREAD_MUTEX_LOCK 1
12849 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12850 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12851 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 ac_func_search_save_LIBS=$LIBS
12855 cat >conftest.$ac_ext <<_ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12868 char pthread_rwlock_init ();
12872 return pthread_rwlock_init ();
12877 for ac_lib in '' pthread; do
12878 if test -z "$ac_lib"; then
12879 ac_res="none required"
12882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_search_pthread_rwlock_init=$ac_res
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f core conftest.err conftest.$ac_objext \
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12932 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12935 ac_cv_search_pthread_rwlock_init=no
12937 rm conftest.$ac_ext
12938 LIBS=$ac_func_search_save_LIBS
12940 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12941 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12942 ac_res=$ac_cv_search_pthread_rwlock_init
12943 if test "$ac_res" != no; then
12944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_PTHREAD_RWLOCK_INIT 1
12952 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12953 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12954 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 ac_func_search_save_LIBS=$LIBS
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12971 char pthread_getspecific ();
12975 return pthread_getspecific ();
12980 for ac_lib in '' pthread; do
12981 if test -z "$ac_lib"; then
12982 ac_res="none required"
12985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_link") 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_search_pthread_getspecific=$ac_res
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13029 rm -f core conftest.err conftest.$ac_objext \
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13035 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13038 ac_cv_search_pthread_getspecific=no
13040 rm conftest.$ac_ext
13041 LIBS=$ac_func_search_save_LIBS
13043 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13044 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13045 ac_res=$ac_cv_search_pthread_getspecific
13046 if test "$ac_res" != no; then
13047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_PTHREAD_GETSPECIFIC 1
13058 # Check whether --with-udis86 was given.
13059 if test "${with_udis86+set}" = set; then
13060 withval=$with_udis86;
13065 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13068 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13069 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13070 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-ludis86 $LIBS"
13075 cat >conftest.$ac_ext <<_ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (ac_try="$ac_link"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_link") 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_lib_udis86_ud_init=yes
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ac_cv_lib_udis86_ud_init=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13144 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13145 if test $ac_cv_lib_udis86_ud_init = yes; then
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_LIBUDIS86 1
13150 LIBS="-ludis86 $LIBS"
13154 echo "Error! You need to have libudis86 around."
13166 cat >>confdefs.h <<_ACEOF
13167 #define USE_UDIS86 $USE_UDIS86
13172 # Check whether --with-oprofile was given.
13173 if test "${with_oprofile+set}" = set; then
13174 withval=$with_oprofile;
13178 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13179 no) llvm_cv_oppath=
13182 *) llvm_cv_oppath="${withval}/lib/oprofile"
13183 CPPFLAGS="-I${withval}/include";;
13185 case $llvm_cv_os_type in
13187 if test -n "$llvm_cv_oppath" ; then
13188 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13189 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13190 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13191 if test "${ac_cv_search_bfd_init+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 ac_func_search_save_LIBS=$LIBS
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13212 return bfd_init ();
13217 for ac_lib in '' bfd; do
13218 if test -z "$ac_lib"; then
13219 ac_res="none required"
13222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_search_bfd_init=$ac_res
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13266 rm -f core conftest.err conftest.$ac_objext \
13268 if test "${ac_cv_search_bfd_init+set}" = set; then
13272 if test "${ac_cv_search_bfd_init+set}" = set; then
13275 ac_cv_search_bfd_init=no
13277 rm conftest.$ac_ext
13278 LIBS=$ac_func_search_save_LIBS
13280 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13281 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13282 ac_res=$ac_cv_search_bfd_init
13283 if test "$ac_res" != no; then
13284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13288 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13289 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13290 if test "${ac_cv_search_op_open_agent+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_func_search_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13307 char op_open_agent ();
13311 return op_open_agent ();
13316 for ac_lib in '' opagent; do
13317 if test -z "$ac_lib"; then
13318 ac_res="none required"
13321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_search_op_open_agent=$ac_res
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13365 rm -f core conftest.err conftest.$ac_objext \
13367 if test "${ac_cv_search_op_open_agent+set}" = set; then
13371 if test "${ac_cv_search_op_open_agent+set}" = set; then
13374 ac_cv_search_op_open_agent=no
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13380 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13381 ac_res=$ac_cv_search_op_open_agent
13382 if test "$ac_res" != no; then
13383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13387 echo "Error! You need to have libopagent around."
13392 if test "${ac_cv_header_opagent_h+set}" = set; then
13393 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13394 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13395 if test "${ac_cv_header_opagent_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13399 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13401 # Is the header compilable?
13402 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13403 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13411 #include <opagent.h>
13413 rm -f conftest.$ac_objext
13414 if { (ac_try="$ac_compile"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_compile") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_header_compiler=yes
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_header_compiler=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457 echo "${ECHO_T}$ac_header_compiler" >&6; }
13459 # Is the header present?
13460 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13461 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 #include <opagent.h>
13470 if { (ac_try="$ac_cpp conftest.$ac_ext"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } >/dev/null; then
13483 if test -s conftest.err; then
13484 ac_cpp_err=$ac_c_preproc_warn_flag
13485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13492 if test -z "$ac_cpp_err"; then
13493 ac_header_preproc=yes
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ac_header_preproc=no
13501 rm -f conftest.err conftest.$ac_ext
13502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503 echo "${ECHO_T}$ac_header_preproc" >&6; }
13505 # So? What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13511 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13512 ac_header_preproc=yes
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13516 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13518 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13520 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13522 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13524 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13526 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13528 ## ------------------------------------ ##
13529 ## Report this to http://llvm.org/bugs/ ##
13530 ## ------------------------------------ ##
13532 ) | sed "s/^/$as_me: WARNING: /" >&2
13535 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13536 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_cv_header_opagent_h=$ac_header_preproc
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13546 if test $ac_cv_header_opagent_h = yes; then
13550 echo "Error! You need to have opagent.h around."
13558 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13559 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13560 { (exit 1); exit 1; }; } ;;
13571 cat >>confdefs.h <<_ACEOF
13572 #define LLVM_USE_OPROFILE $USE_OPROFILE
13577 # Check whether --with-intel-jitevents was given.
13578 if test "${with_intel_jitevents+set}" = set; then
13579 withval=$with_intel_jitevents;
13580 case $llvm_cv_os_type in
13581 Linux|Win32|Cygwin|MingW) ;;
13583 { { echo "$as_me:$LINENO: error:
13584 Intel JIT API support is available on Linux and Windows only.\"" >&5
13585 echo "$as_me: error:
13586 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13587 { (exit 1); exit 1; }; } ;;
13590 USE_INTEL_JITEVENTS=1
13592 case "$llvm_cv_target_arch" in
13593 x86) llvm_intel_jitevents_archdir="lib32";;
13594 x86_64) llvm_intel_jitevents_archdir="lib64";;
13595 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13598 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13599 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13601 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13602 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13609 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13610 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13612 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13613 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13614 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 ac_func_search_save_LIBS=$LIBS
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13631 char iJIT_IsProfilingActive ();
13635 return iJIT_IsProfilingActive ();
13640 for ac_lib in '' jitprofiling; do
13641 if test -z "$ac_lib"; then
13642 ac_res="none required"
13645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_link") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13689 rm -f core conftest.err conftest.$ac_objext \
13691 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13695 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13698 ac_cv_search_iJIT_IsProfilingActive=no
13700 rm conftest.$ac_ext
13701 LIBS=$ac_func_search_save_LIBS
13703 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13704 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13705 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13706 if test "$ac_res" != no; then
13707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13711 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13716 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13717 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13718 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13719 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13723 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13725 # Is the header compilable?
13726 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13727 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13728 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 $ac_includes_default
13735 #include <jitprofiling.h>
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_header_compiler=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13785 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <jitprofiling.h>
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null; then
13807 if test -s conftest.err; then
13808 ac_cpp_err=$ac_c_preproc_warn_flag
13809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13816 if test -z "$ac_cpp_err"; then
13817 ac_header_preproc=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_header_preproc=no
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13832 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
13839 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13852 ## ------------------------------------ ##
13853 ## Report this to http://llvm.org/bugs/ ##
13854 ## ------------------------------------ ##
13856 ) | sed "s/^/$as_me: WARNING: /" >&2
13859 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13860 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 ac_cv_header_jitprofiling_h=$ac_header_preproc
13866 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13867 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13870 if test $ac_cv_header_jitprofiling_h = yes; then
13874 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13884 USE_INTEL_JITEVENTS=0
13890 cat >>confdefs.h <<_ACEOF
13891 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13895 for ac_prog in xml2-config
13897 # Extract the first word of "$ac_prog", so it can be a program name with args.
13898 set dummy $ac_prog; ac_word=$2
13899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13901 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 if test -n "$XML2CONFIG"; then
13905 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_XML2CONFIG="$ac_prog"
13915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13924 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13925 if test -n "$XML2CONFIG"; then
13926 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13927 echo "${ECHO_T}$XML2CONFIG" >&6; }
13929 { echo "$as_me:$LINENO: result: no" >&5
13930 echo "${ECHO_T}no" >&6; }
13934 test -n "$XML2CONFIG" && break
13938 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13939 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13940 if test "x$XML2CONFIG" = "x"; then
13941 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13942 echo "${ECHO_T}xml2-config not found" >&6; }
13944 LIBXML2_INC=`$XML2CONFIG --cflags`
13945 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13946 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13947 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13948 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13949 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 ac_check_lib_save_LIBS=$LIBS
13953 LIBS="-lxml2 $LIBS"
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13961 /* Override any GCC internal prototype to avoid an error.
13962 Use char because int might match the return type of a GCC
13963 builtin and then its argument prototype would still apply. */
13967 char xmlReadFile ();
13971 return xmlReadFile ();
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (ac_try="$ac_link"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_link") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; } &&
14000 { ac_try='test -s conftest$ac_exeext'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_lib_xml2_xmlReadFile=yes
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_cv_lib_xml2_xmlReadFile=no
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14022 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14023 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14024 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14026 cat >>confdefs.h <<\_ACEOF
14027 #define CLANG_HAVE_LIBXML 1
14030 LIBXML2_LIBS="-lxml2"
14043 ac_header_dirent=no
14044 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14045 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14046 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14047 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 #include <sys/types.h>
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 eval "$as_ac_Header=yes"
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 eval "$as_ac_Header=no"
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 ac_res=`eval echo '${'$as_ac_Header'}'`
14114 { echo "$as_me:$LINENO: result: $ac_res" >&5
14115 echo "${ECHO_T}$ac_res" >&6; }
14116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14117 cat >>confdefs.h <<_ACEOF
14118 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14121 ac_header_dirent=$ac_hdr; break
14125 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14126 if test $ac_header_dirent = dirent.h; then
14127 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14129 if test "${ac_cv_search_opendir+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 ac_func_search_save_LIBS=$LIBS
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14155 for ac_lib in '' dir; do
14156 if test -z "$ac_lib"; then
14157 ac_res="none required"
14160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_link") 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_search_opendir=$ac_res
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14204 rm -f core conftest.err conftest.$ac_objext \
14206 if test "${ac_cv_search_opendir+set}" = set; then
14210 if test "${ac_cv_search_opendir+set}" = set; then
14213 ac_cv_search_opendir=no
14215 rm conftest.$ac_ext
14216 LIBS=$ac_func_search_save_LIBS
14218 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14219 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14220 ac_res=$ac_cv_search_opendir
14221 if test "$ac_res" != no; then
14222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14227 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14228 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14229 if test "${ac_cv_search_opendir+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 ac_func_search_save_LIBS=$LIBS
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14255 for ac_lib in '' x; do
14256 if test -z "$ac_lib"; then
14257 ac_res="none required"
14260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_cv_search_opendir=$ac_res
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14304 rm -f core conftest.err conftest.$ac_objext \
14306 if test "${ac_cv_search_opendir+set}" = set; then
14310 if test "${ac_cv_search_opendir+set}" = set; then
14313 ac_cv_search_opendir=no
14315 rm conftest.$ac_ext
14316 LIBS=$ac_func_search_save_LIBS
14318 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14319 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14320 ac_res=$ac_cv_search_opendir
14321 if test "$ac_res" != no; then
14322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14328 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14329 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14330 if test "${ac_cv_header_mmap_anon+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <sys/mman.h>
14346 #include <unistd.h>
14351 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_compile") 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_try") 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_header_mmap_anon=yes
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_header_mmap_anon=no
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 ac_cpp='$CPP $CPPFLAGS'
14401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14408 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14409 if test "$ac_cv_header_mmap_anon" = yes; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_MMAP_ANONYMOUS 1
14417 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14418 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14419 if test "${ac_cv_header_stat_broken+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 cat >conftest.$ac_ext <<_ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14429 #include <sys/stat.h>
14431 #if defined S_ISBLK && defined S_IFDIR
14432 # if S_ISBLK (S_IFDIR)
14437 #if defined S_ISBLK && defined S_IFCHR
14438 # if S_ISBLK (S_IFCHR)
14443 #if defined S_ISLNK && defined S_IFREG
14444 # if S_ISLNK (S_IFREG)
14449 #if defined S_ISSOCK && defined S_IFREG
14450 # if S_ISSOCK (S_IFREG)
14456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "You lose" >/dev/null 2>&1; then
14458 ac_cv_header_stat_broken=yes
14460 ac_cv_header_stat_broken=no
14465 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14466 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14467 if test $ac_cv_header_stat_broken = yes; then
14469 cat >>confdefs.h <<\_ACEOF
14470 #define STAT_MACROS_BROKEN 1
14475 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14476 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14477 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 #include <sys/types.h>
14487 #include <sys/wait.h>
14488 #ifndef WEXITSTATUS
14489 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14492 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14505 rm -f conftest.$ac_objext
14506 if { (ac_try="$ac_compile"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_compile") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest.$ac_objext'
14530 { (case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_try") 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_header_sys_wait_h=yes
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_cv_header_sys_wait_h=no
14547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14550 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14551 if test $ac_cv_header_sys_wait_h = yes; then
14553 cat >>confdefs.h <<\_ACEOF
14554 #define HAVE_SYS_WAIT_H 1
14559 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14561 if test "${ac_cv_header_time+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 cat >conftest.$ac_ext <<_ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570 #include <sys/types.h>
14571 #include <sys/time.h>
14577 if ((struct tm *) 0)
14583 rm -f conftest.$ac_objext
14584 if { (ac_try="$ac_compile"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_compile") 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_header_time=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_header_time=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14628 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14629 if test $ac_cv_header_time = yes; then
14631 cat >>confdefs.h <<\_ACEOF
14632 #define TIME_WITH_SYS_TIME 1
14644 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 ac_res=`eval echo '${'$as_ac_Header'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14657 # Is the header compilable?
14658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 $ac_includes_default
14667 #include <$ac_header>
14669 rm -f conftest.$ac_objext
14670 if { (ac_try="$ac_compile"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_compile") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14684 { (case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_try") 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_try") 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 ac_header_compiler=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_compiler=no
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14713 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715 # Is the header present?
14716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 #include <$ac_header>
14726 if { (ac_try="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } >/dev/null; then
14739 if test -s conftest.err; then
14740 ac_cpp_err=$ac_c_preproc_warn_flag
14741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14748 if test -z "$ac_cpp_err"; then
14749 ac_header_preproc=yes
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_header_preproc=no
14757 rm -f conftest.err conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759 echo "${ECHO_T}$ac_header_preproc" >&6; }
14761 # So? What about this header?
14762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14768 ac_header_preproc=yes
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784 ## ------------------------------------ ##
14785 ## Report this to http://llvm.org/bugs/ ##
14786 ## ------------------------------------ ##
14788 ) | sed "s/^/$as_me: WARNING: /" >&2
14791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 eval "$as_ac_Header=\$ac_header_preproc"
14798 ac_res=`eval echo '${'$as_ac_Header'}'`
14799 { echo "$as_me:$LINENO: result: $ac_res" >&5
14800 echo "${ECHO_T}$ac_res" >&6; }
14803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14818 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 ac_res=`eval echo '${'$as_ac_Header'}'`
14828 { echo "$as_me:$LINENO: result: $ac_res" >&5
14829 echo "${ECHO_T}$ac_res" >&6; }
14831 # Is the header compilable?
14832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14833 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
14841 #include <$ac_header>
14843 rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_compile") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_try") 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_header_compiler=yes
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_header_compiler=no
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887 echo "${ECHO_T}$ac_header_compiler" >&6; }
14889 # Is the header present?
14890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <$ac_header>
14900 if { (ac_try="$ac_cpp conftest.$ac_ext"
14901 case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908 grep -v '^ *+' conftest.er1 >conftest.err
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } >/dev/null; then
14913 if test -s conftest.err; then
14914 ac_cpp_err=$ac_c_preproc_warn_flag
14915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14922 if test -z "$ac_cpp_err"; then
14923 ac_header_preproc=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_header_preproc=no
14931 rm -f conftest.err conftest.$ac_ext
14932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14933 echo "${ECHO_T}$ac_header_preproc" >&6; }
14935 # So? What about this header?
14936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14942 ac_header_preproc=yes
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14958 ## ------------------------------------ ##
14959 ## Report this to http://llvm.org/bugs/ ##
14960 ## ------------------------------------ ##
14962 ) | sed "s/^/$as_me: WARNING: /" >&2
14965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 eval "$as_ac_Header=\$ac_header_preproc"
14972 ac_res=`eval echo '${'$as_ac_Header'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974 echo "${ECHO_T}$ac_res" >&6; }
14977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14978 cat >>confdefs.h <<_ACEOF
14979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 for ac_header in utime.h windows.h
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 ac_res=`eval echo '${'$as_ac_Header'}'`
14998 { echo "$as_me:$LINENO: result: $ac_res" >&5
14999 echo "${ECHO_T}$ac_res" >&6; }
15001 # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 $ac_includes_default
15011 #include <$ac_header>
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_header_compiler=yes
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_header_compiler=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <$ac_header>
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev/null; then
15083 if test -s conftest.err; then
15084 ac_cpp_err=$ac_c_preproc_warn_flag
15085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15092 if test -z "$ac_cpp_err"; then
15093 ac_header_preproc=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_header_preproc=no
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15105 # So? What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15128 ## ------------------------------------ ##
15129 ## Report this to http://llvm.org/bugs/ ##
15130 ## ------------------------------------ ##
15132 ) | sed "s/^/$as_me: WARNING: /" >&2
15135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 eval "$as_ac_Header=\$ac_header_preproc"
15142 ac_res=`eval echo '${'$as_ac_Header'}'`
15143 { echo "$as_me:$LINENO: result: $ac_res" >&5
15144 echo "${ECHO_T}$ac_res" >&6; }
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15161 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171 { echo "$as_me:$LINENO: result: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15174 # Is the header compilable?
15175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15184 #include <$ac_header>
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_header_compiler=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_header_compiler=no
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15230 echo "${ECHO_T}$ac_header_compiler" >&6; }
15232 # Is the header present?
15233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 #include <$ac_header>
15243 if { (ac_try="$ac_cpp conftest.$ac_ext"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } >/dev/null; then
15256 if test -s conftest.err; then
15257 ac_cpp_err=$ac_c_preproc_warn_flag
15258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265 if test -z "$ac_cpp_err"; then
15266 ac_header_preproc=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_header_preproc=no
15274 rm -f conftest.err conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276 echo "${ECHO_T}$ac_header_preproc" >&6; }
15278 # So? What about this header?
15279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15285 ac_header_preproc=yes
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15301 ## ------------------------------------ ##
15302 ## Report this to http://llvm.org/bugs/ ##
15303 ## ------------------------------------ ##
15305 ) | sed "s/^/$as_me: WARNING: /" >&2
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 eval "$as_ac_Header=\$ac_header_preproc"
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15333 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 ac_res=`eval echo '${'$as_ac_Header'}'`
15343 { echo "$as_me:$LINENO: result: $ac_res" >&5
15344 echo "${ECHO_T}$ac_res" >&6; }
15346 # Is the header compilable?
15347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 $ac_includes_default
15356 #include <$ac_header>
15358 rm -f conftest.$ac_objext
15359 if { (ac_try="$ac_compile"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_compile") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15373 { (case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_try") 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_try") 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_header_compiler=yes
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 ac_header_compiler=no
15400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15402 echo "${ECHO_T}$ac_header_compiler" >&6; }
15404 # Is the header present?
15405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 #include <$ac_header>
15415 if { (ac_try="$ac_cpp conftest.$ac_ext"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } >/dev/null; then
15428 if test -s conftest.err; then
15429 ac_cpp_err=$ac_c_preproc_warn_flag
15430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437 if test -z "$ac_cpp_err"; then
15438 ac_header_preproc=yes
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_header_preproc=no
15446 rm -f conftest.err conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15448 echo "${ECHO_T}$ac_header_preproc" >&6; }
15450 # So? What about this header?
15451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15457 ac_header_preproc=yes
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15473 ## ------------------------------------ ##
15474 ## Report this to http://llvm.org/bugs/ ##
15475 ## ------------------------------------ ##
15477 ) | sed "s/^/$as_me: WARNING: /" >&2
15480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 eval "$as_ac_Header=\$ac_header_preproc"
15487 ac_res=`eval echo '${'$as_ac_Header'}'`
15488 { echo "$as_me:$LINENO: result: $ac_res" >&5
15489 echo "${ECHO_T}$ac_res" >&6; }
15492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15502 for ac_header in valgrind/valgrind.h
15504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 ac_res=`eval echo '${'$as_ac_Header'}'`
15512 { echo "$as_me:$LINENO: result: $ac_res" >&5
15513 echo "${ECHO_T}$ac_res" >&6; }
15515 # Is the header compilable?
15516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 $ac_includes_default
15525 #include <$ac_header>
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_compile") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_header_compiler=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_header_compiler=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15571 echo "${ECHO_T}$ac_header_compiler" >&6; }
15573 # Is the header present?
15574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <$ac_header>
15584 if { (ac_try="$ac_cpp conftest.$ac_ext"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } >/dev/null; then
15597 if test -s conftest.err; then
15598 ac_cpp_err=$ac_c_preproc_warn_flag
15599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15606 if test -z "$ac_cpp_err"; then
15607 ac_header_preproc=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_header_preproc=no
15615 rm -f conftest.err conftest.$ac_ext
15616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6; }
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc=yes
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15642 ## ------------------------------------ ##
15643 ## Report this to http://llvm.org/bugs/ ##
15644 ## ------------------------------------ ##
15646 ) | sed "s/^/$as_me: WARNING: /" >&2
15649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 eval "$as_ac_Header=\$ac_header_preproc"
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657 { echo "$as_me:$LINENO: result: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15662 cat >>confdefs.h <<_ACEOF
15663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15671 for ac_header in fenv.h
15673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 ac_res=`eval echo '${'$as_ac_Header'}'`
15681 { echo "$as_me:$LINENO: result: $ac_res" >&5
15682 echo "${ECHO_T}$ac_res" >&6; }
15684 # Is the header compilable?
15685 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15686 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15694 #include <$ac_header>
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try='test -s conftest.$ac_objext'
15721 { (case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_try") 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_header_compiler=yes
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 ac_header_compiler=no
15738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15740 echo "${ECHO_T}$ac_header_compiler" >&6; }
15742 # Is the header present?
15743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 #include <$ac_header>
15753 if { (ac_try="$ac_cpp conftest.$ac_ext"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } >/dev/null; then
15766 if test -s conftest.err; then
15767 ac_cpp_err=$ac_c_preproc_warn_flag
15768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15775 if test -z "$ac_cpp_err"; then
15776 ac_header_preproc=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_preproc=no
15784 rm -f conftest.err conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6; }
15788 # So? What about this header?
15789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795 ac_header_preproc=yes
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15811 ## ------------------------------------ ##
15812 ## Report this to http://llvm.org/bugs/ ##
15813 ## ------------------------------------ ##
15815 ) | sed "s/^/$as_me: WARNING: /" >&2
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 eval "$as_ac_Header=\$ac_header_preproc"
15825 ac_res=`eval echo '${'$as_ac_Header'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827 echo "${ECHO_T}$ac_res" >&6; }
15830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15839 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15841 for ac_header in pthread.h
15843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 ac_res=`eval echo '${'$as_ac_Header'}'`
15851 { echo "$as_me:$LINENO: result: $ac_res" >&5
15852 echo "${ECHO_T}$ac_res" >&6; }
15854 # Is the header compilable?
15855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 $ac_includes_default
15864 #include <$ac_header>
15866 rm -f conftest.$ac_objext
15867 if { (ac_try="$ac_compile"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_compile") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
15891 { (case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_try") 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_header_compiler=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_header_compiler=no
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15910 echo "${ECHO_T}$ac_header_compiler" >&6; }
15912 # Is the header present?
15913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 #include <$ac_header>
15923 if { (ac_try="$ac_cpp conftest.$ac_ext"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15931 grep -v '^ *+' conftest.er1 >conftest.err
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev/null; then
15936 if test -s conftest.err; then
15937 ac_cpp_err=$ac_c_preproc_warn_flag
15938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15945 if test -z "$ac_cpp_err"; then
15946 ac_header_preproc=yes
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ac_header_preproc=no
15954 rm -f conftest.err conftest.$ac_ext
15955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6; }
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc=yes
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15981 ## ------------------------------------ ##
15982 ## Report this to http://llvm.org/bugs/ ##
15983 ## ------------------------------------ ##
15985 ) | sed "s/^/$as_me: WARNING: /" >&2
15988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 eval "$as_ac_Header=\$ac_header_preproc"
15995 ac_res=`eval echo '${'$as_ac_Header'}'`
15996 { echo "$as_me:$LINENO: result: $ac_res" >&5
15997 echo "${ECHO_T}$ac_res" >&6; }
16000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16001 cat >>confdefs.h <<_ACEOF
16002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16018 if test "$llvm_cv_enable_libffi" = "yes" ; then
16021 for ac_header in ffi.h ffi/ffi.h
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16034 # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_header_compiler=yes
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_header_compiler=no
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16090 echo "${ECHO_T}$ac_header_compiler" >&6; }
16092 # Is the header present?
16093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 #include <$ac_header>
16103 if { (ac_try="$ac_cpp conftest.$ac_ext"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } >/dev/null; then
16116 if test -s conftest.err; then
16117 ac_cpp_err=$ac_c_preproc_warn_flag
16118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16125 if test -z "$ac_cpp_err"; then
16126 ac_header_preproc=yes
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_header_preproc=no
16134 rm -f conftest.err conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16136 echo "${ECHO_T}$ac_header_preproc" >&6; }
16138 # So? What about this header?
16139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16145 ac_header_preproc=yes
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16161 ## ------------------------------------ ##
16162 ## Report this to http://llvm.org/bugs/ ##
16163 ## ------------------------------------ ##
16165 ) | sed "s/^/$as_me: WARNING: /" >&2
16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 eval "$as_ac_Header=\$ac_header_preproc"
16175 ac_res=`eval echo '${'$as_ac_Header'}'`
16176 { echo "$as_me:$LINENO: result: $ac_res" >&5
16177 echo "${ECHO_T}$ac_res" >&6; }
16180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 for ac_header in CrashReporterClient.h
16194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 ac_res=`eval echo '${'$as_ac_Header'}'`
16202 { echo "$as_me:$LINENO: result: $ac_res" >&5
16203 echo "${ECHO_T}$ac_res" >&6; }
16205 # Is the header compilable?
16206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 $ac_includes_default
16215 #include <$ac_header>
16217 rm -f conftest.$ac_objext
16218 if { (ac_try="$ac_compile"
16219 case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_header_compiler=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_compiler=no
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6; }
16263 # Is the header present?
16264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <$ac_header>
16274 if { (ac_try="$ac_cpp conftest.$ac_ext"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag
16289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16296 if test -z "$ac_cpp_err"; then
16297 ac_header_preproc=yes
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_header_preproc=no
16305 rm -f conftest.err conftest.$ac_ext
16306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16307 echo "${ECHO_T}$ac_header_preproc" >&6; }
16309 # So? What about this header?
16310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16316 ac_header_preproc=yes
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16332 ## ------------------------------------ ##
16333 ## Report this to http://llvm.org/bugs/ ##
16334 ## ------------------------------------ ##
16336 ) | sed "s/^/$as_me: WARNING: /" >&2
16339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 eval "$as_ac_Header=\$ac_header_preproc"
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352 cat >>confdefs.h <<_ACEOF
16353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16362 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 extern const char *__crashreporter_info__;
16371 __crashreporter_info__ = "test";
16376 rm -f conftest.$ac_objext conftest$ac_exeext
16377 if { (ac_try="$ac_link"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_link") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest$ac_exeext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 { echo "$as_me:$LINENO: result: yes" >&5
16411 echo "${ECHO_T}yes" >&6; }
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CRASHREPORTER_INFO 1
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 { echo "$as_me:$LINENO: result: no" >&5
16422 echo "${ECHO_T}no" >&6; }
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_CRASHREPORTER_INFO 0
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16436 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16437 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16438 if test "${ac_cv_huge_val_sanity+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 ac_cpp='$CXXCPP $CPPFLAGS'
16444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16448 ac_save_CXXFLAGS=$CXXFLAGS
16449 CXXFLAGS="$CXXFLAGS -pedantic"
16450 if test "$cross_compiling" = yes; then
16451 ac_cv_huge_val_sanity=yes
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16463 double x = HUGE_VAL; return x != x;
16468 rm -f conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_huge_val_sanity=yes
16490 echo "$as_me: program exited with status $ac_status" >&5
16491 echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 ( exit $ac_status )
16495 ac_cv_huge_val_sanity=no
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16501 CXXFLAGS=$ac_save_CXXFLAGS
16503 ac_cpp='$CPP $CPPFLAGS'
16504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16510 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16511 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16512 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16515 { echo "$as_me:$LINENO: checking for pid_t" >&5
16516 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_pid_t+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 $ac_includes_default
16527 typedef pid_t ac__type_new_;
16531 if ((ac__type_new_ *) 0)
16533 if (sizeof (ac__type_new_))
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_pid_t=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_type_pid_t=no
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16585 if test $ac_cv_type_pid_t = yes; then
16589 cat >>confdefs.h <<_ACEOF
16595 { echo "$as_me:$LINENO: checking for size_t" >&5
16596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16597 if test "${ac_cv_type_size_t+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 $ac_includes_default
16607 typedef size_t ac__type_new_;
16611 if ((ac__type_new_ *) 0)
16613 if (sizeof (ac__type_new_))
16619 rm -f conftest.$ac_objext
16620 if { (ac_try="$ac_compile"
16621 case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_compile") 2>conftest.er1
16628 grep -v '^ *+' conftest.er1 >conftest.err
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_type_size_t=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_type_size_t=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16664 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16665 if test $ac_cv_type_size_t = yes; then
16669 cat >>confdefs.h <<_ACEOF
16670 #define size_t unsigned int
16676 cat >>confdefs.h <<_ACEOF
16677 #define RETSIGTYPE void
16680 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16681 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16682 if test "${ac_cv_struct_tm+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 #include <sys/types.h>
16697 struct tm *tp; tp->tm_sec;
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_struct_tm=time.h
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_struct_tm=sys/time.h
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16747 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16748 if test $ac_cv_struct_tm = sys/time.h; then
16750 cat >>confdefs.h <<\_ACEOF
16751 #define TM_IN_SYS_TIME 1
16756 { echo "$as_me:$LINENO: checking for int64_t" >&5
16757 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16758 if test "${ac_cv_type_int64_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 typedef int64_t ac__type_new_;
16772 if ((ac__type_new_ *) 0)
16774 if (sizeof (ac__type_new_))
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_compile") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest.$ac_objext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_type_int64_t=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_type_int64_t=no
16822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16825 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16826 if test $ac_cv_type_int64_t = yes; then
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_INT64_T 1
16834 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16835 echo "$as_me: error: Type int64_t required but not found" >&2;}
16836 { (exit 1); exit 1; }; }
16839 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16841 if test "${ac_cv_type_uint64_t+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 $ac_includes_default
16851 typedef uint64_t ac__type_new_;
16855 if ((ac__type_new_ *) 0)
16857 if (sizeof (ac__type_new_))
16863 rm -f conftest.$ac_objext
16864 if { (ac_try="$ac_compile"
16865 case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_compile") 2>conftest.er1
16872 grep -v '^ *+' conftest.er1 >conftest.err
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_type_uint64_t=yes
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_cv_type_uint64_t=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16908 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16909 if test $ac_cv_type_uint64_t = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define HAVE_UINT64_T 1
16917 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16918 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16919 if test "${ac_cv_type_u_int64_t+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 $ac_includes_default
16929 typedef u_int64_t ac__type_new_;
16933 if ((ac__type_new_ *) 0)
16935 if (sizeof (ac__type_new_))
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_compile") 2>conftest.er1
16950 grep -v '^ *+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_type_u_int64_t=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_type_u_int64_t=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16985 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16986 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16987 if test $ac_cv_type_u_int64_t = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define HAVE_U_INT64_T 1
16995 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16996 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16997 { (exit 1); exit 1; }; }
17011 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17027 #define $ac_func innocuous_$ac_func
17029 /* System header to define __stub macros and hopefully few prototypes,
17030 which can conflict with char $ac_func (); below.
17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032 <limits.h> exists even on freestanding compilers. */
17035 # include <limits.h>
17037 # include <assert.h>
17042 /* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17049 /* The GNU C library defines this for functions which it implements
17050 to always fail with ENOSYS. Some functions are actually named
17051 something starting with __ and the normal name is an alias. */
17052 #if defined __stub_$ac_func || defined __stub___$ac_func
17059 return $ac_func ();
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 eval "$as_ac_var=yes"
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17103 eval "$as_ac_var=no"
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17109 ac_res=`eval echo '${'$as_ac_var'}'`
17110 { echo "$as_me:$LINENO: result: $ac_res" >&5
17111 echo "${ECHO_T}$ac_res" >&6; }
17112 if test `eval echo '${'$as_ac_var'}'` = yes; then
17113 cat >>confdefs.h <<_ACEOF
17114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17124 for ac_func in powf fmodf strtof round
17126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17140 #define $ac_func innocuous_$ac_func
17142 /* System header to define __stub macros and hopefully few prototypes,
17143 which can conflict with char $ac_func (); below.
17144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17145 <limits.h> exists even on freestanding compilers. */
17148 # include <limits.h>
17150 # include <assert.h>
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17162 /* The GNU C library defines this for functions which it implements
17163 to always fail with ENOSYS. Some functions are actually named
17164 something starting with __ and the normal name is an alias. */
17165 #if defined __stub_$ac_func || defined __stub___$ac_func
17172 return $ac_func ();
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (ac_try="$ac_link"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_link") 2>conftest.er1
17186 grep -v '^ *+' conftest.er1 >conftest.err
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17192 { (case "(($ac_try" in
17193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194 *) ac_try_echo=$ac_try;;
17196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197 (eval "$ac_try") 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest$ac_exeext'
17202 { (case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_try") 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 eval "$as_ac_var=yes"
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 eval "$as_ac_var=no"
17219 rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17222 ac_res=`eval echo '${'$as_ac_var'}'`
17223 { echo "$as_me:$LINENO: result: $ac_res" >&5
17224 echo "${ECHO_T}$ac_res" >&6; }
17225 if test `eval echo '${'$as_ac_var'}'` = yes; then
17226 cat >>confdefs.h <<_ACEOF
17227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
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
17350 for ac_func in isatty mkdtemp mkstemp
17352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 cat >conftest.$ac_ext <<_ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17366 #define $ac_func innocuous_$ac_func
17368 /* System header to define __stub macros and hopefully few prototypes,
17369 which can conflict with char $ac_func (); below.
17370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371 <limits.h> exists even on freestanding compilers. */
17374 # include <limits.h>
17376 # include <assert.h>
17381 /* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17388 /* The GNU C library defines this for functions which it implements
17389 to always fail with ENOSYS. Some functions are actually named
17390 something starting with __ and the normal name is an alias. */
17391 #if defined __stub_$ac_func || defined __stub___$ac_func
17398 return $ac_func ();
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 eval "$as_ac_var=yes"
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 eval "$as_ac_var=no"
17445 rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17448 ac_res=`eval echo '${'$as_ac_var'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482 #define $ac_func innocuous_$ac_func
17484 /* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17490 # include <limits.h>
17492 # include <assert.h>
17497 /* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17504 /* The GNU C library defines this for functions which it implements
17505 to always fail with ENOSYS. Some functions are actually named
17506 something starting with __ and the normal name is an alias. */
17507 #if defined __stub_$ac_func || defined __stub___$ac_func
17514 return $ac_func ();
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 eval "$as_ac_var=yes"
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 eval "$as_ac_var=no"
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17564 ac_res=`eval echo '${'$as_ac_var'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 for ac_func in strerror strerror_r setenv arc4random
17581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595 #define $ac_func innocuous_$ac_func
17597 /* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17603 # include <limits.h>
17605 # include <assert.h>
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17627 return $ac_func ();
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 eval "$as_ac_var=yes"
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 eval "$as_ac_var=no"
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678 { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17692 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708 #define $ac_func innocuous_$ac_func
17710 /* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17716 # include <limits.h>
17718 # include <assert.h>
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17740 return $ac_func ();
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_link") 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest$ac_exeext'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 eval "$as_ac_var=yes"
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 eval "$as_ac_var=no"
17787 rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17790 ac_res=`eval echo '${'$as_ac_var'}'`
17791 { echo "$as_me:$LINENO: result: $ac_res" >&5
17792 echo "${ECHO_T}$ac_res" >&6; }
17793 if test `eval echo '${'$as_ac_var'}'` = yes; then
17794 cat >>confdefs.h <<_ACEOF
17795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17806 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17822 #define $ac_func innocuous_$ac_func
17824 /* System header to define __stub macros and hopefully few prototypes,
17825 which can conflict with char $ac_func (); below.
17826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17827 <limits.h> exists even on freestanding compilers. */
17830 # include <limits.h>
17832 # include <assert.h>
17837 /* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17844 /* The GNU C library defines this for functions which it implements
17845 to always fail with ENOSYS. Some functions are actually named
17846 something starting with __ and the normal name is an alias. */
17847 #if defined __stub_$ac_func || defined __stub___$ac_func
17854 return $ac_func ();
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_link") 2>conftest.er1
17868 grep -v '^ *+' conftest.er1 >conftest.err
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17874 { (case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_try") 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 eval "$as_ac_var=yes"
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 eval "$as_ac_var=no"
17901 rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval echo '${'$as_ac_var'}'`
17905 { echo "$as_me:$LINENO: result: $ac_res" >&5
17906 echo "${ECHO_T}$ac_res" >&6; }
17907 if test `eval echo '${'$as_ac_var'}'` = yes; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17915 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17916 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17917 if test "${llvm_cv_c_printf_a+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 ac_cpp='$CPP $CPPFLAGS'
17922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926 if test "$cross_compiling" = yes; then
17927 llvmac_cv_c_printf_a=no
17929 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17938 #include <stdlib.h>
17944 volatile double A, B;
17948 sprintf(Buffer, "%a", A);
17952 if (A != 0x1.999999999999ap-4)
17959 rm -f conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 llvm_cv_c_printf_a=yes
17981 echo "$as_me: program exited with status $ac_status" >&5
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ( exit $ac_status )
17986 llvmac_cv_c_printf_a=no
17988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17993 ac_cpp='$CPP $CPPFLAGS'
17994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18000 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18001 if test "$llvm_cv_c_printf_a" = "yes"; then
18003 cat >>confdefs.h <<\_ACEOF
18004 #define HAVE_PRINTF_A 1
18010 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18011 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18012 if test "${ac_cv_func_rand48+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 ac_cpp='$CXXCPP $CPPFLAGS'
18017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 #include <stdlib.h>
18031 srand48(0);lrand48();drand48();
18036 rm -f conftest.$ac_objext
18037 if { (ac_try="$ac_compile"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_func_rand48=yes
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 ac_cv_func_rand48=no
18078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18086 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18087 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18089 if test "$ac_cv_func_rand48" = "yes" ; then
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_RAND48 1
18098 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18099 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18100 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 cat >conftest.$ac_ext <<_ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18114 char *p = (char *) strerror_s;
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_compile") 2>conftest.er1
18131 grep -v '^ *+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_have_decl_strerror_s=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_have_decl_strerror_s=no
18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18167 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18168 if test $ac_cv_have_decl_strerror_s = yes; then
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_DECL_STRERROR_S 1
18176 cat >>confdefs.h <<_ACEOF
18177 #define HAVE_DECL_STRERROR_S 0
18185 if test "$llvm_cv_os_type" = "MingW" ; then
18186 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18187 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS=$LIBS
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest$ac_exeext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_lib_gcc__alloca=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_lib_gcc__alloca=no
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18262 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18263 if test $ac_cv_lib_gcc__alloca = yes; then
18265 cat >>confdefs.h <<\_ACEOF
18266 #define HAVE__ALLOCA 1
18271 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18272 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18273 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 ac_check_lib_save_LIBS=$LIBS
18278 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18295 return __alloca ();
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (ac_try="$ac_link"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_link") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18315 { (case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_try") 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_cv_lib_gcc___alloca=yes
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_cv_lib_gcc___alloca=no
18342 rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18347 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18348 if test $ac_cv_lib_gcc___alloca = yes; then
18350 cat >>confdefs.h <<\_ACEOF
18351 #define HAVE___ALLOCA 1
18356 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18357 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18358 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 ac_check_lib_save_LIBS=$LIBS
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18380 return __chkstk ();
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_lib_gcc___chkstk=yes
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_cv_lib_gcc___chkstk=no
18427 rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18432 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18433 if test $ac_cv_lib_gcc___chkstk = yes; then
18435 cat >>confdefs.h <<\_ACEOF
18436 #define HAVE___CHKSTK 1
18441 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18442 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18443 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 ac_check_lib_save_LIBS=$LIBS
18448 cat >conftest.$ac_ext <<_ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18455 /* Override any GCC internal prototype to avoid an error.
18456 Use char because int might match the return type of a GCC
18457 builtin and then its argument prototype would still apply. */
18465 return ___chkstk ();
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18479 grep -v '^ *+' conftest.er1 >conftest.err
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_gcc____chkstk=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_lib_gcc____chkstk=no
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18517 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18518 if test $ac_cv_lib_gcc____chkstk = yes; then
18520 cat >>confdefs.h <<\_ACEOF
18521 #define HAVE____CHKSTK 1
18527 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18528 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18529 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 ac_check_lib_save_LIBS=$LIBS
18534 cat >conftest.$ac_ext <<_ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18551 return __ashldi3 ();
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_link") 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest$ac_exeext'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_cv_lib_gcc___ashldi3=yes
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 ac_cv_lib_gcc___ashldi3=no
18598 rm -f core conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18604 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE___ASHLDI3 1
18612 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18613 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18614 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 ac_check_lib_save_LIBS=$LIBS
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18626 /* Override any GCC internal prototype to avoid an error.
18627 Use char because int might match the return type of a GCC
18628 builtin and then its argument prototype would still apply. */
18636 return __ashrdi3 ();
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (ac_try="$ac_link"
18643 case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_link") 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest$ac_exeext'
18666 { (case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_try") 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 ac_cv_lib_gcc___ashrdi3=yes
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_gcc___ashrdi3=no
18683 rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18688 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18689 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE___ASHRDI3 1
18697 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18698 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18699 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 ac_check_lib_save_LIBS=$LIBS
18704 cat >conftest.$ac_ext <<_ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18711 /* Override any GCC internal prototype to avoid an error.
18712 Use char because int might match the return type of a GCC
18713 builtin and then its argument prototype would still apply. */
18721 return __divdi3 ();
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (ac_try="$ac_link"
18728 case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_link") 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest$ac_exeext'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_lib_gcc___divdi3=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_cv_lib_gcc___divdi3=no
18768 rm -f core conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18773 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18774 if test $ac_cv_lib_gcc___divdi3 = yes; then
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE___DIVDI3 1
18782 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18783 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18784 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_check_lib_save_LIBS=$LIBS
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18796 /* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18806 return __fixdfdi ();
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_link") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_lib_gcc___fixdfdi=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_lib_gcc___fixdfdi=no
18853 rm -f core conftest.err conftest.$ac_objext \
18854 conftest$ac_exeext conftest.$ac_ext
18855 LIBS=$ac_check_lib_save_LIBS
18857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18858 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18859 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE___FIXDFDI 1
18867 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18868 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS=$LIBS
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18891 return __fixsfdi ();
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_gcc___fixsfdi=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_cv_lib_gcc___fixsfdi=no
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18943 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18944 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE___FIXSFDI 1
18952 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18953 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18954 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_check_lib_save_LIBS=$LIBS
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18972 char __floatdidf ();
18976 return __floatdidf ();
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (ac_try="$ac_link"
18983 case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_link") 2>conftest.er1
18990 grep -v '^ *+' conftest.er1 >conftest.err
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_try") 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_gcc___floatdidf=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_gcc___floatdidf=no
19023 rm -f core conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19028 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19029 if test $ac_cv_lib_gcc___floatdidf = yes; then
19031 cat >>confdefs.h <<\_ACEOF
19032 #define HAVE___FLOATDIDF 1
19037 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19038 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19039 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 ac_check_lib_save_LIBS=$LIBS
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19051 /* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19061 return __lshrdi3 ();
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (ac_try="$ac_link"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_link") 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest$ac_exeext'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_cv_lib_gcc___lshrdi3=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_cv_lib_gcc___lshrdi3=no
19108 rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19113 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19114 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE___LSHRDI3 1
19122 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19123 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19124 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 ac_check_lib_save_LIBS=$LIBS
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19136 /* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19146 return __moddi3 ();
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19160 grep -v '^ *+' conftest.er1 >conftest.err
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19166 { (case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_try") 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest$ac_exeext'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_cv_lib_gcc___moddi3=yes
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 ac_cv_lib_gcc___moddi3=no
19193 rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19198 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19199 if test $ac_cv_lib_gcc___moddi3 = yes; then
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE___MODDI3 1
19207 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19208 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19209 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 ac_check_lib_save_LIBS=$LIBS
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19221 /* Override any GCC internal prototype to avoid an error.
19222 Use char because int might match the return type of a GCC
19223 builtin and then its argument prototype would still apply. */
19231 return __udivdi3 ();
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (ac_try="$ac_link"
19238 case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_link") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest$ac_exeext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_lib_gcc___udivdi3=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_lib_gcc___udivdi3=no
19278 rm -f core conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19283 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19284 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define HAVE___UDIVDI3 1
19292 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19293 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19294 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 ac_check_lib_save_LIBS=$LIBS
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19316 return __umoddi3 ();
19321 rm -f conftest.$ac_objext conftest$ac_exeext
19322 if { (ac_try="$ac_link"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_link") 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19355 ac_cv_lib_gcc___umoddi3=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_lib_gcc___umoddi3=no
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19368 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19369 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE___UMODDI3 1
19378 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19379 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19380 if test "${ac_cv_lib_gcc___main+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 ac_check_lib_save_LIBS=$LIBS
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_gcc___main=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_gcc___main=no
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19454 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19455 if test $ac_cv_lib_gcc___main = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE___MAIN 1
19463 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19464 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19465 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_check_lib_save_LIBS=$LIBS
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19487 return __cmpdi2 ();
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_lib_gcc___cmpdi2=yes
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_lib_gcc___cmpdi2=no
19534 rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19539 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19540 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE___CMPDI2 1
19550 if test "$llvm_cv_os_type" = "MingW" ; then
19551 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19552 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19553 cat >conftest.$ac_ext <<_ACEOF
19554 #include <windows.h>
19555 #include <imagehlp.h>
19556 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19557 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19559 rm -f conftest.$ac_objext
19560 if { (ac_try="$ac_compile"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_compile") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19574 { (case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_try") 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19594 { echo "$as_me:$LINENO: result: yes" >&5
19595 echo "${ECHO_T}yes" >&6; }
19596 llvm_cv_win32_elmcb_pcstr="PCSTR"
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19603 { echo "$as_me:$LINENO: result: no" >&5
19604 echo "${ECHO_T}no" >&6; }
19605 llvm_cv_win32_elmcb_pcstr="PSTR"
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19611 cat >>confdefs.h <<_ACEOF
19612 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19618 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19619 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19620 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 ac_cpp='$CXXCPP $CPPFLAGS'
19625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19644 rm -f conftest.$ac_objext
19645 if { (ac_try="$ac_compile"
19646 case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_compile") 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_try") 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_cv_func_isnan_in_math_h=yes
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19683 ac_cv_func_isnan_in_math_h=no
19686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19688 ac_cpp='$CPP $CPPFLAGS'
19689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19695 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19698 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_ISNAN_IN_MATH_H 1
19706 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19707 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19708 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 ac_cpp='$CXXCPP $CPPFLAGS'
19713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19747 { (case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_try") 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; } &&
19756 { ac_try='test -s conftest.$ac_objext'
19757 { (case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_try") 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_cv_func_isnan_in_cmath=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_cv_func_isnan_in_cmath=no
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19783 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19785 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_ISNAN_IN_CMATH 1
19793 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19794 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19795 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 ac_cpp='$CXXCPP $CPPFLAGS'
19800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19814 float f; std::isnan(f);
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_try") 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_func_std_isnan_in_cmath=yes
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_cv_func_std_isnan_in_cmath=no
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 ac_cpp='$CPP $CPPFLAGS'
19864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19869 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19870 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19872 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19874 cat >>confdefs.h <<\_ACEOF
19875 #define HAVE_STD_ISNAN_IN_CMATH 1
19881 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19882 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19883 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 ac_cpp='$CXXCPP $CPPFLAGS'
19888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_func_isinf_in_math_h=yes
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_func_isinf_in_math_h=no
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 ac_cpp='$CPP $CPPFLAGS'
19952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19958 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19960 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE_ISINF_IN_MATH_H 1
19968 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19969 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19970 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_cpp='$CXXCPP $CPPFLAGS'
19975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20009 { (case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_try") 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } &&
20018 { ac_try='test -s conftest.$ac_objext'
20019 { (case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_try") 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_func_isinf_in_cmath=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_func_isinf_in_cmath=no
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 ac_cpp='$CPP $CPPFLAGS'
20039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20044 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20045 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20047 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_ISINF_IN_CMATH 1
20055 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20056 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20057 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 ac_cpp='$CXXCPP $CPPFLAGS'
20062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20076 float f; std::isinf(f);
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_func_std_isinf_in_cmath=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_cv_func_std_isinf_in_cmath=no
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 ac_cpp='$CPP $CPPFLAGS'
20126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20131 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20132 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20134 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_STD_ISINF_IN_CMATH 1
20142 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20143 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20144 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 ac_cpp='$CXXCPP $CPPFLAGS'
20149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 #include <ieeefp.h>
20163 float f; finite(f);
20168 rm -f conftest.$ac_objext
20169 if { (ac_try="$ac_compile"
20170 case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_compile") 2>conftest.er1
20177 grep -v '^ *+' conftest.er1 >conftest.err
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_func_finite_in_ieeefp_h=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_func_finite_in_ieeefp_h=no
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212 ac_cpp='$CPP $CPPFLAGS'
20213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20219 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20221 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE_FINITE_IN_IEEEFP_H 1
20231 if test "$llvm_cv_platform_type" = "Unix" ; then
20234 for ac_header in stdlib.h unistd.h
20236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result: $ac_res" >&5
20245 echo "${ECHO_T}$ac_res" >&6; }
20247 # Is the header compilable?
20248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 $ac_includes_default
20257 #include <$ac_header>
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_compile") 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest.$ac_objext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_header_compiler=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_header_compiler=no
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <$ac_header>
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null; then
20329 if test -s conftest.err; then
20330 ac_cpp_err=$ac_c_preproc_warn_flag
20331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20338 if test -z "$ac_cpp_err"; then
20339 ac_header_preproc=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_preproc=no
20347 rm -f conftest.err conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20351 # So? What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20374 ## ------------------------------------ ##
20375 ## Report this to http://llvm.org/bugs/ ##
20376 ## ------------------------------------ ##
20378 ) | sed "s/^/$as_me: WARNING: /" >&2
20381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 eval "$as_ac_Header=\$ac_header_preproc"
20388 ac_res=`eval echo '${'$as_ac_Header'}'`
20389 { echo "$as_me:$LINENO: result: $ac_res" >&5
20390 echo "${ECHO_T}$ac_res" >&6; }
20393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20403 for ac_func in getpagesize
20405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419 #define $ac_func innocuous_$ac_func
20421 /* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char $ac_func (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20427 # include <limits.h>
20429 # include <assert.h>
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20441 /* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444 #if defined __stub_$ac_func || defined __stub___$ac_func
20451 return $ac_func ();
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_try") 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 eval "$as_ac_var=yes"
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 eval "$as_ac_var=no"
20498 rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20501 ac_res=`eval echo '${'$as_ac_var'}'`
20502 { echo "$as_me:$LINENO: result: $ac_res" >&5
20503 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_var'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20512 { echo "$as_me:$LINENO: checking for working mmap" >&5
20513 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20514 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 if test "$cross_compiling" = yes; then
20518 ac_cv_func_mmap_fixed_mapped=no
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 $ac_includes_default
20527 /* malloc might have been renamed as rpl_malloc. */
20530 /* Thanks to Mike Haertel and Jim Avera for this test.
20531 Here is a matrix of mmap possibilities:
20532 mmap private not fixed
20533 mmap private fixed at somewhere currently unmapped
20534 mmap private fixed at somewhere already mapped
20535 mmap shared not fixed
20536 mmap shared fixed at somewhere currently unmapped
20537 mmap shared fixed at somewhere already mapped
20538 For private mappings, we should verify that changes cannot be read()
20539 back from the file, nor mmap's back from the file at a different
20540 address. (There have been systems where private was not correctly
20541 implemented like the infamous i386 svr4.0, and systems where the
20542 VM page cache was not coherent with the file system buffer cache
20543 like early versions of FreeBSD and possibly contemporary NetBSD.)
20544 For shared mappings, we should conversely verify that changes get
20545 propagated back to all the places they're supposed to be.
20547 Grep wants private fixed already mapped.
20548 The main things grep needs to know about mmap are:
20549 * does it exist and is it safe to write into the mmap'd area
20550 * how to use it (BSD variants) */
20553 #include <sys/mman.h>
20555 #if !STDC_HEADERS && !HAVE_STDLIB_H
20559 /* This mess was copied from the GNU getpagesize.h. */
20560 #if !HAVE_GETPAGESIZE
20561 /* Assume that all systems that can run configure have sys/param.h. */
20562 # if !HAVE_SYS_PARAM_H
20563 # define HAVE_SYS_PARAM_H 1
20566 # ifdef _SC_PAGESIZE
20567 # define getpagesize() sysconf(_SC_PAGESIZE)
20568 # else /* no _SC_PAGESIZE */
20569 # if HAVE_SYS_PARAM_H
20570 # include <sys/param.h>
20571 # ifdef EXEC_PAGESIZE
20572 # define getpagesize() EXEC_PAGESIZE
20573 # else /* no EXEC_PAGESIZE */
20575 # define getpagesize() NBPG * CLSIZE
20578 # endif /* no CLSIZE */
20579 # else /* no NBPG */
20581 # define getpagesize() NBPC
20582 # else /* no NBPC */
20584 # define getpagesize() PAGESIZE
20585 # endif /* PAGESIZE */
20586 # endif /* no NBPC */
20587 # endif /* no NBPG */
20588 # endif /* no EXEC_PAGESIZE */
20589 # else /* no HAVE_SYS_PARAM_H */
20590 # define getpagesize() 8192 /* punt totally */
20591 # endif /* no HAVE_SYS_PARAM_H */
20592 # endif /* no _SC_PAGESIZE */
20594 #endif /* no HAVE_GETPAGESIZE */
20599 char *data, *data2, *data3;
20603 pagesize = getpagesize ();
20605 /* First, make a file with some known garbage in it. */
20606 data = (char *) malloc (pagesize);
20609 for (i = 0; i < pagesize; ++i)
20610 *(data + i) = rand ();
20612 fd = creat ("conftest.mmap", 0600);
20615 if (write (fd, data, pagesize) != pagesize)
20619 /* Next, try to mmap the file at a fixed address which already has
20620 something else allocated at it. If we can, also make sure that
20621 we see the same garbage. */
20622 fd = open ("conftest.mmap", O_RDWR);
20625 data2 = (char *) malloc (2 * pagesize);
20628 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20629 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20630 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20632 for (i = 0; i < pagesize; ++i)
20633 if (*(data + i) != *(data2 + i))
20636 /* Finally, make sure that changes to the mapped area do not
20637 percolate back to the file as seen by read(). (This is a bug on
20638 some variants of i386 svr4.0.) */
20639 for (i = 0; i < pagesize; ++i)
20640 *(data2 + i) = *(data2 + i) + 1;
20641 data3 = (char *) malloc (pagesize);
20644 if (read (fd, data3, pagesize) != pagesize)
20646 for (i = 0; i < pagesize; ++i)
20647 if (*(data + i) != *(data3 + i))
20653 rm -f conftest$ac_exeext
20654 if { (ac_try="$ac_link"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_link") 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_cv_func_mmap_fixed_mapped=yes
20675 echo "$as_me: program exited with status $ac_status" >&5
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ( exit $ac_status )
20680 ac_cv_func_mmap_fixed_mapped=no
20682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20687 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20688 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20689 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_MMAP 1
20696 rm -f conftest.mmap
20698 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20699 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20700 if test "${ac_cv_func_mmap_file+set}" = set; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709 if test "$cross_compiling" = yes; then
20710 ac_cv_func_mmap_file=no
20712 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20720 #include <sys/types.h>
20721 #include <sys/mman.h>
20729 fd = creat ("foo",0777);
20730 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20732 return (fd != (int) MAP_FAILED);
20737 rm -f conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 ac_cv_func_mmap_file=yes
20759 echo "$as_me: program exited with status $ac_status" >&5
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ( exit $ac_status )
20764 ac_cv_func_mmap_file=no
20766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20771 ac_cpp='$CPP $CPPFLAGS'
20772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20779 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20780 if test "$ac_cv_func_mmap_file" = yes; then
20782 cat >>confdefs.h <<\_ACEOF
20783 #define HAVE_MMAP_FILE
20790 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20791 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20792 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 if test "$llvm_cv_os_type" = "Interix" ; then
20796 ac_cv_need_dev_zero_for_mmap=yes
20798 ac_cv_need_dev_zero_for_mmap=no
20802 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20803 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20804 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20806 cat >>confdefs.h <<\_ACEOF
20807 #define NEED_DEV_ZERO_FOR_MMAP 1
20812 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20814 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20815 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20817 if test "$ac_cv_func_mmap_file" = "no"
20819 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20820 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20824 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20825 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20839 volatile unsigned long val = 1;
20840 __sync_synchronize();
20841 __sync_val_compare_and_swap(&val, 1, 0);
20842 __sync_add_and_fetch(&val, 1);
20843 __sync_sub_and_fetch(&val, 1);
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_link") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863 { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest$ac_exeext'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20883 ac_cpp='$CPP $CPPFLAGS'
20884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20888 { echo "$as_me:$LINENO: result: yes" >&5
20889 echo "${ECHO_T}yes" >&6; }
20891 cat >>confdefs.h <<\_ACEOF
20892 #define LLVM_HAS_ATOMICS 1
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 { echo "$as_me:$LINENO: result: no" >&5
20900 echo "${ECHO_T}no" >&6; }
20902 cat >>confdefs.h <<\_ACEOF
20903 #define LLVM_HAS_ATOMICS 0
20906 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20907 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20910 rm -f core conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20914 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20915 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20916 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20917 if test "${llvm_cv_linux_mixed+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 ac_cpp='$CPP $CPPFLAGS'
20922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20933 error: Not x86-64 even if uname says so!
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959 { (case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_try") 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_try") 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 llvm_cv_linux_mixed=no
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 llvm_cv_linux_mixed=yes
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 ac_cpp='$CPP $CPPFLAGS'
20989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20996 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20998 if test "$llvm_cv_linux_mixed" = "yes"; then
20999 llvm_cv_target_arch="x86"
21005 for ac_func in __dso_handle
21007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21021 #define $ac_func innocuous_$ac_func
21023 /* System header to define __stub macros and hopefully few prototypes,
21024 which can conflict with char $ac_func (); below.
21025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026 <limits.h> exists even on freestanding compilers. */
21029 # include <limits.h>
21031 # include <assert.h>
21036 /* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined __stub_$ac_func || defined __stub___$ac_func
21053 return $ac_func ();
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_link") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073 { (case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_try") 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest$ac_exeext'
21083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 eval "$as_ac_var=yes"
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 eval "$as_ac_var=no"
21100 rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
21103 ac_res=`eval echo '${'$as_ac_var'}'`
21104 { echo "$as_me:$LINENO: result: $ac_res" >&5
21105 echo "${ECHO_T}$ac_res" >&6; }
21106 if test `eval echo '${'$as_ac_var'}'` = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21115 SHLIBEXT=$libltdl_cv_shlibext
21118 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21121 if test "${prefix}" = "NONE" ; then
21122 prefix="/usr/local"
21124 eval LLVM_PREFIX="${prefix}";
21125 eval LLVM_BINDIR="${prefix}/bin";
21126 eval LLVM_LIBDIR="${prefix}/lib";
21127 eval LLVM_DATADIR="${prefix}/share/llvm";
21128 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21129 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21130 eval LLVM_INCLUDEDIR="${prefix}/include";
21131 eval LLVM_INFODIR="${prefix}/info";
21132 eval LLVM_MANDIR="${prefix}/man";
21133 LLVM_CONFIGTIME=`date`
21145 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21146 LLVM_CONFIGTIME="(timestamp not enabled)"
21150 cat >>confdefs.h <<_ACEOF
21151 #define LLVM_PREFIX "$LLVM_PREFIX"
21155 cat >>confdefs.h <<_ACEOF
21156 #define LLVM_BINDIR "$LLVM_BINDIR"
21160 cat >>confdefs.h <<_ACEOF
21161 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21165 cat >>confdefs.h <<_ACEOF
21166 #define LLVM_DATADIR "$LLVM_DATADIR"
21170 cat >>confdefs.h <<_ACEOF
21171 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21175 cat >>confdefs.h <<_ACEOF
21176 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21180 cat >>confdefs.h <<_ACEOF
21181 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21185 cat >>confdefs.h <<_ACEOF
21186 #define LLVM_INFODIR "$LLVM_INFODIR"
21190 cat >>confdefs.h <<_ACEOF
21191 #define LLVM_MANDIR "$LLVM_MANDIR"
21195 cat >>confdefs.h <<_ACEOF
21196 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21200 cat >>confdefs.h <<_ACEOF
21201 #define LLVM_HOSTTRIPLE "$host"
21205 cat >>confdefs.h <<_ACEOF
21206 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21210 if test "$BINDINGS_TO_BUILD" = auto ; then
21211 BINDINGS_TO_BUILD=""
21212 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21213 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21216 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21222 binding_prereqs_failed=0
21223 for a_binding in $BINDINGS_TO_BUILD ; do
21224 case "$a_binding" in
21226 if test "x$OCAMLC" = x ; then
21227 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21228 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21229 binding_prereqs_failed=1
21231 if test "x$OCAMLDEP" = x ; then
21232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21234 binding_prereqs_failed=1
21236 if test "x$OCAMLOPT" = x ; then
21237 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21238 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21240 if test "x$with_ocaml_libdir" != xauto ; then
21241 OCAML_LIBDIR=$with_ocaml_libdir
21244 ocaml_stdlib="`"$OCAMLC" -where`"
21245 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21247 # ocaml stdlib is beneath our prefix; use stdlib
21248 OCAML_LIBDIR=$ocaml_stdlib
21251 # ocaml stdlib is outside our prefix; use libdir/ocaml
21252 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21259 if test "$binding_prereqs_failed" = 1 ; then
21260 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21261 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21262 { (exit 1); exit 1; }; }
21265 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21266 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21267 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 ac_cpp='$CXXCPP $CPPFLAGS'
21272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21276 oldcxxflags="$CXXFLAGS"
21277 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21308 { (case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_try") 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_try") 2>&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
21327 llvm_cv_cxx_visibility_inlines_hidden=yes
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 llvm_cv_cxx_visibility_inlines_hidden=no
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 CXXFLAGS="$oldcxxflags"
21338 ac_cpp='$CPP $CPPFLAGS'
21339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21345 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21346 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21347 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21348 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21351 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21356 if test "$llvm_cv_link_use_r" = "yes" ; then
21363 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21364 RDYNAMIC="-Wl,-export-dynamic"
21371 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21378 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21380 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21382 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21384 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21386 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21389 ac_config_files="$ac_config_files Makefile.config"
21392 ac_config_files="$ac_config_files llvm.spec"
21395 ac_config_files="$ac_config_files docs/doxygen.cfg"
21398 if test "${clang_src_root}" = ""; then
21399 clang_src_root="$srcdir/tools/clang"
21401 if test -f ${clang_src_root}/README.txt; then
21402 configh="include/clang/Config/config.h"
21403 doxy="docs/doxygen.cfg"
21404 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21406 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21410 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21413 test "x$program_prefix" = "xNONE" && program_prefix=""
21417 ac_config_commands="$ac_config_commands setup"
21419 ac_config_commands="$ac_config_commands Makefile"
21422 ac_config_commands="$ac_config_commands Makefile.common"
21425 ac_config_commands="$ac_config_commands examples/Makefile"
21428 ac_config_commands="$ac_config_commands lib/Makefile"
21431 ac_config_commands="$ac_config_commands runtime/Makefile"
21434 ac_config_commands="$ac_config_commands test/Makefile"
21437 ac_config_commands="$ac_config_commands test/Makefile.tests"
21440 ac_config_commands="$ac_config_commands unittests/Makefile"
21443 ac_config_commands="$ac_config_commands tools/Makefile"
21446 ac_config_commands="$ac_config_commands utils/Makefile"
21449 ac_config_commands="$ac_config_commands projects/Makefile"
21452 ac_config_commands="$ac_config_commands bindings/Makefile"
21455 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21459 cat >confcache <<\_ACEOF
21460 # This file is a shell script that caches the results of configure
21461 # tests run on this system so they can be shared between configure
21462 # scripts and configure runs, see configure's option --config-cache.
21463 # It is not useful on other systems. If it contains results you don't
21464 # want to keep, you may remove or edit it.
21466 # config.status only pays attention to the cache file if you give it
21467 # the --recheck option to rerun configure.
21469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21471 # following values.
21475 # The following way of writing the cache mishandles newlines in values,
21476 # but we know of no workaround that is simple, portable, and efficient.
21477 # So, we kill variables containing newlines.
21478 # Ultrix sh set writes to stderr and can't be redirected directly,
21479 # and sets the high bit in the cache file unless we assign to the vars.
21481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21482 eval ac_val=\$$ac_var
21486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21490 _ | IFS | as_nl) ;; #(
21491 *) $as_unset $ac_var ;;
21497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21498 *${as_nl}ac_space=\ *)
21499 # `set' does not quote correctly, so add quotes (double-quote
21500 # substitution turns \\\\ into \\, and sed turns \\ into \).
21503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21506 # `set' quotes correctly as required by POSIX, so do not add quotes.
21507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21521 if test -w "$cache_file"; then
21522 test "x$cache_file" != "x/dev/null" &&
21523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21524 echo "$as_me: updating cache $cache_file" >&6;}
21525 cat confcache >$cache_file
21527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21537 DEFS=-DHAVE_CONFIG_H
21541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21542 # 1. Remove the extension, and $U if already installed.
21543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21544 ac_i=`echo "$ac_i" | sed "$ac_script"`
21545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21546 # will be set to the directory where LIBOBJS objects are built.
21547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21550 LIBOBJS=$ac_libobjs
21552 LTLIBOBJS=$ac_ltlibobjs
21555 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21556 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21557 Usually this means the macro was only invoked conditionally." >&5
21558 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&2;}
21560 { (exit 1); exit 1; }; }
21562 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21563 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21564 Usually this means the macro was only invoked conditionally." >&5
21565 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&2;}
21567 { (exit 1); exit 1; }; }
21570 : ${CONFIG_STATUS=./config.status}
21571 ac_clean_files_save=$ac_clean_files
21572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21575 cat >$CONFIG_STATUS <<_ACEOF
21577 # Generated by $as_me.
21578 # Run this file to recreate the current configuration.
21579 # Compiler output produced by configure, useful for debugging
21580 # configure, is in config.log if it exists.
21583 ac_cs_recheck=false
21585 SHELL=\${CONFIG_SHELL-$SHELL}
21588 cat >>$CONFIG_STATUS <<\_ACEOF
21589 ## --------------------- ##
21590 ## M4sh Initialization. ##
21591 ## --------------------- ##
21593 # Be Bourne compatible
21594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21598 # is contrary to our usage. Disable this feature.
21599 alias -g '${1+"$@"}'='"$@"'
21600 setopt NO_GLOB_SUBST
21602 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21604 BIN_SH=xpg4; export BIN_SH # for Tru64
21605 DUALCASE=1; export DUALCASE # for MKS sh
21609 # Avoid depending upon Character Ranges.
21610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21613 as_cr_digits='0123456789'
21614 as_cr_alnum=$as_cr_Letters$as_cr_digits
21616 # The user is always right.
21617 if test "${PATH_SEPARATOR+set}" != set; then
21618 echo "#! /bin/sh" >conf$$.sh
21619 echo "exit 0" >>conf$$.sh
21621 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21629 # Support unset when possible.
21630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21638 # We need space, tab and new line, in precisely that order. Quoting is
21639 # there to prevent editors from complaining about space-tab.
21640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21641 # splitting by setting IFS to empty value.)
21646 # Find who we are. Look in the path if we contain no directory separator.
21648 *[\\/]* ) as_myself=$0 ;;
21649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21650 for as_dir in $PATH
21653 test -z "$as_dir" && as_dir=.
21654 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21660 # We did not find ourselves, most probably we were run as `sh COMMAND'
21661 # in which case we are not to be found in the path.
21662 if test "x$as_myself" = x; then
21665 if test ! -f "$as_myself"; then
21666 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21667 { (exit 1); exit 1; }
21670 # Work around bugs in pre-3.0 UWIN ksh.
21671 for as_var in ENV MAIL MAILPATH
21672 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21680 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21681 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21682 LC_TELEPHONE LC_TIME
21684 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21685 eval $as_var=C; export $as_var
21687 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21691 # Required to use basename.
21692 if expr a : '\(a\)' >/dev/null 2>&1 &&
21693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21700 as_basename=basename
21706 # Name of the executable.
21707 as_me=`$as_basename -- "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709 X"$0" : 'X\(//\)$' \| \
21710 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21712 sed '/^.*\/\([^/][^/]*\)\/*$/{
21731 as_lineno_1=$LINENO
21732 as_lineno_2=$LINENO
21733 test "x$as_lineno_1" != "x$as_lineno_2" &&
21734 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21737 # uniformly replaced by the line number. The first 'sed' inserts a
21738 # line-number line after each line using $LINENO; the second 'sed'
21739 # does the real work. The second script uses 'N' to pair each
21740 # line-number line with the line containing $LINENO, and appends
21741 # trailing '-' during substitution so that $LINENO is not a special
21742 # case at line end.
21743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21744 # scripts with optimization help from Paolo Bonzini. Blame Lee
21745 # E. McMahon (1931-1989) for sed's syntax. :-)
21757 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21760 ' >$as_me.lineno &&
21761 chmod +x "$as_me.lineno" ||
21762 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21763 { (exit 1); exit 1; }; }
21765 # Don't try to exec as it changes $[0], causing all sort of problems
21766 # (the dirname of $[0] is not the place where we might find the
21767 # original and so on. Autoconf is especially sensitive to this).
21768 . "./$as_me.lineno"
21769 # Exit status is that of the last command.
21774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21780 ECHO_C= ECHO_N= ECHO_T=
21781 case `echo -n x` in
21783 case `echo 'x\c'` in
21784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21791 if expr a : '\(a\)' >/dev/null 2>&1 &&
21792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21798 rm -f conf$$ conf$$.exe conf$$.file
21799 if test -d conf$$.dir; then
21800 rm -f conf$$.dir/conf$$.file
21806 if ln -s conf$$.file conf$$ 2>/dev/null; then
21808 # ... but there are two gotchas:
21809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21811 # In both cases, we have to default to `cp -p'.
21812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21814 elif ln conf$$.file conf$$ 2>/dev/null; then
21819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21820 rmdir conf$$.dir 2>/dev/null
21822 if mkdir -p . 2>/dev/null; then
21825 test -d ./-p && rmdir ./-p
21829 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21830 # systems may use methods other than mode bits to determine executability.
21831 cat >conf$$.file <<_ASEOF
21835 chmod +x conf$$.file
21836 if test -x conf$$.file >/dev/null 2>&1; then
21837 as_executable_p="test -x"
21843 # Sed expression to map a string onto a valid CPP name.
21844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21846 # Sed expression to map a string onto a valid variable name.
21847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21852 # Save the log message, to keep $[0] and so on meaningful, and to
21853 # report actual input values of CONFIG_FILES etc. instead of their
21854 # values after options handling.
21856 This file was extended by LLVM $as_me 3.2svn, which was
21857 generated by GNU Autoconf 2.60. Invocation command line was
21859 CONFIG_FILES = $CONFIG_FILES
21860 CONFIG_HEADERS = $CONFIG_HEADERS
21861 CONFIG_LINKS = $CONFIG_LINKS
21862 CONFIG_COMMANDS = $CONFIG_COMMANDS
21865 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21870 cat >>$CONFIG_STATUS <<_ACEOF
21871 # Files that config.status was made for.
21872 config_files="$ac_config_files"
21873 config_headers="$ac_config_headers"
21874 config_commands="$ac_config_commands"
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21880 \`$as_me' instantiates files from templates according to the
21881 current configuration.
21883 Usage: $0 [OPTIONS] [FILE]...
21885 -h, --help print this help, then exit
21886 -V, --version print version number, then exit
21887 -q, --quiet do not print progress messages
21888 -d, --debug don't remove temporary files
21889 --recheck update $as_me by reconfiguring in the same conditions
21890 --file=FILE[:TEMPLATE]
21891 instantiate the configuration file FILE
21892 --header=FILE[:TEMPLATE]
21893 instantiate the configuration header FILE
21895 Configuration files:
21898 Configuration headers:
21901 Configuration commands:
21904 Report bugs to <bug-autoconf@gnu.org>."
21907 cat >>$CONFIG_STATUS <<_ACEOF
21909 LLVM config.status 3.2svn
21910 configured by $0, generated by GNU Autoconf 2.60,
21911 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21913 Copyright (C) 2006 Free Software Foundation, Inc.
21914 This config.status script is free software; the Free Software Foundation
21915 gives unlimited permission to copy, distribute and modify it."
21922 cat >>$CONFIG_STATUS <<\_ACEOF
21923 # If no file are specified by the user, then we need to provide default
21924 # value. By we need to know if files were specified by the user.
21930 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21931 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21942 # Handling of the options.
21943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21946 echo "$ac_cs_version"; exit ;;
21947 --debug | --debu | --deb | --de | --d | -d )
21949 --file | --fil | --fi | --f )
21951 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21952 ac_need_defaults=false;;
21953 --header | --heade | --head | --hea )
21955 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21956 ac_need_defaults=false;;
21958 # Conflict between --help and --header
21959 { echo "$as_me: error: ambiguous option: $1
21960 Try \`$0 --help' for more information." >&2
21961 { (exit 1); exit 1; }; };;
21962 --help | --hel | -h )
21963 echo "$ac_cs_usage"; exit ;;
21964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21968 # This is an error.
21969 -*) { echo "$as_me: error: unrecognized option: $1
21970 Try \`$0 --help' for more information." >&2
21971 { (exit 1); exit 1; }; } ;;
21973 *) ac_config_targets="$ac_config_targets $1"
21974 ac_need_defaults=false ;;
21980 ac_configure_extra_args=
21982 if $ac_cs_silent; then
21984 ac_configure_extra_args="$ac_configure_extra_args --silent"
21988 cat >>$CONFIG_STATUS <<_ACEOF
21989 if \$ac_cs_recheck; then
21990 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21991 CONFIG_SHELL=$SHELL
21992 export CONFIG_SHELL
21993 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21997 cat >>$CONFIG_STATUS <<\_ACEOF
22001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22002 ## Running $as_me. ##
22008 cat >>$CONFIG_STATUS <<_ACEOF
22012 llvm_src="${srcdir}"
22016 cat >>$CONFIG_STATUS <<\_ACEOF
22018 # Handling of arguments.
22019 for ac_config_target in $ac_config_targets
22021 case $ac_config_target in
22022 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22023 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22024 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22025 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22026 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22027 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22028 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22029 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22030 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22031 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22032 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22033 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22034 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22035 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22036 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22037 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22038 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22039 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22040 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22041 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22042 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22043 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22044 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22045 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22046 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22047 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22048 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22050 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22051 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22052 { (exit 1); exit 1; }; };;
22057 # If the user did not use the arguments to specify the items to instantiate,
22058 # then the envvar interface is used. Set only those that are not.
22059 # We use the long form for the default assignment because of an extremely
22060 # bizarre bug on SunOS 4.1.3.
22061 if $ac_need_defaults; then
22062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22067 # Have a temporary directory for convenience. Make it in the build tree
22068 # simply because there is no reason against having it here, and in addition,
22069 # creating and moving files from /tmp can sometimes cause problems.
22070 # Hook for its removal unless debugging.
22071 # Note that there is a small window in which the directory will not be cleaned:
22072 # after its creation but before its name has been assigned to `$tmp'.
22076 trap 'exit_status=$?
22077 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22079 trap '{ (exit 1); exit 1; }' 1 2 13 15
22081 # Create a (secure) tmp directory for tmp files.
22084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22085 test -n "$tmp" && test -d "$tmp"
22088 tmp=./conf$$-$RANDOM
22089 (umask 077 && mkdir "$tmp")
22092 echo "$me: cannot create a temporary directory in ." >&2
22093 { (exit 1); exit 1; }
22097 # Set up the sed scripts for CONFIG_FILES section.
22100 # No need to generate the scripts if there are no CONFIG_FILES.
22101 # This happens for instance when ./config.status config.h
22102 if test -n "$CONFIG_FILES"; then
22109 for ac_last_try in false false false false false :; do
22110 cat >conf$$subs.sed <<_ACEOF
22111 SHELL!$SHELL$ac_delim
22112 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22113 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22114 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22115 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22116 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22117 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22118 exec_prefix!$exec_prefix$ac_delim
22119 prefix!$prefix$ac_delim
22120 program_transform_name!$program_transform_name$ac_delim
22121 bindir!$bindir$ac_delim
22122 sbindir!$sbindir$ac_delim
22123 libexecdir!$libexecdir$ac_delim
22124 datarootdir!$datarootdir$ac_delim
22125 datadir!$datadir$ac_delim
22126 sysconfdir!$sysconfdir$ac_delim
22127 sharedstatedir!$sharedstatedir$ac_delim
22128 localstatedir!$localstatedir$ac_delim
22129 includedir!$includedir$ac_delim
22130 oldincludedir!$oldincludedir$ac_delim
22131 docdir!$docdir$ac_delim
22132 infodir!$infodir$ac_delim
22133 htmldir!$htmldir$ac_delim
22134 dvidir!$dvidir$ac_delim
22135 pdfdir!$pdfdir$ac_delim
22136 psdir!$psdir$ac_delim
22137 libdir!$libdir$ac_delim
22138 localedir!$localedir$ac_delim
22139 mandir!$mandir$ac_delim
22140 DEFS!$DEFS$ac_delim
22141 ECHO_C!$ECHO_C$ac_delim
22142 ECHO_N!$ECHO_N$ac_delim
22143 ECHO_T!$ECHO_T$ac_delim
22144 LIBS!$LIBS$ac_delim
22145 build_alias!$build_alias$ac_delim
22146 host_alias!$host_alias$ac_delim
22147 target_alias!$target_alias$ac_delim
22148 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22150 CFLAGS!$CFLAGS$ac_delim
22151 LDFLAGS!$LDFLAGS$ac_delim
22152 CPPFLAGS!$CPPFLAGS$ac_delim
22153 ac_ct_CC!$ac_ct_CC$ac_delim
22154 EXEEXT!$EXEEXT$ac_delim
22155 OBJEXT!$OBJEXT$ac_delim
22157 CXXFLAGS!$CXXFLAGS$ac_delim
22158 ac_ct_CXX!$ac_ct_CXX$ac_delim
22160 subdirs!$subdirs$ac_delim
22161 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22162 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22163 build!$build$ac_delim
22164 build_cpu!$build_cpu$ac_delim
22165 build_vendor!$build_vendor$ac_delim
22166 build_os!$build_os$ac_delim
22167 host!$host$ac_delim
22168 host_cpu!$host_cpu$ac_delim
22169 host_vendor!$host_vendor$ac_delim
22170 host_os!$host_os$ac_delim
22171 target!$target$ac_delim
22172 target_cpu!$target_cpu$ac_delim
22173 target_vendor!$target_vendor$ac_delim
22174 target_os!$target_os$ac_delim
22176 HOST_OS!$HOST_OS$ac_delim
22177 TARGET_OS!$TARGET_OS$ac_delim
22178 LINKALL!$LINKALL$ac_delim
22179 NOLINKALL!$NOLINKALL$ac_delim
22180 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22181 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22182 ARCH!$ARCH$ac_delim
22183 HOST_ARCH!$HOST_ARCH$ac_delim
22184 ENDIAN!$ENDIAN$ac_delim
22185 GREP!$GREP$ac_delim
22186 EGREP!$EGREP$ac_delim
22187 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22188 BUILD_CC!$BUILD_CC$ac_delim
22189 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22190 BUILD_CXX!$BUILD_CXX$ac_delim
22191 CVSBUILD!$CVSBUILD$ac_delim
22192 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22193 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22194 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22195 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22196 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22197 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22198 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22199 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22200 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22201 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22202 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22204 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22205 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22206 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22207 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22210 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22212 elif $ac_last_try; then
22213 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22214 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22215 { (exit 1); exit 1; }; }
22217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22221 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22222 if test -n "$ac_eof"; then
22223 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22224 ac_eof=`expr $ac_eof + 1`
22227 cat >>$CONFIG_STATUS <<_ACEOF
22228 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22232 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22233 s/^/s,@/; s/!/@,|#_!!_#|/
22236 s/'"$ac_delim"'$/,g/; t
22238 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22239 ' >>$CONFIG_STATUS <conf$$subs.sed
22240 rm -f conf$$subs.sed
22241 cat >>$CONFIG_STATUS <<_ACEOF
22247 for ac_last_try in false false false false false :; do
22248 cat >conf$$subs.sed <<_ACEOF
22249 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22250 ENABLE_PIC!$ENABLE_PIC$ac_delim
22251 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22252 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22253 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22254 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22255 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22256 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22257 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22258 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22259 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22260 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22261 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22262 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22263 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22264 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22266 ifGNUmake!$ifGNUmake$ac_delim
22267 LN_S!$LN_S$ac_delim
22270 DATE!$DATE$ac_delim
22271 FIND!$FIND$ac_delim
22272 MKDIR!$MKDIR$ac_delim
22274 RANLIB!$RANLIB$ac_delim
22279 BINPWD!$BINPWD$ac_delim
22280 GRAPHVIZ!$GRAPHVIZ$ac_delim
22283 NEATO!$NEATO$ac_delim
22284 TWOPI!$TWOPI$ac_delim
22285 CIRCO!$CIRCO$ac_delim
22287 DOTTY!$DOTTY$ac_delim
22288 XDOT_PY!$XDOT_PY$ac_delim
22289 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22290 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22291 INSTALL_DATA!$INSTALL_DATA$ac_delim
22292 BZIP2!$BZIP2$ac_delim
22294 DOXYGEN!$DOXYGEN$ac_delim
22295 GROFF!$GROFF$ac_delim
22296 GZIPBIN!$GZIPBIN$ac_delim
22297 PDFROFF!$PDFROFF$ac_delim
22299 OCAMLC!$OCAMLC$ac_delim
22300 OCAMLOPT!$OCAMLOPT$ac_delim
22301 OCAMLDEP!$OCAMLDEP$ac_delim
22302 OCAMLDOC!$OCAMLDOC$ac_delim
22304 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22305 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22306 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22307 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22308 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22309 LIBADD_DL!$LIBADD_DL$ac_delim
22310 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22311 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22312 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22313 USE_UDIS86!$USE_UDIS86$ac_delim
22314 USE_OPROFILE!$USE_OPROFILE$ac_delim
22315 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22316 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22317 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22318 XML2CONFIG!$XML2CONFIG$ac_delim
22319 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22320 LIBXML2_INC!$LIBXML2_INC$ac_delim
22321 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22322 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22323 MMAP_FILE!$MMAP_FILE$ac_delim
22324 SHLIBEXT!$SHLIBEXT$ac_delim
22325 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22326 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22327 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22328 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22329 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22330 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22331 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22332 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22333 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22334 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22335 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22336 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22337 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22338 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22339 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22340 RPATH!$RPATH$ac_delim
22341 RDYNAMIC!$RDYNAMIC$ac_delim
22342 program_prefix!$program_prefix$ac_delim
22343 LIBOBJS!$LIBOBJS$ac_delim
22344 LTLIBOBJS!$LTLIBOBJS$ac_delim
22347 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
22349 elif $ac_last_try; then
22350 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22351 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22352 { (exit 1); exit 1; }; }
22354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22358 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22359 if test -n "$ac_eof"; then
22360 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22361 ac_eof=`expr $ac_eof + 1`
22364 cat >>$CONFIG_STATUS <<_ACEOF
22365 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22369 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22370 s/^/s,@/; s/!/@,|#_!!_#|/
22373 s/'"$ac_delim"'$/,g/; t
22375 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22376 ' >>$CONFIG_STATUS <conf$$subs.sed
22377 rm -f conf$$subs.sed
22378 cat >>$CONFIG_STATUS <<_ACEOF
22383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22385 # trailing colons and then remove the whole line if VPATH becomes empty
22386 # (actually we leave an empty line to preserve line numbers).
22387 if test "x$srcdir" = x.; then
22388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22389 s/:*\$(srcdir):*/:/
22390 s/:*\${srcdir}:*/:/
22392 s/^\([^=]*=[ ]*\):*/\1/
22398 cat >>$CONFIG_STATUS <<\_ACEOF
22399 fi # test -n "$CONFIG_FILES"
22402 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22405 :[FHLC]) ac_mode=$ac_tag; continue;;
22407 case $ac_mode$ac_tag in
22409 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22410 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22411 { (exit 1); exit 1; }; };;
22412 :[FH]-) ac_tag=-:-;;
22413 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22430 -) ac_f="$tmp/stdin";;
22431 *) # Look for the file first in the build tree, then in the source tree
22432 # (if the path is not absolute). The absolute path cannot be DOS-style,
22433 # because $ac_f cannot contain `:'.
22437 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22439 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22440 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22441 { (exit 1); exit 1; }; };;
22443 ac_file_inputs="$ac_file_inputs $ac_f"
22446 # Let's still pretend it is `configure' which instantiates (i.e., don't
22447 # use $as_me), people would be surprised to read:
22448 # /* config.h. Generated by config.status. */
22449 configure_input="Generated from "`IFS=:
22450 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22451 if test x"$ac_file" != x-; then
22452 configure_input="$ac_file. $configure_input"
22453 { echo "$as_me:$LINENO: creating $ac_file" >&5
22454 echo "$as_me: creating $ac_file" >&6;}
22458 *:-:* | *:-) cat >"$tmp/stdin";;
22463 ac_dir=`$as_dirname -- "$ac_file" ||
22464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22465 X"$ac_file" : 'X\(//\)[^/]' \| \
22466 X"$ac_file" : 'X\(//\)$' \| \
22467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22473 /^X\(\/\/\)[^/].*/{
22488 -*) as_dir=./$as_dir;;
22490 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22494 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22495 *) as_qdir=$as_dir;;
22497 as_dirs="'$as_qdir' $as_dirs"
22498 as_dir=`$as_dirname -- "$as_dir" ||
22499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22500 X"$as_dir" : 'X\(//\)[^/]' \| \
22501 X"$as_dir" : 'X\(//\)$' \| \
22502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22508 /^X\(\/\/\)[^/].*/{
22521 test -d "$as_dir" && break
22523 test -z "$as_dirs" || eval "mkdir $as_dirs"
22524 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22525 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22526 { (exit 1); exit 1; }; }; }
22530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22533 # A ".." for each directory in $ac_dir_suffix.
22534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22535 case $ac_top_builddir_sub in
22536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22540 ac_abs_top_builddir=$ac_pwd
22541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22542 # for backward compatibility:
22543 ac_top_builddir=$ac_top_build_prefix
22546 .) # We are building in place.
22548 ac_top_srcdir=$ac_top_builddir_sub
22549 ac_abs_top_srcdir=$ac_pwd ;;
22550 [\\/]* | ?:[\\/]* ) # Absolute name.
22551 ac_srcdir=$srcdir$ac_dir_suffix;
22552 ac_top_srcdir=$srcdir
22553 ac_abs_top_srcdir=$srcdir ;;
22554 *) # Relative name.
22555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22556 ac_top_srcdir=$ac_top_build_prefix$srcdir
22557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22570 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22574 cat >>$CONFIG_STATUS <<\_ACEOF
22575 # If the template does not know about datarootdir, expand it.
22576 # FIXME: This hack should be removed a few years after 2.60.
22577 ac_datarootdir_hack=; ac_datarootdir_seen=
22579 case `sed -n '/datarootdir/ {
22588 ' $ac_file_inputs` in
22589 *datarootdir*) ac_datarootdir_seen=yes;;
22590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22591 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22592 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22594 cat >>$CONFIG_STATUS <<_ACEOF
22595 ac_datarootdir_hack='
22596 s&@datadir@&$datadir&g
22597 s&@docdir@&$docdir&g
22598 s&@infodir@&$infodir&g
22599 s&@localedir@&$localedir&g
22600 s&@mandir@&$mandir&g
22601 s&\\\${datarootdir}&$datarootdir&g' ;;
22605 # Neutralize VPATH when `$srcdir' = `.'.
22606 # Shell code in configure.ac might set extrasub.
22607 # FIXME: do we really want to maintain this feature?
22608 cat >>$CONFIG_STATUS <<_ACEOF
22612 cat >>$CONFIG_STATUS <<\_ACEOF
22614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22615 s&@configure_input@&$configure_input&;t t
22616 s&@top_builddir@&$ac_top_builddir_sub&;t t
22617 s&@srcdir@&$ac_srcdir&;t t
22618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22619 s&@top_srcdir@&$ac_top_srcdir&;t t
22620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22621 s&@builddir@&$ac_builddir&;t t
22622 s&@abs_builddir@&$ac_abs_builddir&;t t
22623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22624 s&@INSTALL@&$ac_INSTALL&;t t
22625 $ac_datarootdir_hack
22626 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
22628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22629 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22631 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22632 which seems to be undefined. Please make sure it is defined." >&5
22633 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22634 which seems to be undefined. Please make sure it is defined." >&2;}
22638 -) cat "$tmp/out"; rm -f "$tmp/out";;
22639 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22648 # Transform confdefs.h into a sed script `conftest.defines', that
22649 # substitutes the proper values into config.h.in to produce config.h.
22650 rm -f conftest.defines conftest.tail
22651 # First, append a space to every undef/define line, to ease matching.
22652 echo 's/$/ /' >conftest.defines
22653 # Then, protect against being on the right side of a sed subst, or in
22654 # an unquoted here document, in config.status. If some macros were
22655 # called several times there might be several #defines for the same
22656 # symbol, which is useless. But do not sort them, since the last
22657 # AC_DEFINE must be honored.
22658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22659 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22660 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22661 # PARAMS is the parameter list in the macro definition--in most cases, it's
22662 # just an empty string.
22663 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22664 ac_dB='\\)[ (].*,\\1define\\2'
22672 s/^[ ]*#[ ]*define[ ][ ]*//
22677 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22678 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22679 ' >>conftest.defines
22681 # Remove the space that was appended to ease matching.
22682 # Then replace #undef with comments. This is necessary, for
22683 # example, in the case of _POSIX_SOURCE, which is predefined and required
22684 # on some systems where configure will not decide to define it.
22685 # (The regexp can be short, since the line contains either #define or #undef.)
22687 s,^[ #]*u.*,/* & */,' >>conftest.defines
22689 # Break up conftest.defines:
22690 ac_max_sed_lines=50
22692 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22693 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22694 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22696 ac_in='$ac_file_inputs'
22697 ac_out='"$tmp/out1"'
22698 ac_nxt='"$tmp/out2"'
22702 # Write a here document:
22703 cat >>$CONFIG_STATUS <<_ACEOF
22704 # First, check the format of the line:
22705 cat >"\$tmp/defines.sed" <<\\CEOF
22706 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22707 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22711 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22713 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22714 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22715 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22716 grep . conftest.tail >/dev/null || break
22717 rm -f conftest.defines
22718 mv conftest.tail conftest.defines
22720 rm -f conftest.defines conftest.tail
22722 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 if test x"$ac_file" != x-; then
22725 echo "/* $configure_input */" >"$tmp/config.h"
22726 cat "$ac_result" >>"$tmp/config.h"
22727 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22728 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22729 echo "$as_me: $ac_file is unchanged" >&6;}
22732 mv "$tmp/config.h" $ac_file
22735 echo "/* $configure_input */"
22741 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22742 echo "$as_me: executing $ac_file commands" >&6;}
22747 case $ac_file$ac_mode in
22748 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22749 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22750 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22751 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22752 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22753 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22754 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22755 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22756 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22757 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22758 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22759 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22760 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22761 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22762 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22763 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22764 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22765 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22766 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22768 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22769 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22770 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22771 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22772 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22773 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22779 { (exit 0); exit 0; }
22781 chmod +x $CONFIG_STATUS
22782 ac_clean_files=$ac_clean_files_save
22785 # configure is writing to config.log, and then calls config.status.
22786 # config.status does its own redirection, appending to config.log.
22787 # Unfortunately, on DOS this fails, as config.log is still kept open
22788 # by configure, so config.status won't be able to write to it; its
22789 # output is simply discarded. So we exec the FD to /dev/null,
22790 # effectively closing config.log, so it can be properly (re)opened and
22791 # appended to by config.status. When coming back to configure, we
22792 # need to make the FD available again.
22793 if test "$no_create" != yes; then
22795 ac_config_status_args=
22796 test "$silent" = yes &&
22797 ac_config_status_args="$ac_config_status_args --quiet"
22799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22802 # would make configure fail if this is the last instruction.
22803 $ac_cs_success || { (exit 1); exit 1; }
22807 # CONFIG_SUBDIRS section.
22809 if test "$no_recursion" != yes; then
22811 # Remove --cache-file and --srcdir arguments so they do not pile up.
22812 ac_sub_configure_args=
22814 eval "set x $ac_configure_args"
22818 if test -n "$ac_prev"; then
22823 -cache-file | --cache-file | --cache-fil | --cache-fi \
22824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22825 ac_prev=cache_file ;;
22826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22830 --config-cache | -C)
22832 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22834 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22836 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22838 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22842 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22844 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22848 # Always prepend --prefix to ensure using the same prefix
22849 # in subdir configurations.
22850 ac_arg="--prefix=$prefix"
22852 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22854 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22857 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22859 # Do not complain, so a configure script can configure whichever
22860 # parts of a large source tree are present.
22861 test -d "$srcdir/$ac_dir" || continue
22863 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22864 echo "$as_me:$LINENO: $ac_msg" >&5
22868 -*) as_dir=./$as_dir;;
22870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22875 *) as_qdir=$as_dir;;
22877 as_dirs="'$as_qdir' $as_dirs"
22878 as_dir=`$as_dirname -- "$as_dir" ||
22879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22880 X"$as_dir" : 'X\(//\)[^/]' \| \
22881 X"$as_dir" : 'X\(//\)$' \| \
22882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22888 /^X\(\/\/\)[^/].*/{
22901 test -d "$as_dir" && break
22903 test -z "$as_dirs" || eval "mkdir $as_dirs"
22904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22905 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22906 { (exit 1); exit 1; }; }; }
22910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22913 # A ".." for each directory in $ac_dir_suffix.
22914 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22915 case $ac_top_builddir_sub in
22916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22920 ac_abs_top_builddir=$ac_pwd
22921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22922 # for backward compatibility:
22923 ac_top_builddir=$ac_top_build_prefix
22926 .) # We are building in place.
22928 ac_top_srcdir=$ac_top_builddir_sub
22929 ac_abs_top_srcdir=$ac_pwd ;;
22930 [\\/]* | ?:[\\/]* ) # Absolute name.
22931 ac_srcdir=$srcdir$ac_dir_suffix;
22932 ac_top_srcdir=$srcdir
22933 ac_abs_top_srcdir=$srcdir ;;
22934 *) # Relative name.
22935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22936 ac_top_srcdir=$ac_top_build_prefix$srcdir
22937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22944 # Check for guested configure; otherwise get Cygnus style configure.
22945 if test -f "$ac_srcdir/configure.gnu"; then
22946 ac_sub_configure=$ac_srcdir/configure.gnu
22947 elif test -f "$ac_srcdir/configure"; then
22948 ac_sub_configure=$ac_srcdir/configure
22949 elif test -f "$ac_srcdir/configure.in"; then
22950 # This should be Cygnus configure.
22951 ac_sub_configure=$ac_aux_dir/configure
22953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22958 # The recursion is here.
22959 if test -n "$ac_sub_configure"; then
22960 # Make the cache file name correct relative to the subdirectory.
22961 case $cache_file in
22962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22963 *) # Relative name.
22964 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22967 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22968 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22969 # The eval makes quoting arguments work.
22970 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22971 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22973 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22974 { (exit 1); exit 1; }; }