2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
693 ENABLE_EXPENSIVE_CHECKS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/test-suite
820 projects/llvm-poolalloc
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.5svn 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.5svn:";;
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-compiler-version-checks
1401 Check the version of the host compiler (default is
1403 --enable-cxx11 Use c++11 if available (default is NO)
1404 --enable-split-dwarf Use split-dwarf if available (default is NO)
1405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1414 --enable-werror Compile with -Werror enabled (default is NO)
1415 --enable-expensive-checks
1416 Compile with expensive debug checks enabled (default
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
1422 --enable-keep-symbols Do not strip installed executables)
1423 --enable-jit Enable Just In Time Compiling (default is YES)
1424 --enable-docs Build documents (default is YES)
1425 --enable-doxygen Build doxygen documentation (default is NO)
1426 --enable-threads Use threads if available (default is YES)
1427 --enable-pthreads Use pthreads if available (default is YES)
1428 --enable-zlib Use zlib for compression/decompression if available
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-crash-overrides
1441 Enable crash handling overrides (default is YES)
1442 --enable-targets Build specific host targets: all or
1443 target1,target2,... Valid targets are: host, x86,
1444 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445 xcore, msp430, nvptx, systemz, r600, and cpp
1447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
1450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
1452 --enable-terminfo Query the terminfo database if available (default is
1454 --enable-libedit Use libedit if available (default is YES)
1455 --enable-libffi Check for the presence of libffi (default is NO)
1456 --enable-ltdl-install install libltdl
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-optimize-option Select the compiler options to use for optimized
1463 --with-extra-options Specify additional options to compile LLVM with
1464 --with-extra-ld-options Specify additional options to link LLVM with
1465 --with-ocaml-libdir Specify install location for ocaml bindings (default
1467 --with-clang-srcdir Directory to the out-of-tree Clang source
1468 --with-clang-resource-dir
1469 Relative directory from the Clang binary for
1471 --with-c-include-dirs Colon separated list of directories clang will
1473 --with-gcc-toolchain Directory where gcc is installed.
1474 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1475 --with-binutils-include Specify path to binutils/include/ containing
1476 plugin-api.h file for gold plugin.
1477 --with-bug-report-url Specify the URL where bug reports should be
1478 submitted (default=http://llvm.org/bugs/)
1479 --with-internal-prefix Installation directory for internal files
1480 --with-python path to python
1481 --with-udis86=<path> Use udis86 external x86 disassembler library
1482 --with-oprofile=<prefix>
1483 Tell OProfile >= 0.9.4 how to symbolize JIT output
1484 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <http://llvm.org/bugs/>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" || continue
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 LLVM configure 3.5svn
1564 generated by GNU Autoconf 2.60
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1571 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by LLVM $as_me 3.5svn, which was
1580 generated by GNU Autoconf 2.60. Invocation command line was
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1605 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875 echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877 echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 cat >>confdefs.h <<\_ACEOF
1934 #define LLVM_VERSION_MAJOR 3
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LLVM_VERSION_MINOR 5
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1952 for ac_dir in autoconf "$srcdir"/autoconf; do
1953 if test -f "$ac_dir/install-sh"; then
1955 ac_install_sh="$ac_aux_dir/install-sh -c"
1957 elif test -f "$ac_dir/install.sh"; then
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1961 elif test -f "$ac_dir/shtool"; then
1963 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 if test -z "$ac_aux_dir"; then
1968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970 { (exit 1); exit 1; }; }
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983 if test ${srcdir} != "." ; then
1984 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1985 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 for ac_prog in clang gcc
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 if test -n "$CC"; then
2031 { echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$CC" && break
2042 if test -z "$CC"; then
2044 for ac_prog in clang gcc
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2083 test -n "$ac_ct_CC" && break
2086 if test "x$ac_ct_CC" = x; then
2089 case $cross_compiling:$ac_tool_warned in
2091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet. If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&5
2094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097 ac_tool_warned=yes ;;
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -v >&5") 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort. b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions. Remove them first so a
2175 # subsequent execution test works.
2177 for ac_file in $ac_files
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186 if { (ac_try="$ac_link_default"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link_default") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2201 for ac_file in $ac_files
2203 test -f "$ac_file" || continue
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2208 # We found the default executable, but exeext='' is most
2212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2243 # Check that the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 if test "$cross_compiling" = maybe; then
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run. If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_link") 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compile") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_c89=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_c89=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 rm -f conftest.$ac_ext
2778 case "x$ac_cv_prog_cc_c89" in
2780 { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2786 CC="$CC $ac_cv_prog_cc_c89"
2787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 ac_cpp='$CXXCPP $CPPFLAGS'
2800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803 if test -z "$CXX"; then
2804 if test -n "$CCC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 for ac_prog in clang++ g++
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CXX"; then
2818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CXX"; then
2839 { echo "$as_me:$LINENO: result: $CXX" >&5
2840 echo "${ECHO_T}$CXX" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$CXX" && break
2850 if test -z "$CXX"; then
2852 for ac_prog in clang++ g++
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_CXX"; then
2862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CXX="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882 if test -n "$ac_ct_CXX"; then
2883 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2891 test -n "$ac_ct_CXX" && break
2894 if test "x$ac_ct_CXX" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -v >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_try") 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027 ac_cxx_werror_flag=yes
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_prog_cxx_g=yes
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_try") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_prog_cxx_g=yes
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3218 if test "$GXX" = yes; then
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3241 if test -z "$CPP"; then
3242 if test "${ac_cv_prog_CPP+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3302 rm -f conftest.err conftest.$ac_ext
3304 # OK, works on sane cases. Now check whether nonexistent headers
3305 # can be detected and how.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ac_nonexistent.h>
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336 if test -z "$ac_cpp_err"; then
3337 # Broken: success on invalid input.
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Passes both tests.
3348 rm -f conftest.err conftest.$ac_ext
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3365 { echo "$as_me:$LINENO: result: $CPP" >&5
3366 echo "${ECHO_T}$CPP" >&6; }
3368 for ac_c_preproc_warn_flag in '' yes
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error" is here to catch this case.
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3383 # include <limits.h>
3385 # include <assert.h>
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3421 rm -f conftest.err conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <ac_nonexistent.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3467 rm -f conftest.err conftest.$ac_ext
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478 See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 if test "$CXX" = "clang++" ; then
3490 { echo "$as_me:$LINENO: checking whether clang works" >&5
3491 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 #if __has_include (<cxxabi.h>)
3509 #if __has_include (<unwind.h>)
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_try") 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3567 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3568 { (exit 1); exit 1; }; }
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3582 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3584 ac_cpp='$CXXCPP $CPPFLAGS'
3585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3589 llvm_cv_cxx_compiler=unknown
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_try") 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 llvm_cv_cxx_compiler=clang
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 llvm_cv_cxx_compiler=gcc
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3704 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3708 if test -d ${srcdir}/projects/test-suite ; then
3709 subdirs="$subdirs projects/test-suite"
3713 if test -d ${srcdir}/projects/llvm-test ; then
3714 subdirs="$subdirs projects/llvm-test"
3718 if test -d ${srcdir}/projects/poolalloc ; then
3719 subdirs="$subdirs projects/poolalloc"
3723 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3724 subdirs="$subdirs projects/llvm-poolalloc"
3728 for i in `ls ${srcdir}/projects`
3730 if test -d ${srcdir}/projects/${i} ; then
3732 sample) subdirs="$subdirs projects/sample"
3734 safecode) subdirs="$subdirs projects/safecode"
3742 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3743 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3749 # Check whether --enable-polly was given.
3750 if test "${enable_polly+set}" = set; then
3751 enableval=$enable_polly;
3756 case "$enableval" in
3761 default) ENABLE_POLLY=1
3763 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3764 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3765 { (exit 1); exit 1; }; } ;;
3769 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3772 subdirs="$subdirs tools/polly"
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3780 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3781 { (exit 1); exit 1; }; }
3783 { echo "$as_me:$LINENO: checking build system type" >&5
3784 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3785 if test "${ac_cv_build+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 ac_build_alias=$build_alias
3789 test "x$ac_build_alias" = x &&
3790 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3791 test "x$ac_build_alias" = x &&
3792 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3793 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3794 { (exit 1); exit 1; }; }
3795 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3796 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3797 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3798 { (exit 1); exit 1; }; }
3801 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3802 echo "${ECHO_T}$ac_cv_build" >&6; }
3803 case $ac_cv_build in
3805 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3806 echo "$as_me: error: invalid value of canonical build" >&2;}
3807 { (exit 1); exit 1; }; };;
3810 ac_save_IFS=$IFS; IFS='-'
3816 # Remember, the first character of IFS is used to create $*,
3817 # except with old shells:
3820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3823 { echo "$as_me:$LINENO: checking host system type" >&5
3824 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3825 if test "${ac_cv_host+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test "x$host_alias" = x; then
3829 ac_cv_host=$ac_cv_build
3831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3832 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3833 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3834 { (exit 1); exit 1; }; }
3838 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6; }
3842 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3843 echo "$as_me: error: invalid value of canonical host" >&2;}
3844 { (exit 1); exit 1; }; };;
3847 ac_save_IFS=$IFS; IFS='-'
3853 # Remember, the first character of IFS is used to create $*,
3854 # except with old shells:
3857 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3860 { echo "$as_me:$LINENO: checking target system type" >&5
3861 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3862 if test "${ac_cv_target+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test "x$target_alias" = x; then
3866 ac_cv_target=$ac_cv_host
3868 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3869 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3870 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3871 { (exit 1); exit 1; }; }
3875 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3876 echo "${ECHO_T}$ac_cv_target" >&6; }
3877 case $ac_cv_target in
3879 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3880 echo "$as_me: error: invalid value of canonical target" >&2;}
3881 { (exit 1); exit 1; }; };;
3883 target=$ac_cv_target
3884 ac_save_IFS=$IFS; IFS='-'
3890 # Remember, the first character of IFS is used to create $*,
3891 # except with old shells:
3894 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3897 # The aliases save the names the user supplied, while $host etc.
3898 # will get canonicalized.
3899 test -n "$target_alias" &&
3900 test "$program_prefix$program_suffix$program_transform_name" = \
3902 program_prefix=${target_alias}-
3904 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3905 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3906 if test "${llvm_cv_os_type+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 llvm_cv_link_all_option="-Wl,--whole-archive"
3912 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3913 llvm_cv_os_type="AIX"
3914 llvm_cv_platform_type="Unix" ;;
3916 llvm_cv_link_all_option="-Wl,--whole-archive"
3917 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3918 llvm_cv_os_type="IRIX"
3919 llvm_cv_platform_type="Unix" ;;
3921 llvm_cv_link_all_option="-Wl,--whole-archive"
3922 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3923 llvm_cv_os_type="Cygwin"
3924 llvm_cv_platform_type="Unix" ;;
3926 llvm_cv_link_all_option="-Wl,-all_load"
3927 llvm_cv_no_link_all_option="-Wl,-noall_load"
3928 llvm_cv_os_type="Darwin"
3929 llvm_cv_platform_type="Unix" ;;
3931 llvm_cv_link_all_option="-Wl,-all_load"
3932 llvm_cv_no_link_all_option="-Wl,-noall_load"
3933 llvm_cv_os_type="Minix"
3934 llvm_cv_platform_type="Unix" ;;
3936 llvm_cv_link_all_option="-Wl,--whole-archive"
3937 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938 llvm_cv_os_type="FreeBSD"
3939 llvm_cv_platform_type="Unix" ;;
3941 llvm_cv_link_all_option="-Wl,--whole-archive"
3942 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3943 llvm_cv_os_type="GNU/kFreeBSD"
3944 llvm_cv_platform_type="Unix" ;;
3946 llvm_cv_link_all_option="-Wl,--whole-archive"
3947 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3948 llvm_cv_os_type="OpenBSD"
3949 llvm_cv_platform_type="Unix" ;;
3951 llvm_cv_link_all_option="-Wl,--whole-archive"
3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953 llvm_cv_os_type="NetBSD"
3954 llvm_cv_platform_type="Unix" ;;
3956 llvm_cv_link_all_option="-Wl,--whole-archive"
3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958 llvm_cv_os_type="DragonFly"
3959 llvm_cv_platform_type="Unix" ;;
3961 llvm_cv_link_all_option="-Wl,--whole-archive"
3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963 llvm_cv_os_type="HP-UX"
3964 llvm_cv_platform_type="Unix" ;;
3966 llvm_cv_link_all_option="-Wl,--whole-archive"
3967 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968 llvm_cv_os_type="Interix"
3969 llvm_cv_platform_type="Unix" ;;
3971 llvm_cv_link_all_option="-Wl,--whole-archive"
3972 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973 llvm_cv_os_type="Linux"
3974 llvm_cv_platform_type="Unix" ;;
3976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="GNU"
3979 llvm_cv_platform_type="Unix" ;;
3981 llvm_cv_link_all_option="-Wl,-z,allextract"
3982 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3983 llvm_cv_os_type="SunOS"
3984 llvm_cv_platform_type="Unix" ;;
3986 llvm_cv_link_all_option="-Wl,-z,allextract"
3987 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3988 llvm_cv_os_type="AuroraUX"
3989 llvm_cv_platform_type="Unix" ;;
3991 llvm_cv_link_all_option="-Wl,--whole-archive"
3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993 llvm_cv_os_type="Win32"
3994 llvm_cv_platform_type="Win32" ;;
3996 llvm_cv_link_all_option="-Wl,--whole-archive"
3997 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998 llvm_cv_os_type="MingW"
3999 llvm_cv_platform_type="Win32" ;;
4001 llvm_cv_link_all_option="-Wl,--whole-archive"
4002 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4003 llvm_cv_os_type="Haiku"
4004 llvm_cv_platform_type="Unix" ;;
4006 llvm_cv_link_all_option="-Wl,--whole-archive"
4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008 llvm_cv_os_type="Freestanding"
4009 llvm_cv_platform_type="Unix" ;;
4011 llvm_cv_link_all_option="-Wl,--whole-archive"
4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013 llvm_cv_os_type="Freestanding"
4014 llvm_cv_platform_type="Unix" ;;
4016 llvm_cv_link_all_option=""
4017 llvm_cv_no_link_all_option=""
4018 llvm_cv_os_type="Unknown"
4019 llvm_cv_platform_type="Unknown" ;;
4022 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4023 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4025 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4026 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4027 if test "${llvm_cv_target_os_type+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 llvm_cv_target_os_type="AIX" ;;
4034 llvm_cv_target_os_type="IRIX" ;;
4036 llvm_cv_target_os_type="Cygwin" ;;
4038 llvm_cv_target_os_type="Darwin" ;;
4040 llvm_cv_target_os_type="Minix" ;;
4042 llvm_cv_target_os_type="FreeBSD" ;;
4044 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4046 llvm_cv_target_os_type="OpenBSD" ;;
4048 llvm_cv_target_os_type="NetBSD" ;;
4050 llvm_cv_target_os_type="DragonFly" ;;
4052 llvm_cv_target_os_type="HP-UX" ;;
4054 llvm_cv_target_os_type="Interix" ;;
4056 llvm_cv_target_os_type="Linux" ;;
4058 llvm_cv_target_os_type="GNU" ;;
4060 llvm_cv_target_os_type="SunOS" ;;
4062 llvm_cv_target_os_type="AuroraUX" ;;
4064 llvm_cv_target_os_type="Win32" ;;
4066 llvm_cv_target_os_type="MingW" ;;
4068 llvm_cv_target_os_type="Haiku" ;;
4070 llvm_cv_target_os_type="RTEMS" ;;
4072 llvm_cv_target_os_type="NativeClient" ;;
4074 llvm_cv_target_os_type="Freestanding" ;;
4076 llvm_cv_target_os_type="Unknown" ;;
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085 { (exit 1); exit 1; }; }
4090 HOST_OS=$llvm_cv_os_type
4092 TARGET_OS=$llvm_cv_target_os_type
4095 LINKALL=$llvm_cv_link_all_option
4097 NOLINKALL=$llvm_cv_no_link_all_option
4100 case $llvm_cv_platform_type in
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 i?86-*) llvm_cv_target_arch="x86" ;;
4132 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4133 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4134 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4135 arm*-*) llvm_cv_target_arch="ARM" ;;
4136 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4137 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4138 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4139 xcore-*) llvm_cv_target_arch="XCore" ;;
4140 msp430-*) llvm_cv_target_arch="MSP430" ;;
4141 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4142 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4143 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4144 *) llvm_cv_target_arch="Unknown" ;;
4147 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4148 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4150 if test "$llvm_cv_target_arch" = "Unknown" ; then
4151 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4152 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4155 case "$llvm_cv_target_arch" in
4156 x86) LLVM_NATIVE_ARCH="X86" ;;
4157 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4158 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4161 ARCH=$llvm_cv_target_arch
4165 i?86-*) host_arch="x86" ;;
4166 amd64-* | x86_64-*) host_arch="x86_64" ;;
4167 sparc*-*) host_arch="Sparc" ;;
4168 powerpc*-*) host_arch="PowerPC" ;;
4169 arm*-*) host_arch="ARM" ;;
4170 aarch64*-*) host_arch="AArch64" ;;
4171 mips-* | mips64-*) host_arch="Mips" ;;
4172 mipsel-* | mips64el-*) host_arch="Mips" ;;
4173 xcore-*) host_arch="XCore" ;;
4174 msp430-*) host_arch="MSP430" ;;
4175 hexagon-*) host_arch="Hexagon" ;;
4176 s390x-*) host_arch="SystemZ" ;;
4177 *) host_arch="Unknown" ;;
4180 if test "$host_arch" = "Unknown" ; then
4181 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4182 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4185 HOST_ARCH=$host_arch
4188 if test "$cross_compiling" = yes; then
4189 LLVM_CROSS_COMPILING=1
4192 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4193 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4194 if test "${ac_cv_build_exeext+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4198 ac_cv_build_exeext=.exe
4200 ac_build_prefix=${build_alias}-
4202 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_build_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$BUILD_CC"; then
4210 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 BUILD_CC=$ac_cv_prog_BUILD_CC
4230 if test -n "$BUILD_CC"; then
4231 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4232 echo "${ECHO_T}$BUILD_CC" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4239 if test -z "$BUILD_CC"; then
4240 # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$BUILD_CC"; then
4248 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_BUILD_CC="gcc"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 BUILD_CC=$ac_cv_prog_BUILD_CC
4268 if test -n "$BUILD_CC"; then
4269 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270 echo "${ECHO_T}$BUILD_CC" >&6; }
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4277 if test -z "$BUILD_CC"; then
4278 # Extract the first word of "cc", so it can be a program name with args.
4279 set dummy cc; ac_word=$2
4280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4297 ac_prog_rejected=yes
4300 ac_cv_prog_BUILD_CC="cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 if test $ac_prog_rejected = yes; then
4309 # We found a bogon in the path, so make sure we never use it.
4310 set dummy $ac_cv_prog_BUILD_CC
4312 if test $# != 0; then
4313 # We chose a different compiler from the bogus one.
4314 # However, it has the same basename, so the bogon will be chosen
4315 # first if we set BUILD_CC to just the basename; use the full file name.
4317 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4322 BUILD_CC=$ac_cv_prog_BUILD_CC
4323 if test -n "$BUILD_CC"; then
4324 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4325 echo "${ECHO_T}$BUILD_CC" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4334 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4336 { (exit 1); exit 1; }; }
4337 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4339 echo 'int main () { return 0; }' > conftest.$ac_ext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4342 (eval $ac_build_link) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
4346 for file in conftest.*; do
4348 *.c | *.o | *.obj | *.dSYM) ;;
4349 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4353 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4354 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4355 { (exit 1); exit 1; }; }
4358 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4363 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4364 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4365 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4366 ac_build_exeext=$BUILD_EXEEXT
4368 ac_build_prefix=${build_alias}-
4369 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4370 set dummy ${ac_build_prefix}g++; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$BUILD_CXX"; then
4377 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4397 if test -n "$BUILD_CXX"; then
4398 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4399 echo "${ECHO_T}$BUILD_CXX" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 if test -z "$BUILD_CXX"; then
4407 # Extract the first word of "g++", so it can be a program name with args.
4408 set dummy g++; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$BUILD_CXX"; then
4415 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_BUILD_CXX="g++"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4435 if test -n "$BUILD_CXX"; then
4436 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4437 echo "${ECHO_T}$BUILD_CXX" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test -z "$BUILD_CXX"; then
4445 # Extract the first word of "c++", so it can be a program name with args.
4446 set dummy c++; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$BUILD_CXX"; then
4453 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4464 ac_prog_rejected=yes
4467 ac_cv_prog_BUILD_CXX="c++"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test $ac_prog_rejected = yes; then
4476 # We found a bogon in the path, so make sure we never use it.
4477 set dummy $ac_cv_prog_BUILD_CXX
4479 if test $# != 0; then
4480 # We chose a different compiler from the bogus one.
4481 # However, it has the same basename, so the bogon will be chosen
4482 # first if we set BUILD_CXX to just the basename; use the full file name.
4484 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4489 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4490 if test -n "$BUILD_CXX"; then
4491 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4492 echo "${ECHO_T}$BUILD_CXX" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4502 LLVM_CROSS_COMPILING=0
4506 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4517 # Check whether --enable-libcpp was given.
4518 if test "${enable_libcpp+set}" = set; then
4519 enableval=$enable_libcpp;
4524 case "$enableval" in
4525 yes) ENABLE_LIBCPP=1
4529 default) ENABLE_LIBCPP=0
4531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4532 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4533 { (exit 1); exit 1; }; } ;;
4536 # Check whether --enable-compiler-version-checks was given.
4537 if test "${enable_compiler_version_checks+set}" = set; then
4538 enableval=$enable_compiler_version_checks;
4543 case "$enableval" in
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553 case "$llvm_cv_cxx_compiler" in
4555 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4556 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4565 #error This version of Clang is too old to build LLVM
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 { echo "$as_me:$LINENO: result: yes" >&5
4604 echo "${ECHO_T}yes" >&6; }
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 { { echo "$as_me:$LINENO: error:
4612 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4613 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4614 bypass these sanity checks." >&5
4615 echo "$as_me: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&2;}
4619 { (exit 1); exit 1; }; }
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 if test "$ENABLE_LIBCPP" -eq 0 ; then
4625 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4626 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4627 llvm_cv_old_cxxflags="$CXXFLAGS"
4628 CXXFLAGS="$CXXFLAGS -std=c++0x"
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4637 std::atomic<float> x(0.0f);
4638 int main() { return (float)x; }
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 { echo "$as_me:$LINENO: result: yes" >&5
4676 echo "${ECHO_T}yes" >&6; }
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 { { echo "$as_me:$LINENO: error:
4684 We detected a missing feature in the standard C++ library that was known to be
4685 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4686 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4687 than 4.7. You will need to update your system and ensure Clang uses the newer
4690 If this error is incorrect or you need to force things to work, you may pass
4691 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4692 echo "$as_me: error:
4693 We detected a missing feature in the standard C++ library that was known to be
4694 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4695 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4696 than 4.7. You will need to update your system and ensure Clang uses the newer
4699 If this error is incorrect or you need to force things to work, you may pass
4700 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4701 { (exit 1); exit 1; }; }
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706 CXXFLAGS="$llvm_cv_old_cxxflags"
4710 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4711 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4719 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4720 #error This version of GCC is too old to build LLVM
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739 { (case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_try") 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 { echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6; }
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4766 { { echo "$as_me:$LINENO: error:
4767 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4768 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4769 bypass these sanity checks." >&5
4770 echo "$as_me: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&2;}
4774 { (exit 1); exit 1; }; }
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4791 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4792 { (exit 1); exit 1; }; }
4796 # Check whether --enable-cxx11 was given.
4797 if test "${enable_cxx11+set}" = set; then
4798 enableval=$enable_cxx11;
4803 case "$enableval" in
4808 default) ENABLE_CXX11=0
4810 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4815 # Check whether --enable-split-dwarf was given.
4816 if test "${enable_split_dwarf+set}" = set; then
4817 enableval=$enable_split_dwarf;
4822 case "$enableval" in
4823 yes) ENABLE_SPLIT_DWARF=1
4825 no) ENABLE_SPLIT_DWARF=0
4827 default) ENABLE_SPLIT_DWARF=0
4829 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4831 { (exit 1); exit 1; }; } ;;
4835 # Check whether --enable-clang-arcmt was given.
4836 if test "${enable_clang_arcmt+set}" = set; then
4837 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4842 case "$enableval" in
4843 yes) ENABLE_CLANG_ARCMT=1
4845 no) ENABLE_CLANG_ARCMT=0
4847 default) ENABLE_CLANG_ARCMT=1
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4854 clang_static_analyzer="yes"
4855 # Check whether --enable-clang-static-analyzer was given.
4856 if test "${enable_clang_static_analyzer+set}" = set; then
4857 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4862 case "$enableval" in
4863 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4866 if test ${clang_arcmt} != "no" ; then
4867 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4868 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4869 { (exit 1); exit 1; }; }
4871 ENABLE_CLANG_STATIC_ANALYZER=0
4874 default) ENABLE_CLANG_STATIC_ANALYZER=1
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4881 # Check whether --enable-clang-rewriter was given.
4882 if test "${enable_clang_rewriter+set}" = set; then
4883 enableval=$enable_clang_rewriter;
4888 case "$enableval" in
4889 yes) ENABLE_CLANG_REWRITER=1
4892 if test ${clang_arcmt} != "no" ; then
4893 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4894 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4895 { (exit 1); exit 1; }; }
4897 if test ${clang_static_analyzer} != "no" ; then
4898 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4899 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4900 { (exit 1); exit 1; }; }
4902 ENABLE_CLANG_REWRITER=0
4905 default) ENABLE_CLANG_REWRITER=1
4907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4912 # Check whether --enable-optimized was given.
4913 if test "${enable_optimized+set}" = set; then
4914 enableval=$enable_optimized;
4919 if test ${enableval} = "no" ; then
4923 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4927 # Check whether --enable-profiling was given.
4928 if test "${enable_profiling+set}" = set; then
4929 enableval=$enable_profiling;
4934 if test ${enableval} = "no" ; then
4938 ENABLE_PROFILING=ENABLE_PROFILING=1
4942 # Check whether --enable-assertions was given.
4943 if test "${enable_assertions+set}" = set; then
4944 enableval=$enable_assertions;
4949 if test ${enableval} = "yes" ; then
4953 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4957 # Check whether --enable-werror was given.
4958 if test "${enable_werror+set}" = set; then
4959 enableval=$enable_werror;
4964 case "$enableval" in
4965 yes) ENABLE_WERROR=1
4969 default) ENABLE_WERROR=0
4971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4976 # Check whether --enable-expensive-checks was given.
4977 if test "${enable_expensive_checks+set}" = set; then
4978 enableval=$enable_expensive_checks;
4983 if test ${enableval} = "yes" ; then
4984 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4986 EXPENSIVE_CHECKS=yes
4989 ENABLE_EXPENSIVE_CHECKS=
4995 # Check whether --enable-debug-runtime was given.
4996 if test "${enable_debug_runtime+set}" = set; then
4997 enableval=$enable_debug_runtime;
5002 if test ${enableval} = "no" ; then
5006 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5010 # Check whether --enable-debug-symbols was given.
5011 if test "${enable_debug_symbols+set}" = set; then
5012 enableval=$enable_debug_symbols;
5017 if test ${enableval} = "no" ; then
5021 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5025 # Check whether --enable-keep-symbols was given.
5026 if test "${enable_keep_symbols+set}" = set; then
5027 enableval=$enable_keep_symbols;
5032 if test ${enableval} = "no" ; then
5036 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042 enableval=$enable_jit;
5047 if test ${enableval} = "no"
5052 case "$llvm_cv_target_arch" in
5053 x86) TARGET_HAS_JIT=1
5055 Sparc) TARGET_HAS_JIT=0
5057 PowerPC) TARGET_HAS_JIT=1
5059 x86_64) TARGET_HAS_JIT=1
5061 ARM) TARGET_HAS_JIT=1
5063 AArch64) TARGET_HAS_JIT=0
5065 Mips) TARGET_HAS_JIT=1
5067 XCore) TARGET_HAS_JIT=0
5069 MSP430) TARGET_HAS_JIT=0
5071 Hexagon) TARGET_HAS_JIT=0
5073 NVPTX) TARGET_HAS_JIT=0
5075 SystemZ) TARGET_HAS_JIT=1
5082 # Check whether --enable-docs was given.
5083 if test "${enable_docs+set}" = set; then
5084 enableval=$enable_docs;
5089 case "$enableval" in
5094 default) ENABLE_DOCS=1
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5101 # Check whether --enable-doxygen was given.
5102 if test "${enable_doxygen+set}" = set; then
5103 enableval=$enable_doxygen;
5108 case "$enableval" in
5109 yes) ENABLE_DOXYGEN=1
5111 no) ENABLE_DOXYGEN=0
5113 default) ENABLE_DOXYGEN=0
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5120 # Check whether --enable-threads was given.
5121 if test "${enable_threads+set}" = set; then
5122 enableval=$enable_threads;
5127 case "$enableval" in
5128 yes) LLVM_ENABLE_THREADS=1
5130 no) LLVM_ENABLE_THREADS=0
5132 default) LLVM_ENABLE_THREADS=1
5134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
5139 cat >>confdefs.h <<_ACEOF
5140 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5144 # Check whether --enable-pthreads was given.
5145 if test "${enable_pthreads+set}" = set; then
5146 enableval=$enable_pthreads;
5151 case "$enableval" in
5152 yes) ENABLE_PTHREADS=1
5154 no) ENABLE_PTHREADS=0
5156 default) ENABLE_PTHREADS=1
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5163 # Check whether --enable-zlib was given.
5164 if test "${enable_zlib+set}" = set; then
5165 enableval=$enable_zlib;
5170 case "$enableval" in
5171 yes) LLVM_ENABLE_ZLIB=1
5173 no) LLVM_ENABLE_ZLIB=0
5175 default) LLVM_ENABLE_ZLIB=1
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5182 cat >>confdefs.h <<_ACEOF
5183 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5187 # Check whether --enable-pic was given.
5188 if test "${enable_pic+set}" = set; then
5189 enableval=$enable_pic;
5194 case "$enableval" in
5199 default) ENABLE_PIC=1
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5206 cat >>confdefs.h <<_ACEOF
5207 #define ENABLE_PIC $ENABLE_PIC
5211 # Check whether --enable-shared was given.
5212 if test "${enable_shared+set}" = set; then
5213 enableval=$enable_shared;
5218 case "$enableval" in
5219 yes) ENABLE_SHARED=1
5223 default) ENABLE_SHARED=0
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5230 # Check whether --enable-embed-stdcxx was given.
5231 if test "${enable_embed_stdcxx+set}" = set; then
5232 enableval=$enable_embed_stdcxx;
5237 case "$enableval" in
5238 yes) ENABLE_EMBED_STDCXX=1
5240 no) ENABLE_EMBED_STDCXX=0
5242 default) ENABLE_EMBED_STDCXX=0
5244 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5245 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5246 { (exit 1); exit 1; }; } ;;
5249 # Check whether --enable-timestamps was given.
5250 if test "${enable_timestamps+set}" = set; then
5251 enableval=$enable_timestamps;
5256 case "$enableval" in
5257 yes) ENABLE_TIMESTAMPS=1
5259 no) ENABLE_TIMESTAMPS=0
5261 default) ENABLE_TIMESTAMPS=1
5263 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5264 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5268 cat >>confdefs.h <<_ACEOF
5269 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5273 # Check whether --enable-backtraces was given.
5274 if test "${enable_backtraces+set}" = set; then
5275 enableval=$enable_backtraces; case "$enableval" in
5276 yes) llvm_cv_enable_backtraces="yes" ;;
5277 no) llvm_cv_enable_backtraces="no" ;;
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5279 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5283 llvm_cv_enable_backtraces="yes"
5286 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define ENABLE_BACKTRACES 1
5294 # Check whether --enable-crash-overrides was given.
5295 if test "${enable_crash_overrides+set}" = set; then
5296 enableval=$enable_crash_overrides; case "$enableval" in
5297 yes) llvm_cv_enable_crash_overrides="yes" ;;
5298 no) llvm_cv_enable_crash_overrides="no" ;;
5299 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5301 { (exit 1); exit 1; }; } ;;
5304 llvm_cv_enable_crash_overrides="yes"
5307 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5309 cat >>confdefs.h <<\_ACEOF
5310 #define ENABLE_CRASH_OVERRIDES 1
5316 # Check whether --enable-targets was given.
5317 if test "${enable_targets+set}" = set; then
5318 enableval=$enable_targets;
5323 if test "$enableval" = host-only ; then
5326 case "$enableval" in
5327 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5328 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5334 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347 host) case "$llvm_cv_target_arch" in
5348 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5364 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374 enableval=$enable_experimental_targets;
5380 if test ${enableval} != "disable"
5382 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5388 for a_target in $TARGETS_TO_BUILD; do
5389 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5395 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5402 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5454 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466 withval=$with_optimize_option;
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5475 case "$llvm_cv_os_type" in
5476 FreeBSD) optimize_option=-O2 ;;
5477 MingW) optimize_option=-O2 ;;
5478 *) optimize_option=-O3 ;;
5480 *) optimize_option="$withval" ;;
5482 OPTIMIZE_OPTION=$optimize_option
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490 withval=$with_extra_options;
5496 default) EXTRA_OPTIONS= ;;
5497 *) EXTRA_OPTIONS=$withval ;;
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505 withval=$with_extra_ld_options;
5511 default) EXTRA_LD_OPTIONS= ;;
5512 *) EXTRA_LD_OPTIONS=$withval ;;
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519 enableval=$enable_bindings;
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527 all ) BINDINGS_TO_BUILD="ocaml" ;;
5528 none | no) BINDINGS_TO_BUILD="" ;;
5529 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530 case "$a_binding" in
5531 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534 { (exit 1); exit 1; }; } ;;
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543 withval=$with_ocaml_libdir;
5549 auto) with_ocaml_libdir="$withval" ;;
5550 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559 withval=$with_clang_srcdir;
5565 -) clang_src_root="" ;;
5566 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567 *) clang_src_root="$ac_pwd/$withval" ;;
5569 CLANG_SRC_ROOT=$clang_src_root
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575 withval=$with_clang_resource_dir;
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589 withval=$with_c_include_dirs;
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606 withval=$with_gcc_toolchain;
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620 withval=$with_default_sysroot;
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634 withval=$with_binutils_include;
5640 default) WITH_BINUTILS_INCDIR=default ;;
5641 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653 { (exit 1); exit 1; }; };
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660 withval=$with_bug_report_url;
5662 withval="http://llvm.org/bugs/"
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673 enableval=$enable_terminfo; case "$enableval" in
5674 yes) llvm_cv_enable_terminfo="yes" ;;
5675 no) llvm_cv_enable_terminfo="no" ;;
5676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678 { (exit 1); exit 1; }; } ;;
5681 llvm_cv_enable_terminfo="yes"
5685 # Check whether --enable-libedit was given.
5686 if test "${enable_libedit+set}" = set; then
5687 enableval=$enable_libedit; case "$enableval" in
5688 yes) llvm_cv_enable_libedit="yes" ;;
5689 no) llvm_cv_enable_libedit="no" ;;
5690 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5691 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5692 { (exit 1); exit 1; }; } ;;
5695 llvm_cv_enable_libedit="yes"
5699 # Check whether --enable-libffi was given.
5700 if test "${enable_libffi+set}" = set; then
5701 enableval=$enable_libffi; case "$enableval" in
5702 yes) llvm_cv_enable_libffi="yes" ;;
5703 no) llvm_cv_enable_libffi="no" ;;
5704 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5705 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5706 { (exit 1); exit 1; }; } ;;
5709 llvm_cv_enable_libffi=no
5714 # Check whether --with-internal-prefix was given.
5715 if test "${with_internal_prefix+set}" = set; then
5716 withval=$with_internal_prefix;
5721 INTERNAL_PREFIX=$withval
5725 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5726 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5727 if test "${lt_cv_path_NM+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 if test -n "$NM"; then
5731 # Let the user override the test.
5734 lt_nm_to_check="${ac_tool_prefix}nm"
5735 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5736 lt_nm_to_check="$lt_nm_to_check nm"
5738 for lt_tmp_nm in $lt_nm_to_check; do
5739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5740 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742 test -z "$ac_dir" && ac_dir=.
5743 tmp_nm="$ac_dir/$lt_tmp_nm"
5744 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5745 # Check to see if the nm accepts a BSD-compat flag.
5746 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5747 # nm: unknown option "B" ignored
5748 # Tru64's nm complains that /dev/null is an invalid object file
5749 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5750 */dev/null* | *'Invalid file or object type'*)
5751 lt_cv_path_NM="$tmp_nm -B"
5755 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 lt_cv_path_NM="$tmp_nm -p"
5761 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762 continue # so that we can try to find one that supports BSD flags
5771 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5774 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5775 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5780 { echo "$as_me:$LINENO: checking for GNU make" >&5
5781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782 if test "${llvm_cv_gnu_make_command+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 llvm_cv_gnu_make_command=''
5786 for a in "$MAKE" make gmake gnumake ; do
5787 if test -z "$a" ; then continue ; fi ;
5788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5790 llvm_cv_gnu_make_command=$a ;
5795 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5801 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802 echo "${ECHO_T}\"Not found\"" >&6; };
5806 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5809 if test "$LN_S" = "ln -s"; then
5810 { echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6; }
5813 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814 echo "${ECHO_T}no, using $LN_S" >&6; }
5817 # Extract the first word of "cmp", so it can be a program name with args.
5818 set dummy cmp; ac_word=$2
5819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821 if test "${ac_cv_path_CMP+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5849 if test -n "$CMP"; then
5850 { echo "$as_me:$LINENO: result: $CMP" >&5
5851 echo "${ECHO_T}$CMP" >&6; }
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5858 # Extract the first word of "cp", so it can be a program name with args.
5859 set dummy cp; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_path_CP+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5890 if test -n "$CP"; then
5891 { echo "$as_me:$LINENO: result: $CP" >&5
5892 echo "${ECHO_T}$CP" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 # Extract the first word of "date", so it can be a program name with args.
5900 set dummy date; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_path_DATE+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5930 DATE=$ac_cv_path_DATE
5931 if test -n "$DATE"; then
5932 { echo "$as_me:$LINENO: result: $DATE" >&5
5933 echo "${ECHO_T}$DATE" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5940 # Extract the first word of "find", so it can be a program name with args.
5941 set dummy find; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_path_FIND+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5971 FIND=$ac_cv_path_FIND
5972 if test -n "$FIND"; then
5973 { echo "$as_me:$LINENO: result: $FIND" >&5
5974 echo "${ECHO_T}$FIND" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5981 # Extract the first word of "grep", so it can be a program name with args.
5982 set dummy grep; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_GREP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6012 GREP=$ac_cv_path_GREP
6013 if test -n "$GREP"; then
6014 { echo "$as_me:$LINENO: result: $GREP" >&5
6015 echo "${ECHO_T}$GREP" >&6; }
6017 { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6022 # Extract the first word of "mkdir", so it can be a program name with args.
6023 set dummy mkdir; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_MKDIR+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6053 MKDIR=$ac_cv_path_MKDIR
6054 if test -n "$MKDIR"; then
6055 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6056 echo "${ECHO_T}$MKDIR" >&6; }
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6063 # Extract the first word of "mv", so it can be a program name with args.
6064 set dummy mv; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_MV+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6095 if test -n "$MV"; then
6096 { echo "$as_me:$LINENO: result: $MV" >&5
6097 echo "${ECHO_T}$MV" >&6; }
6099 { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6104 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_RANLIB+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 if test -n "$RANLIB"; then
6113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 RANLIB=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6135 echo "${ECHO_T}$RANLIB" >&6; }
6137 { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6143 if test -z "$ac_cv_prog_RANLIB"; then
6144 ac_ct_RANLIB=$RANLIB
6145 # Extract the first word of "ranlib", so it can be a program name with args.
6146 set dummy ranlib; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 if test -n "$ac_ct_RANLIB"; then
6153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_RANLIB="ranlib"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6175 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6181 if test "x$ac_ct_RANLIB" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6187 whose name does not start with the host triplet. If you think this
6188 configuration is useful to you, please write to autoconf@gnu.org." >&5
6189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet. If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6192 ac_tool_warned=yes ;;
6194 RANLIB=$ac_ct_RANLIB
6197 RANLIB="$ac_cv_prog_RANLIB"
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}ar; ac_word=$2
6203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205 if test "${ac_cv_prog_AR+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -n "$AR"; then
6209 ac_cv_prog_AR="$AR" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_AR="${ac_tool_prefix}ar"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 if test -n "$AR"; then
6230 { echo "$as_me:$LINENO: result: $AR" >&5
6231 echo "${ECHO_T}$AR" >&6; }
6233 { echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6; }
6239 if test -z "$ac_cv_prog_AR"; then
6241 # Extract the first word of "ar", so it can be a program name with args.
6242 set dummy ar; ac_word=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 if test -n "$ac_ct_AR"; then
6249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_AR="ar"
6259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6269 if test -n "$ac_ct_AR"; then
6270 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6271 echo "${ECHO_T}$ac_ct_AR" >&6; }
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6277 if test "x$ac_ct_AR" = x; then
6280 case $cross_compiling:$ac_tool_warned in
6282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6283 whose name does not start with the host triplet. If you think this
6284 configuration is useful to you, please write to autoconf@gnu.org." >&5
6285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet. If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6288 ac_tool_warned=yes ;;
6296 # Extract the first word of "rm", so it can be a program name with args.
6297 set dummy rm; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_path_RM+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6328 if test -n "$RM"; then
6329 { echo "$as_me:$LINENO: result: $RM" >&5
6330 echo "${ECHO_T}$RM" >&6; }
6332 { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6337 # Extract the first word of "sed", so it can be a program name with args.
6338 set dummy sed; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_SED+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6369 if test -n "$SED"; then
6370 { echo "$as_me:$LINENO: result: $SED" >&5
6371 echo "${ECHO_T}$SED" >&6; }
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6378 # Extract the first word of "tar", so it can be a program name with args.
6379 set dummy tar; ac_word=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_path_TAR+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6410 if test -n "$TAR"; then
6411 { echo "$as_me:$LINENO: result: $TAR" >&5
6412 echo "${ECHO_T}$TAR" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6419 # Extract the first word of "pwd", so it can be a program name with args.
6420 set dummy pwd; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_BINPWD+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6450 BINPWD=$ac_cv_path_BINPWD
6451 if test -n "$BINPWD"; then
6452 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6453 echo "${ECHO_T}$BINPWD" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6461 # Extract the first word of "Graphviz", so it can be a program name with args.
6462 set dummy Graphviz; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6492 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6493 if test -n "$GRAPHVIZ"; then
6494 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6495 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_GRAPHVIZ 1
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6517 # Extract the first word of "dot", so it can be a program name with args.
6518 set dummy dot; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_DOT+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6549 if test -n "$DOT"; then
6550 { echo "$as_me:$LINENO: result: $DOT" >&5
6551 echo "${ECHO_T}$DOT" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 if test "$DOT" != "echo dot" ; then
6560 cat >>confdefs.h <<\_ACEOF
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6573 # Extract the first word of "fdp", so it can be a program name with args.
6574 set dummy fdp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_FDP+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6605 if test -n "$FDP"; then
6606 { echo "$as_me:$LINENO: result: $FDP" >&5
6607 echo "${ECHO_T}$FDP" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 if test "$FDP" != "echo fdp" ; then
6616 cat >>confdefs.h <<\_ACEOF
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6629 # Extract the first word of "neato", so it can be a program name with args.
6630 set dummy neato; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_NEATO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6660 NEATO=$ac_cv_path_NEATO
6661 if test -n "$NEATO"; then
6662 { echo "$as_me:$LINENO: result: $NEATO" >&5
6663 echo "${ECHO_T}$NEATO" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6670 if test "$NEATO" != "echo neato" ; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_NEATO 1
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6685 # Extract the first word of "twopi", so it can be a program name with args.
6686 set dummy twopi; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_TWOPI+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6716 TWOPI=$ac_cv_path_TWOPI
6717 if test -n "$TWOPI"; then
6718 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6719 echo "${ECHO_T}$TWOPI" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 if test "$TWOPI" != "echo twopi" ; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_TWOPI 1
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6741 # Extract the first word of "circo", so it can be a program name with args.
6742 set dummy circo; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CIRCO+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6772 CIRCO=$ac_cv_path_CIRCO
6773 if test -n "$CIRCO"; then
6774 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6775 echo "${ECHO_T}$CIRCO" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 if test "$CIRCO" != "echo circo" ; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_CIRCO 1
6788 if test "$llvm_cv_os_type" = "MingW" ; then
6789 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6792 cat >>confdefs.h <<_ACEOF
6793 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6797 for ac_prog in gv gsview32
6799 # Extract the first word of "$ac_prog", so it can be a program name with args.
6800 set dummy $ac_prog; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_GV+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 if test -n "$GV"; then
6831 { echo "$as_me:$LINENO: result: $GV" >&5
6832 echo "${ECHO_T}$GV" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 test -n "$GV" && break
6841 test -n "$GV" || GV="echo gv"
6843 if test "$GV" != "echo gv" ; then
6845 cat >>confdefs.h <<\_ACEOF
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_GV "$GV${EXEEXT}"
6858 # Extract the first word of "dotty", so it can be a program name with args.
6859 set dummy dotty; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_DOTTY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6889 DOTTY=$ac_cv_path_DOTTY
6890 if test -n "$DOTTY"; then
6891 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6892 echo "${ECHO_T}$DOTTY" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 if test "$DOTTY" != "echo dotty" ; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_DOTTY 1
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6914 for ac_prog in xdot xdot.py
6916 # Extract the first word of "$ac_prog", so it can be a program name with args.
6917 set dummy $ac_prog; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_XDOT+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 XDOT=$ac_cv_path_XDOT
6947 if test -n "$XDOT"; then
6948 { echo "$as_me:$LINENO: result: $XDOT" >&5
6949 echo "${ECHO_T}$XDOT" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 test -n "$XDOT" && break
6958 test -n "$XDOT" || XDOT="echo xdot"
6960 if test "$XDOT" != "echo xdot" ; then
6962 cat >>confdefs.h <<\_ACEOF
6966 if test "$llvm_cv_os_type" = "MingW" ; then
6967 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6970 cat >>confdefs.h <<_ACEOF
6971 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6976 # Find a good install program. We prefer a C program (faster),
6977 # so one script is as good as another. But avoid the broken or
6978 # incompatible versions:
6979 # SysV /etc/install, /usr/sbin/install
6980 # SunOS /usr/etc/install
6981 # IRIX /sbin/install
6983 # AmigaOS /C/install, which installs bootblocks on floppy discs
6984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987 # OS/2's system install, which has a completely different semantic
6988 # ./install, which can be erroneously created by make from ./install.sh.
6989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6991 if test -z "$INSTALL"; then
6992 if test "${ac_cv_path_install+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 # Account for people who put trailing slashes in PATH elements.
7002 ./ | .// | /cC/* | \
7003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7007 # OSF1 and SCO ODT 3.0 have their own names for install.
7008 # Don't use installbsd from OSF since it installs stuff as root
7010 for ac_prog in ginstall scoinst install; do
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7013 if test $ac_prog = install &&
7014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # AIX install. It has an incompatible calling convention.
7017 elif test $ac_prog = install &&
7018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019 # program-specific install script used by HP pwplus--don't use.
7022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7035 if test "${ac_cv_path_install+set}" = set; then
7036 INSTALL=$ac_cv_path_install
7038 # As a last resort, use the slow shell script. Don't cache a
7039 # value for INSTALL within a source directory, because that will
7040 # break other packages using the cache if that directory is
7041 # removed, or if the value is a relative name.
7042 INSTALL=$ac_install_sh
7045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7046 echo "${ECHO_T}$INSTALL" >&6; }
7048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049 # It thinks the first close brace ends the variable substitution.
7050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7057 [\\/$]* | ?:[\\/]* ) ;;
7058 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7061 # Extract the first word of "bzip2", so it can be a program name with args.
7062 set dummy bzip2; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_path_BZIP2+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 BZIP2=$ac_cv_path_BZIP2
7092 if test -n "$BZIP2"; then
7093 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094 echo "${ECHO_T}$BZIP2" >&6; }
7096 { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7101 # Extract the first word of "cat", so it can be a program name with args.
7102 set dummy cat; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_CAT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 if test -n "$CAT"; then
7133 { echo "$as_me:$LINENO: result: $CAT" >&5
7134 echo "${ECHO_T}$CAT" >&6; }
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 # Extract the first word of "doxygen", so it can be a program name with args.
7142 set dummy doxygen; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 DOXYGEN=$ac_cv_path_DOXYGEN
7172 if test -n "$DOXYGEN"; then
7173 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174 echo "${ECHO_T}$DOXYGEN" >&6; }
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7181 # Extract the first word of "groff", so it can be a program name with args.
7182 set dummy groff; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_GROFF+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 GROFF=$ac_cv_path_GROFF
7212 if test -n "$GROFF"; then
7213 { echo "$as_me:$LINENO: result: $GROFF" >&5
7214 echo "${ECHO_T}$GROFF" >&6; }
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7221 # Extract the first word of "gzip", so it can be a program name with args.
7222 set dummy gzip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 GZIPBIN=$ac_cv_path_GZIPBIN
7252 if test -n "$GZIPBIN"; then
7253 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254 echo "${ECHO_T}$GZIPBIN" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 # Extract the first word of "pdfroff", so it can be a program name with args.
7262 set dummy pdfroff; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PDFROFF+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 PDFROFF=$ac_cv_path_PDFROFF
7292 if test -n "$PDFROFF"; then
7293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294 echo "${ECHO_T}$PDFROFF" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "zip", so it can be a program name with args.
7302 set dummy zip; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_ZIP+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 if test -n "$ZIP"; then
7333 { echo "$as_me:$LINENO: result: $ZIP" >&5
7334 echo "${ECHO_T}$ZIP" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 for ac_prog in ocamlc
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLC+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 OCAMLC=$ac_cv_path_OCAMLC
7374 if test -n "$OCAMLC"; then
7375 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376 echo "${ECHO_T}$OCAMLC" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 test -n "$OCAMLC" && break
7386 for ac_prog in ocamlopt
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 OCAMLOPT=$ac_cv_path_OCAMLOPT
7419 if test -n "$OCAMLOPT"; then
7420 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421 echo "${ECHO_T}$OCAMLOPT" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 test -n "$OCAMLOPT" && break
7431 for ac_prog in ocamldep
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 OCAMLDEP=$ac_cv_path_OCAMLDEP
7464 if test -n "$OCAMLDEP"; then
7465 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466 echo "${ECHO_T}$OCAMLDEP" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 test -n "$OCAMLDEP" && break
7476 for ac_prog in ocamldoc
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 OCAMLDOC=$ac_cv_path_OCAMLDOC
7509 if test -n "$OCAMLDOC"; then
7510 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511 echo "${ECHO_T}$OCAMLDOC" >&6; }
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 test -n "$OCAMLDOC" && break
7521 for ac_prog in gas as
7523 # Extract the first word of "$ac_prog", so it can be a program name with args.
7524 set dummy $ac_prog; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GAS+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 if test -n "$GAS"; then
7555 { echo "$as_me:$LINENO: result: $GAS" >&5
7556 echo "${ECHO_T}$GAS" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 test -n "$GAS" && break
7567 { echo "$as_me:$LINENO: checking for linker version" >&5
7568 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569 if test "${llvm_cv_link_version+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 version_string="$(ld -v 2>&1 | head -1)"
7576 if (echo "$version_string" | grep -q "ld64"); then
7577 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7579 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7583 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7586 cat >>confdefs.h <<_ACEOF
7587 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7593 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7594 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7595 if test "${llvm_cv_link_use_r+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605 CFLAGS="$CFLAGS -Wl,-R."
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (ac_try="$ac_link"
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_link") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7636 { (case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_try") 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_try") 2>&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 llvm_cv_link_use_r=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 llvm_cv_link_use_r=no
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7675 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7676 if test "$llvm_cv_link_use_r" = yes ; then
7678 cat >>confdefs.h <<\_ACEOF
7679 #define HAVE_LINK_R 1
7685 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7686 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7687 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697 CFLAGS="$CFLAGS -rdynamic"
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_link") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_try") 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 llvm_cv_link_use_export_dynamic=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 llvm_cv_link_use_export_dynamic=no
7755 rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7767 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7768 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_LINK_EXPORT_DYNAMIC 1
7777 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7778 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7779 if test "${llvm_cv_link_use_version_script+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 # The following code is from the autoconf manual,
7791 # "11.13: Limitations of Usual Tools".
7792 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7793 # Use mktemp if possible; otherwise fall back on mkdir,
7794 # with $RANDOM to make collisions less likely.
7798 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7800 test -n "$tmp" && test -d "$tmp"
7802 tmp=$TMPDIR/foo$$-$RANDOM
7803 (umask 077 && mkdir "$tmp")
7806 echo "{" > "$tmp/export.map"
7807 echo " global: main;" >> "$tmp/export.map"
7808 echo " local: *;" >> "$tmp/export.map"
7809 echo "};" >> "$tmp/export.map"
7811 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7812 cat >conftest.$ac_ext <<_ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (ac_try="$ac_link"
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_link") 2>conftest.er1
7836 grep -v '^ *+' conftest.er1 >conftest.err
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_try") 2>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_try") 2>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 llvm_cv_link_use_version_script=yes
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 llvm_cv_link_use_version_script=no
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 rm "$tmp/export.map"
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7883 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7884 if test "$llvm_cv_link_use_version_script" = yes ; then
7885 HAVE_LINK_VERSION_SCRIPT=1
7892 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7893 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7894 if test "${ac_cv_c_const+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7907 /* FIXME: Include the comments suggested by Paul. */
7909 /* Ultrix mips cc rejects this. */
7910 typedef int charset[2];
7912 /* SunOS 4.1.1 cc rejects this. */
7913 char const *const *ccp;
7915 /* NEC SVR4.0.2 mips cc rejects this. */
7916 struct point {int x, y;};
7917 static struct point const zero = {0,0};
7918 /* AIX XL C 1.02.0.0 rejects this.
7919 It does not let you subtract one const X* pointer from another in
7920 an arm of an if-expression whose if-part is not a constant
7922 const char *g = "string";
7923 ccp = &g + (g ? g-g : 0);
7924 /* HPUX 7.0 cc rejects these. */
7927 ccp = (char const *const *) p;
7928 { /* SCO 3.2v4 cc rejects this. */
7930 char const *s = 0 ? (char *) 0 : (char const *) 0;
7935 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7937 const int *foo = &x[0];
7940 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7941 typedef const int *iptr;
7945 { /* AIX XL C 1.02.0.0 rejects this saying
7946 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7947 struct s { int j; const int *ap[3]; };
7948 struct s *b; b->j = 5;
7950 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7954 return !x[0] && !zero.x;
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8006 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8007 if test $ac_cv_c_const = no; then
8009 cat >>confdefs.h <<\_ACEOF
8016 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8017 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_GREP+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 # Extract the first word of "grep ggrep" to use in msg output
8022 if test -z "$GREP"; then
8023 set dummy grep ggrep; ac_prog_name=$2
8024 if test "${ac_cv_path_GREP+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 ac_path_GREP_found=false
8028 # Loop through the user's path and test for each of PROGNAME-LIST
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8033 test -z "$as_dir" && as_dir=.
8034 for ac_prog in grep ggrep; do
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8037 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8038 # Check for GNU ac_path_GREP and select it if it is found.
8039 # Check for GNU $ac_path_GREP
8040 case `"$ac_path_GREP" --version 2>&1` in
8042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8048 cat "conftest.in" "conftest.in" >"conftest.tmp"
8049 mv "conftest.tmp" "conftest.in"
8050 cp "conftest.in" "conftest.nl"
8051 echo 'GREP' >> "conftest.nl"
8052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8054 ac_count=`expr $ac_count + 1`
8055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8056 # Best one so far, save it but keep looking for a better one
8057 ac_cv_path_GREP="$ac_path_GREP"
8058 ac_path_GREP_max=$ac_count
8060 # 10*(2^10) chars as input seems more than enough
8061 test $ac_count -gt 10 && break
8063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8067 $ac_path_GREP_found && break 3
8077 GREP="$ac_cv_path_GREP"
8078 if test -z "$GREP"; then
8079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8081 { (exit 1); exit 1; }; }
8085 ac_cv_path_GREP=$GREP
8090 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8091 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8092 GREP="$ac_cv_path_GREP"
8095 { echo "$as_me:$LINENO: checking for egrep" >&5
8096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8097 if test "${ac_cv_path_EGREP+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8101 then ac_cv_path_EGREP="$GREP -E"
8103 # Extract the first word of "egrep" to use in msg output
8104 if test -z "$EGREP"; then
8105 set dummy egrep; ac_prog_name=$2
8106 if test "${ac_cv_path_EGREP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_path_EGREP_found=false
8110 # Loop through the user's path and test for each of PROGNAME-LIST
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8115 test -z "$as_dir" && as_dir=.
8116 for ac_prog in egrep; do
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8119 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8120 # Check for GNU ac_path_EGREP and select it if it is found.
8121 # Check for GNU $ac_path_EGREP
8122 case `"$ac_path_EGREP" --version 2>&1` in
8124 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8130 cat "conftest.in" "conftest.in" >"conftest.tmp"
8131 mv "conftest.tmp" "conftest.in"
8132 cp "conftest.in" "conftest.nl"
8133 echo 'EGREP' >> "conftest.nl"
8134 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8136 ac_count=`expr $ac_count + 1`
8137 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8138 # Best one so far, save it but keep looking for a better one
8139 ac_cv_path_EGREP="$ac_path_EGREP"
8140 ac_path_EGREP_max=$ac_count
8142 # 10*(2^10) chars as input seems more than enough
8143 test $ac_count -gt 10 && break
8145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8149 $ac_path_EGREP_found && break 3
8159 EGREP="$ac_cv_path_EGREP"
8160 if test -z "$EGREP"; then
8161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8163 { (exit 1); exit 1; }; }
8167 ac_cv_path_EGREP=$EGREP
8173 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8174 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8175 EGREP="$ac_cv_path_EGREP"
8178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8180 if test "${ac_cv_header_stdc+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_header_stdc=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_header_stdc=no
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 if test $ac_cv_header_stdc = yes; then
8247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8258 $EGREP "memchr" >/dev/null 2>&1; then
8261 ac_cv_header_stdc=no
8267 if test $ac_cv_header_stdc = yes; then
8268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 $EGREP "free" >/dev/null 2>&1; then
8282 ac_cv_header_stdc=no
8288 if test $ac_cv_header_stdc = yes; then
8289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8290 if test "$cross_compiling" = yes; then
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8301 #if ((' ' & 0x0FF) == 0x020)
8302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8305 # define ISLOWER(c) \
8306 (('a' <= (c) && (c) <= 'i') \
8307 || ('j' <= (c) && (c) <= 'r') \
8308 || ('s' <= (c) && (c) <= 'z'))
8309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8317 for (i = 0; i < 256; i++)
8318 if (XOR (islower (i), ISLOWER (i))
8319 || toupper (i) != TOUPPER (i))
8324 rm -f conftest$ac_exeext
8325 if { (ac_try="$ac_link"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8346 echo "$as_me: program exited with status $ac_status" >&5
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_header_stdc=no
8353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8360 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8361 if test $ac_cv_header_stdc = yes; then
8363 cat >>confdefs.h <<\_ACEOF
8364 #define STDC_HEADERS 1
8375 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8376 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8377 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8378 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 eval "$as_ac_Header=yes"
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 eval "$as_ac_Header=no"
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 ac_res=`eval echo '${'$as_ac_Header'}'`
8445 { echo "$as_me:$LINENO: result: $ac_res" >&5
8446 echo "${ECHO_T}$ac_res" >&6; }
8447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8448 cat >>confdefs.h <<_ACEOF
8449 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8452 ac_header_dirent=$ac_hdr; break
8456 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8457 if test $ac_header_dirent = dirent.h; then
8458 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8459 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8460 if test "${ac_cv_search_opendir+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_func_search_save_LIBS=$LIBS
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8471 /* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
8486 for ac_lib in '' dir; do
8487 if test -z "$ac_lib"; then
8488 ac_res="none required"
8491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_try") 2>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_cv_search_opendir=$ac_res
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8535 rm -f core conftest.err conftest.$ac_objext \
8537 if test "${ac_cv_search_opendir+set}" = set; then
8541 if test "${ac_cv_search_opendir+set}" = set; then
8544 ac_cv_search_opendir=no
8547 LIBS=$ac_func_search_save_LIBS
8549 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8550 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8551 ac_res=$ac_cv_search_opendir
8552 if test "$ac_res" != no; then
8553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8558 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8559 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8560 if test "${ac_cv_search_opendir+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 ac_func_search_save_LIBS=$LIBS
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 /* Override any GCC internal prototype to avoid an error.
8572 Use char because int might match the return type of a GCC
8573 builtin and then its argument prototype would still apply. */
8586 for ac_lib in '' x; do
8587 if test -z "$ac_lib"; then
8588 ac_res="none required"
8591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8593 rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (ac_try="$ac_link"
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_link") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_search_opendir=$ac_res
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8635 rm -f core conftest.err conftest.$ac_objext \
8637 if test "${ac_cv_search_opendir+set}" = set; then
8641 if test "${ac_cv_search_opendir+set}" = set; then
8644 ac_cv_search_opendir=no
8647 LIBS=$ac_func_search_save_LIBS
8649 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8650 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8651 ac_res=$ac_cv_search_opendir
8652 if test "$ac_res" != no; then
8653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8670 inttypes.h stdint.h unistd.h
8672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8686 #include <$ac_header>
8688 rm -f conftest.$ac_objext
8689 if { (ac_try="$ac_compile"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_Header=yes"
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 eval "$as_ac_Header=no"
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 ac_res=`eval echo '${'$as_ac_Header'}'`
8733 { echo "$as_me:$LINENO: result: $ac_res" >&5
8734 echo "${ECHO_T}$ac_res" >&6; }
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8746 for ac_header in dlfcn.h
8748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 ac_res=`eval echo '${'$as_ac_Header'}'`
8756 { echo "$as_me:$LINENO: result: $ac_res" >&5
8757 echo "${ECHO_T}$ac_res" >&6; }
8759 # Is the header compilable?
8760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 #include <$ac_header>
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8780 grep -v '^ *+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_try") 2>&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_header_compiler=yes
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_header_compiler=no
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815 echo "${ECHO_T}$ac_header_compiler" >&6; }
8817 # Is the header present?
8818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 #include <$ac_header>
8828 if { (ac_try="$ac_cpp conftest.$ac_ext"
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8850 if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_header_preproc=no
8859 rm -f conftest.err conftest.$ac_ext
8860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861 echo "${ECHO_T}$ac_header_preproc" >&6; }
8863 # So? What about this header?
8864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8870 ac_header_preproc=yes
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8886 ## ------------------------------------ ##
8887 ## Report this to http://llvm.org/bugs/ ##
8888 ## ------------------------------------ ##
8890 ) | sed "s/^/$as_me: WARNING: /" >&2
8893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 eval "$as_ac_Header=\$ac_header_preproc"
8900 ac_res=`eval echo '${'$as_ac_Header'}'`
8901 { echo "$as_me:$LINENO: result: $ac_res" >&5
8902 echo "${ECHO_T}$ac_res" >&6; }
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8914 # Check whether --enable-ltdl-install was given.
8915 if test "${enable_ltdl_install+set}" = set; then
8916 enableval=$enable_ltdl_install;
8922 if test x"${enable_ltdl_install-no}" != xno; then
8924 INSTALL_LTDL_FALSE='#'
8926 INSTALL_LTDL_TRUE='#'
8932 if test x"${enable_ltdl_convenience-no}" != xno; then
8933 CONVENIENCE_LTDL_TRUE=
8934 CONVENIENCE_LTDL_FALSE='#'
8936 CONVENIENCE_LTDL_TRUE='#'
8937 CONVENIENCE_LTDL_FALSE=
8941 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8944 libname_spec='lib$name'
8952 shlibpath_overrides_runpath=unknown
8954 dynamic_linker="$host_os ld.so"
8955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8956 if test "$GCC" = yes; then
8957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8958 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8959 # if the path contains ";" then we assume it to be the separator
8960 # otherwise default to the standard path separator (i.e. ":") - it is
8961 # assumed that no part of a normal pathname contains ";" but that should
8962 # okay in the real world where ";" in dirpaths is itself problematic.
8963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8970 need_lib_prefix=unknown
8971 hardcode_into_libs=no
8973 # when you set need_version to no, make sure it does not cause -set_version
8974 # flags to be left without arguments
8975 need_version=unknown
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8981 shlibpath_var=LIBPATH
8983 # AIX 3 has no versioning support, so we append a major version to the name.
8984 soname_spec='${libname}${release}${shared_ext}$major'
8991 hardcode_into_libs=yes
8992 if test "$host_cpu" = ia64; then
8993 # AIX 5 supports IA64
8994 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8995 shlibpath_var=LD_LIBRARY_PATH
8997 # With GCC up to 2.95.x, collect2 would create an import file
8998 # for dependence libraries. The import file would start with
8999 # the line `#! .'. This would cause the generated library to
9000 # depend on `.', always an invalid library. This was fixed in
9001 # development snapshots of GCC prior to 3.0.
9003 aix4 | aix4.[01] | aix4.[01].*)
9004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9006 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9013 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9014 # soname into executable. Probably we can add versioning support to
9015 # collect2, so additional links can be useful in future.
9016 if test "$aix_use_runtimelinking" = yes; then
9017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9018 # instead of lib<name>.a to let people know that these are not
9019 # typical AIX shared libraries.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 # We preserve .a as extension for shared libraries through AIX4.2
9023 # and later when we are not doing run time linking.
9024 library_names_spec='${libname}${release}.a $libname.a'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LIBPATH
9032 library_names_spec='$libname.ixlibrary $libname.a'
9033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9034 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'
9038 library_names_spec='${libname}${shared_ext}'
9039 dynamic_linker="$host_os ld.so"
9040 shlibpath_var=LIBRARY_PATH
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9052 # the default ld.so.conf also contains /usr/contrib/lib and
9053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9054 # libtool to hard-code these into programs
9057 cygwin* | mingw* | pw32*)
9058 version_type=windows
9063 case $GCC,$host_os in
9064 yes,cygwin* | yes,mingw* | yes,pw32*)
9065 library_names_spec='$libname.dll.a'
9066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9067 postinstall_cmds='base_file=`basename \${file}`~
9068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9069 dldir=$destdir/`dirname \$dlpath`~
9070 test -d \$dldir || mkdir -p \$dldir~
9071 $install_prog $dir/$dlname \$dldir/$dlname~
9072 chmod a+x \$dldir/$dlname'
9073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9074 dlpath=$dir/\$dldll~
9076 shlibpath_overrides_runpath=yes
9080 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9081 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9082 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9085 # MinGW DLLs use traditional 'lib' prefix
9086 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9089 # It is most probably a Windows format PATH printed by
9090 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9091 # path with ; separators, and with drive letters. We can handle the
9092 # drive letters (cygwin fileutils understands them), so leave them,
9093 # especially as we might pass files found there to a mingw objdump,
9094 # which wouldn't understand a cygwinified path. Ahh.
9095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9101 # pw32 DLLs use 'pw' prefix rather than 'lib'
9102 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9111 dynamic_linker='Win32 ld.exe'
9112 # FIXME: first we should search . and the directory the executable is in
9116 darwin* | rhapsody*)
9117 dynamic_linker="$host_os dyld"
9121 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9122 soname_spec='${libname}${release}${major}$shared_ext'
9123 shlibpath_overrides_runpath=yes
9124 shlibpath_var=DYLD_LIBRARY_PATH
9125 shrext_cmds='.dylib'
9126 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9127 if test "$GCC" = yes; then
9128 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"`
9130 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9160 freebsd* | dragonfly*)
9161 # DragonFly does not have aout. When/if they implement a new
9162 # versioning mechanism, adjust this.
9163 if test -x /usr/bin/objformat; then
9164 objformat=`/usr/bin/objformat`
9167 freebsd[123].*) objformat=aout ;;
9171 version_type=freebsd-$objformat
9172 case $version_type in
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9183 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9188 freebsd3.[01]* | freebsdelf3.[01]*)
9189 shlibpath_overrides_runpath=yes
9190 hardcode_into_libs=yes
9192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9194 shlibpath_overrides_runpath=no
9195 hardcode_into_libs=yes
9197 freebsd*) # from 4.6 on
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 hardcode_into_libs=yes
9214 hpux9* | hpux10* | hpux11*)
9215 # Give a soname corresponding to the major version so that dld.sl refuses to
9216 # link against other versions.
9223 hardcode_into_libs=yes
9224 dynamic_linker="$host_os dld.so"
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 if test "X$HPUX_IA64_MODE" = X32; then
9230 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9238 hardcode_into_libs=yes
9239 dynamic_linker="$host_os dld.sl"
9240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9249 dynamic_linker="$host_os dld.sl"
9250 shlibpath_var=SHLIB_PATH
9251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9256 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9257 postinstall_cmds='chmod 555 $lib'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=no
9269 hardcode_into_libs=yes
9272 irix5* | irix6* | nonstopux*)
9274 nonstopux*) version_type=nonstopux ;;
9276 if test "$lt_cv_prog_gnu_ld" = yes; then
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9287 irix5* | nonstopux*)
9291 case $LD in # libtool.m4 will add one of these switches to LD
9292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9293 libsuff= shlibsuff= libmagic=32-bit;;
9294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9295 libsuff=32 shlibsuff=N32 libmagic=N32;;
9296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9298 *) libsuff= shlibsuff= libmagic=never-match;;
9302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9303 shlibpath_overrides_runpath=no
9304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9306 hardcode_into_libs=yes
9309 # No shared lib support for Linux oldld, aout, or coff.
9310 linux*oldld* | linux*aout* | linux*coff*)
9314 # This must be Linux ELF.
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=no
9324 # This implies no fast_install, which is unacceptable.
9325 # Some rework will be needed to allow for fast_install
9326 # before this can be enabled.
9327 hardcode_into_libs=yes
9329 # Append ld.so.conf contents to the search path
9330 if test -f /etc/ld.so.conf; then
9331 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' ' '`
9332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9335 # We used to test for /lib/ld.so.1 and disable shared libraries on
9336 # powerpc, because MkLinux only supported shared libraries with the
9337 # GNU dynamic linker. Since this was broken with cross compilers,
9338 # most powerpc-linux boxes support dynamic linking these days and
9339 # people can always --disable-shared, the test was removed, and we
9340 # assume the GNU/Linux dynamic linker is in use.
9341 dynamic_linker='GNU/Linux ld.so'
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 hardcode_into_libs=yes
9353 dynamic_linker='GNU ld.so'
9360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9363 dynamic_linker='NetBSD (a.out) ld.so'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 dynamic_linker='NetBSD ld.elf_so'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes
9371 hardcode_into_libs=yes
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes
9393 sys_lib_dlsearch_path_spec="/usr/lib"
9395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9398 *) need_version=no ;;
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9405 openbsd2.[89] | openbsd2.[89].*)
9406 shlibpath_overrides_runpath=no
9409 shlibpath_overrides_runpath=yes
9413 shlibpath_overrides_runpath=yes
9418 libname_spec='$name'
9421 library_names_spec='$libname${shared_ext} $libname.a'
9422 dynamic_linker='OS/2 ld.exe'
9423 shlibpath_var=LIBPATH
9426 osf3* | osf4* | osf5*)
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9445 hardcode_into_libs=yes
9446 # ldd complains unless libraries are executable
9447 postinstall_cmds='chmod +x $lib'
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 if test "$with_gnu_ld" = yes; then
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 case $host_vendor in
9469 shlibpath_overrides_runpath=no
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 runpath_var=LD_RUN_PATH
9480 shlibpath_overrides_runpath=no
9481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9487 if test -d /usr/nec ;then
9489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9490 soname_spec='$libname${shared_ext}.$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9496 version_type=freebsd-elf
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 hardcode_into_libs=yes
9503 if test "$with_gnu_ld" = yes; then
9504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9505 shlibpath_overrides_runpath=no
9507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9508 shlibpath_overrides_runpath=yes
9511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9515 sys_lib_dlsearch_path_spec='/usr/lib'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6; }
9531 test "$dynamic_linker" = no && can_build_shared=no
9533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9534 if test "$GCC" = yes; then
9535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9539 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9540 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9541 if test "${libltdl_cv_shlibext+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 eval libltdl_cv_shlibext=$shrext_cmds
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9550 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9551 if test -n "$libltdl_cv_shlibext"; then
9553 cat >>confdefs.h <<_ACEOF
9554 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9560 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9561 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9562 if test "${libltdl_cv_sys_search_path+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9567 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9568 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9569 if test -n "$libltdl_cv_sys_search_path"; then
9571 for dir in $libltdl_cv_sys_search_path; do
9572 if test -z "$sys_search_path"; then
9573 sys_search_path="$dir"
9575 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9579 cat >>confdefs.h <<_ACEOF
9580 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9585 { echo "$as_me:$LINENO: checking for objdir" >&5
9586 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9587 if test "${libltdl_cv_objdir+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 libltdl_cv_objdir="$objdir"
9591 if test -n "$objdir"; then
9594 rm -f .libs 2>/dev/null
9595 mkdir .libs 2>/dev/null
9596 if test -d .libs; then
9597 libltdl_cv_objdir=.libs
9599 # MS-DOS does not allow filenames that begin with a dot.
9600 libltdl_cv_objdir=_libs
9602 rmdir .libs 2>/dev/null
9606 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9607 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9609 cat >>confdefs.h <<_ACEOF
9610 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9618 # Check for command to grab the raw symbol name followed by C symbol from nm.
9619 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9620 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 # These are sane defaults that work on at least a few old systems.
9626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9628 # Character class describing NM global symbol codes.
9629 symcode='[BCDEGRST]'
9631 # Regexp to match symbols that can be accessed directly from C.
9632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9634 # Transform an extracted symbol line into a proper C declaration
9635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9637 # Transform an extracted symbol line into symbol name and symbol address
9638 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'"
9640 # Define system-specific variables.
9645 cygwin* | mingw* | pw32*)
9646 symcode='[ABCDGISTW]'
9648 hpux*) # Its linker distinguishes data from code symbols
9649 if test "$host_cpu" = ia64; then
9650 symcode='[ABCDEGRST]'
9652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9653 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'"
9656 if test "$host_cpu" = ia64; then
9657 symcode='[ABCDGIRSTW]'
9658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9659 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'"
9663 symcode='[BCDEGRST]'
9666 symcode='[BCDEGQRST]'
9677 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9685 # Handle CRLF in mingw tool chain
9689 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9693 # If we're using GNU nm, then use its standard symbol codes.
9694 case `$NM -V 2>&1` in
9695 *GNU* | *'with BFD'*)
9696 symcode='[ABCDGIRSTW]' ;;
9699 # Try without a prefix undercore, then with it.
9700 for ac_symprfx in "" "_"; do
9702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9703 symxfrm="\\1 $ac_symprfx\\2 \\2"
9705 # Write the raw and C identifiers.
9706 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9708 # Check to see that the pipe works correctly.
9712 cat > conftest.$ac_ext <<EOF
9717 void nm_test_func(){}
9721 int main(){nm_test_var='a';nm_test_func();return(0);}
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; then
9729 # Now try to grab the symbols.
9731 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && test -s "$nlist"; then
9736 # Try sorting and uniquifying the output.
9737 if sort "$nlist" | uniq > "$nlist"T; then
9738 mv -f "$nlist"T "$nlist"
9743 # Make sure that we snagged all the symbols we need.
9744 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9745 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9746 cat <<EOF > conftest.$ac_ext
9752 # Now generate the symbol file.
9753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9755 cat <<EOF >> conftest.$ac_ext
9756 #if defined (__STDC__) && __STDC__
9757 # define lt_ptr_t void *
9759 # define lt_ptr_t char *
9763 /* The mapping between symbol names and symbols. */
9768 lt_preloaded_symbols[] =
9771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9772 cat <<\EOF >> conftest.$ac_ext
9780 # Now try linking the two files.
9781 mv conftest.$ac_objext conftstm.$ac_objext
9782 lt_save_LIBS="$LIBS"
9783 lt_save_CFLAGS="$CFLAGS"
9784 LIBS="conftstm.$ac_objext"
9785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9793 LIBS="$lt_save_LIBS"
9794 CFLAGS="$lt_save_CFLAGS"
9796 echo "cannot find nm_test_func in $nlist" >&5
9799 echo "cannot find nm_test_var in $nlist" >&5
9802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9805 echo "$progname: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9808 rm -f conftest* conftst*
9810 # Do not use the global_symbol_pipe unless it works.
9811 if test "$pipe_works" = yes; then
9814 lt_cv_sys_global_symbol_pipe=
9820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9821 lt_cv_sys_global_symbol_to_cdecl=
9823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9824 { echo "$as_me:$LINENO: result: failed" >&5
9825 echo "${ECHO_T}failed" >&6; }
9827 { echo "$as_me:$LINENO: result: ok" >&5
9828 echo "${ECHO_T}ok" >&6; }
9832 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9833 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9834 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9838 libltdl_cv_preloaded_symbols=yes
9840 libltdl_cv_preloaded_symbols=no
9844 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9845 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9846 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_PRELOADED_SYMBOLS 1
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9863 { echo "$as_me:$LINENO: checking for shl_load" >&5
9864 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9865 if test "${ac_cv_func_shl_load+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876 #define shl_load innocuous_shl_load
9878 /* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char shl_load (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9884 # include <limits.h>
9886 # include <assert.h>
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9898 /* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901 #if defined __stub_shl_load || defined __stub___shl_load
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_func_shl_load=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_func_shl_load=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9958 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9959 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9960 if test $ac_cv_func_shl_load = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_SHL_LOAD 1
9967 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 ac_check_lib_save_LIBS=$LIBS
9974 cat >conftest.$ac_ext <<_ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10011 { (case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_try") 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 ac_cv_lib_dld_shl_load=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_lib_dld_shl_load=no
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10044 if test $ac_cv_lib_dld_shl_load = yes; then
10046 cat >>confdefs.h <<\_ACEOF
10047 #define HAVE_SHL_LOAD 1
10050 LIBADD_DL="$LIBADD_DL -ldld"
10052 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 ac_check_lib_save_LIBS=$LIBS
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_link") 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_try") 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_lib_dl_dlopen=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ac_cv_lib_dl_dlopen=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10127 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10128 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10129 if test $ac_cv_lib_dl_dlopen = yes; then
10131 cat >>confdefs.h <<\_ACEOF
10132 #define HAVE_LIBDL 1
10135 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 # include <dlfcn.h>
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_LIBDL 1
10193 libltdl_cv_func_dlopen="yes"
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10199 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lsvld $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_svld_dlopen=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_svld_dlopen=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_LIBDL 1
10281 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10283 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10284 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 ac_check_lib_save_LIBS=$LIBS
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10307 return dld_link ();
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10321 grep -v '^ *+' conftest.er1 >conftest.err
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_lib_dld_dld_link=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_dld_dld_link=no
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10359 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10360 if test $ac_cv_lib_dld_dld_link = yes; then
10362 cat >>confdefs.h <<\_ACEOF
10366 LIBADD_DL="$LIBADD_DL -ldld"
10368 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10369 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10370 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381 #define _dyld_func_lookup innocuous__dyld_func_lookup
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char _dyld_func_lookup (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10389 # include <limits.h>
10391 # include <assert.h>
10394 #undef _dyld_func_lookup
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10402 char _dyld_func_lookup ();
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10413 return _dyld_func_lookup ();
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_try") 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_func__dyld_func_lookup=yes
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_cv_func__dyld_func_lookup=no
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10464 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10465 if test $ac_cv_func__dyld_func_lookup = yes; then
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE_DYLD 1
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10494 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10496 lt_save_LIBS="$LIBS"
10497 LIBS="$LIBS $LIBADD_DL"
10499 for ac_func in dlerror
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10515 #define $ac_func innocuous_$ac_func
10517 /* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char $ac_func (); below.
10519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520 <limits.h> exists even on freestanding compilers. */
10523 # include <limits.h>
10525 # include <assert.h>
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10537 /* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540 #if defined __stub_$ac_func || defined __stub___$ac_func
10547 return $ac_func ();
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10567 { (case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_try") 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 eval "$as_ac_var=yes"
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 eval "$as_ac_var=no"
10594 rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10597 ac_res=`eval echo '${'$as_ac_var'}'`
10598 { echo "$as_me:$LINENO: result: $ac_res" >&5
10599 echo "${ECHO_T}$ac_res" >&6; }
10600 if test `eval echo '${'$as_ac_var'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10608 LIBS="$lt_save_LIBS"
10611 ac_cpp='$CPP $CPPFLAGS'
10612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10619 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10620 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_cv_sys_symbol_underscore=no
10624 cat > conftest.$ac_ext <<EOF
10625 void nm_test_func(){}
10626 int main(){nm_test_func;return 0;}
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629 (eval $ac_compile) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; then
10633 # Now try to grab the symbols.
10634 ac_nlist=conftest.nm
10635 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && test -s "$ac_nlist"; then
10640 # See whether the symbols have a leading underscore.
10641 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10642 ac_cv_sys_symbol_underscore=yes
10644 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10647 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10651 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10654 echo "configure: failed program was:" >&5
10660 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10661 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10664 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10665 if test x"$libltdl_cv_func_dlopen" = xyes ||
10666 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10667 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10668 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10669 if test "${libltdl_cv_need_uscore+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 libltdl_cv_need_uscore=unknown
10674 LIBS="$LIBS $LIBADD_DL"
10675 if test "$cross_compiling" = yes; then :
10676 libltdl_cv_need_uscore=cross
10678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679 lt_status=$lt_dlunknown
10680 cat > conftest.$ac_ext <<EOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10691 # define LT_DLGLOBAL RTLD_GLOBAL
10694 # define LT_DLGLOBAL DL_GLOBAL
10696 # define LT_DLGLOBAL 0
10700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701 find out it does not work in some platform. */
10702 #ifndef LT_DLLAZY_OR_NOW
10704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10707 # define LT_DLLAZY_OR_NOW DL_LAZY
10710 # define LT_DLLAZY_OR_NOW RTLD_NOW
10713 # define LT_DLLAZY_OR_NOW DL_NOW
10715 # define LT_DLLAZY_OR_NOW 0
10723 extern "C" void exit (int);
10726 void fnord() { int i=42;}
10729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10730 int status = $lt_dlunknown;
10734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10736 /* dlclose (self); */
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10749 (./conftest; exit; ) >&5 2>/dev/null
10751 case x$lt_status in
10752 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10753 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10754 x$lt_dlunknown|x*) ;;
10757 # compilation failed
10766 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10767 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10771 if test x"$libltdl_cv_need_uscore" = xyes; then
10773 cat >>confdefs.h <<\_ACEOF
10774 #define NEED_USCORE 1
10780 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10781 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10782 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 # PORTME does your system automatically load deplibs for dlopen?
10786 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10787 # For now, we just catch OSes we know something about -- in the
10788 # future, we'll try test this programmatically.
10789 libltdl_cv_sys_dlopen_deplibs=unknown
10791 aix3*|aix4.1.*|aix4.2.*)
10792 # Unknown whether this is true for these versions of AIX, but
10793 # we want this `case' here to explicitly catch those versions.
10794 libltdl_cv_sys_dlopen_deplibs=unknown
10797 libltdl_cv_sys_dlopen_deplibs=yes
10800 # Assuming the user has installed a libdl from somewhere, this is true
10801 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10802 libltdl_cv_sys_dlopen_deplibs=yes
10804 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10805 # GNU and its variants, using gnu ld.so (Glibc)
10806 libltdl_cv_sys_dlopen_deplibs=yes
10809 libltdl_cv_sys_dlopen_deplibs=yes
10812 libltdl_cv_sys_dlopen_deplibs=yes
10814 irix[12345]*|irix6.[01]*)
10815 # Catch all versions of IRIX before 6.2, and indicate that we don't
10816 # know how it worked for any of those versions.
10817 libltdl_cv_sys_dlopen_deplibs=unknown
10820 # The case above catches anything before 6.2, and it's known that
10821 # at 6.2 and later dlopen does load deplibs.
10822 libltdl_cv_sys_dlopen_deplibs=yes
10825 libltdl_cv_sys_dlopen_deplibs=yes
10828 libltdl_cv_sys_dlopen_deplibs=yes
10831 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10832 # it did *not* use an RPATH in a shared library to find objects the
10833 # library depends on, so we explicitly say `no'.
10834 libltdl_cv_sys_dlopen_deplibs=no
10836 osf5.0|osf5.0a|osf5.1)
10837 # dlopen *does* load deplibs and with the right loader patch applied
10838 # it even uses RPATH in a shared library to search for shared objects
10839 # that the library depends on, but there's no easy way to know if that
10840 # patch is installed. Since this is the case, all we can really
10841 # say is unknown -- it depends on the patch being installed. If
10842 # it is, this changes to `yes'. Without it, it would be `no'.
10843 libltdl_cv_sys_dlopen_deplibs=unknown
10846 # the two cases above should catch all versions of osf <= 5.1. Read
10847 # the comments above for what we know about them.
10848 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10849 # is used to find them so we can finally say `yes'.
10850 libltdl_cv_sys_dlopen_deplibs=yes
10853 libltdl_cv_sys_dlopen_deplibs=yes
10855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10856 libltdl_cv_sys_dlopen_deplibs=yes
10861 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10862 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10863 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10865 cat >>confdefs.h <<\_ACEOF
10866 #define LTDL_DLOPEN_DEPLIBS 1
10872 for ac_header in argz.h
10874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 ac_res=`eval echo '${'$as_ac_Header'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10885 # Is the header compilable?
10886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10888 cat >conftest.$ac_ext <<_ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 #include <$ac_header>
10897 rm -f conftest.$ac_objext
10898 if { (ac_try="$ac_compile"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_compile") 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_header_compiler=yes
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_header_compiler=no
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10941 echo "${ECHO_T}$ac_header_compiler" >&6; }
10943 # Is the header present?
10944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 #include <$ac_header>
10954 if { (ac_try="$ac_cpp conftest.$ac_ext"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10976 if test -z "$ac_cpp_err"; then
10977 ac_header_preproc=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_preproc=no
10985 rm -f conftest.err conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10987 echo "${ECHO_T}$ac_header_preproc" >&6; }
10989 # So? What about this header?
10990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10996 ac_header_preproc=yes
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11012 ## ------------------------------------ ##
11013 ## Report this to http://llvm.org/bugs/ ##
11014 ## ------------------------------------ ##
11016 ) | sed "s/^/$as_me: WARNING: /" >&2
11019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 eval "$as_ac_Header=\$ac_header_preproc"
11026 ac_res=`eval echo '${'$as_ac_Header'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11032 cat >>confdefs.h <<_ACEOF
11033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041 { echo "$as_me:$LINENO: checking for error_t" >&5
11042 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11043 if test "${ac_cv_type_error_t+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11056 typedef error_t ac__type_new_;
11060 if ((ac__type_new_ *) 0)
11062 if (sizeof (ac__type_new_))
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; } &&
11092 { ac_try='test -s conftest.$ac_objext'
11093 { (case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_try") 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_type_error_t=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_cv_type_error_t=no
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11113 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11114 if test $ac_cv_type_error_t = yes; then
11116 cat >>confdefs.h <<_ACEOF
11117 #define HAVE_ERROR_T 1
11123 cat >>confdefs.h <<\_ACEOF
11124 #define error_t int
11135 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11173 /* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176 #if defined __stub_$ac_func || defined __stub___$ac_func
11183 return $ac_func ();
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
11197 grep -v '^ *+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } &&
11202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest$ac_exeext'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 eval "$as_ac_var=yes"
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 eval "$as_ac_var=no"
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11233 ac_res=`eval echo '${'$as_ac_var'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236 if test `eval echo '${'$as_ac_var'}'` = yes; then
11237 cat >>confdefs.h <<_ACEOF
11238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 for ac_header in errno.h malloc.h memory.h unistd.h
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11279 # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 $ac_includes_default
11289 #include <$ac_header>
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_header_compiler=no
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 #include <$ac_header>
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11370 if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406 ## ------------------------------------ ##
11407 ## Report this to http://llvm.org/bugs/ ##
11408 ## ------------------------------------ ##
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 eval "$as_ac_Header=\$ac_header_preproc"
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11435 for ac_header in mach-o/dyld.h
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11448 # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11458 #include <$ac_header>
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_header_compiler=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <$ac_header>
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_c_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11539 if test -z "$ac_cpp_err"; then
11540 ac_header_preproc=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_preproc=no
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11552 # So? What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575 ## ------------------------------------ ##
11576 ## Report this to http://llvm.org/bugs/ ##
11577 ## ------------------------------------ ##
11579 ) | sed "s/^/$as_me: WARNING: /" >&2
11582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 eval "$as_ac_Header=\$ac_header_preproc"
11589 ac_res=`eval echo '${'$as_ac_Header'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 for ac_func in closedir opendir readdir
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623 #define $ac_func innocuous_$ac_func
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11631 # include <limits.h>
11633 # include <assert.h>
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11645 /* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11655 return $ac_func ();
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11719 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11732 if test "$GCC" != "yes" && test "$ICC" != "yes"
11734 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11735 echo "$as_me: error: gcc|icc required but not found" >&2;}
11736 { (exit 1); exit 1; }; }
11739 if test "$GXX" != "yes" && test "$IXX" != "yes"
11741 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11742 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11743 { (exit 1); exit 1; }; }
11746 if test "$GCC" = "yes"
11748 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11756 #if !defined(__GNUC__) || __GNUC__ < 3
11757 #error Unsupported GCC version
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_compile") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11802 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11803 { (exit 1); exit 1; }; }
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 if test -z "$llvm_cv_gnu_make_command"
11811 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11812 echo "$as_me: error: GNU Make required but not found" >&2;}
11813 { (exit 1); exit 1; }; }
11816 { echo "$as_me:$LINENO: result: ok" >&5
11817 echo "${ECHO_T}ok" >&6; }
11819 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11820 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11821 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11823 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11825 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11829 NO_MAYBE_UNINITIALIZED=
11830 if test "$GXX" = "yes"
11832 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11834 if test -z "$NO_MAYBE_UNINITIALIZED"
11836 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11840 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11841 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11844 # Check whether --with-python was given.
11845 if test "${with_python+set}" = set; then
11846 withval=$with_python; PYTHON="$withval"
11850 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11851 { echo "$as_me:$LINENO: checking for python" >&5
11852 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11853 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11854 echo "${ECHO_T}user defined: $with_python" >&6; }
11856 if test -n "$PYTHON" ; then
11857 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11858 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11861 # Extract the first word of "python python2 python26", so it can be a program name with args.
11862 set dummy python python2 python26; ac_word=$2
11863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11865 if test "${ac_cv_path_PYTHON+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11880 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11889 echo "${ECHO_T}not found" >&6; }
11890 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11891 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11892 { (exit 1); exit 1; }; }"
11896 PYTHON=$ac_cv_path_PYTHON
11897 if test -n "$PYTHON"; then
11898 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11899 echo "${ECHO_T}$PYTHON" >&6; }
11901 { echo "$as_me:$LINENO: result: no" >&5
11902 echo "${ECHO_T}no" >&6; }
11908 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11909 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11910 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11911 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11912 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11913 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11914 if test "$ac_python_version_major" -gt "2" || \
11915 (test "$ac_python_version_major" -eq "2" && \
11916 test "$ac_python_version_minor" -ge "5") ; then
11917 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11918 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11920 { echo "$as_me:$LINENO: result: not found" >&5
11921 echo "${ECHO_T}not found" >&6; }
11922 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11923 See \`config.log' for more details." >&5
11924 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11925 See \`config.log' for more details." >&2;}
11926 { (exit 1); exit 1; }; }
11931 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11932 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_m_sin+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 ac_check_lib_save_LIBS=$LIBS
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_try") 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_lib_m_sin=yes
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12007 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12008 if test $ac_cv_lib_m_sin = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_LIBM 1
12017 if test "$llvm_cv_os_type" = "MingW" ; then
12019 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12020 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-limagehlp $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest$ac_exeext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_lib_imagehlp_main=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_lib_imagehlp_main=no
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12089 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12090 if test $ac_cv_lib_imagehlp_main = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092 #define HAVE_LIBIMAGEHLP 1
12095 LIBS="-limagehlp $LIBS"
12100 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12101 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12102 if test "${ac_cv_lib_psapi_main+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-lpsapi $LIBS"
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_lib_psapi_main=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_lib_psapi_main=no
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12170 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12171 if test $ac_cv_lib_psapi_main = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_LIBPSAPI 1
12176 LIBS="-lpsapi $LIBS"
12181 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12182 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12183 if test "${ac_cv_lib_shell32_main+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lshell32 $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_shell32_main=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_lib_shell32_main=no
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12251 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12252 if test $ac_cv_lib_shell32_main = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBSHELL32 1
12257 LIBS="-lshell32 $LIBS"
12263 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12264 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12265 if test "${ac_cv_search_dlopen+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_func_search_save_LIBS=$LIBS
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12291 for ac_lib in '' dl; do
12292 if test -z "$ac_lib"; then
12293 ac_res="none required"
12296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_search_dlopen=$ac_res
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12340 rm -f core conftest.err conftest.$ac_objext \
12342 if test "${ac_cv_search_dlopen+set}" = set; then
12346 if test "${ac_cv_search_dlopen+set}" = set; then
12349 ac_cv_search_dlopen=no
12351 rm conftest.$ac_ext
12352 LIBS=$ac_func_search_save_LIBS
12354 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12355 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12356 ac_res=$ac_cv_search_dlopen
12357 if test "$ac_res" != no; then
12358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12360 cat >>confdefs.h <<\_ACEOF
12361 #define HAVE_DLOPEN 1
12365 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12366 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12370 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12371 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12372 if test "${ac_cv_search_clock_gettime+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 ac_func_search_save_LIBS=$LIBS
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12389 char clock_gettime ();
12393 return clock_gettime ();
12398 for ac_lib in '' rt; do
12399 if test -z "$ac_lib"; then
12400 ac_res="none required"
12403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (ac_try="$ac_link"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_link") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_search_clock_gettime=$ac_res
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12447 rm -f core conftest.err conftest.$ac_objext \
12449 if test "${ac_cv_search_clock_gettime+set}" = set; then
12453 if test "${ac_cv_search_clock_gettime+set}" = set; then
12456 ac_cv_search_clock_gettime=no
12458 rm conftest.$ac_ext
12459 LIBS=$ac_func_search_save_LIBS
12461 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12462 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12463 ac_res=$ac_cv_search_clock_gettime
12464 if test "$ac_res" != no; then
12465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12470 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12471 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12472 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_setupterm+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12494 return setupterm ();
12499 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_search_setupterm=$ac_res
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f core conftest.err conftest.$ac_objext \
12550 if test "${ac_cv_search_setupterm+set}" = set; then
12554 if test "${ac_cv_search_setupterm+set}" = set; then
12557 ac_cv_search_setupterm=no
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12563 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12564 ac_res=$ac_cv_search_setupterm
12565 if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_TERMINFO 1
12576 if test "$llvm_cv_enable_libedit" = "yes" ; then
12577 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12578 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12579 if test "${ac_cv_search_el_init+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_func_search_save_LIBS=$LIBS
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 /* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12605 for ac_lib in '' edit; do
12606 if test -z "$ac_lib"; then
12607 ac_res="none required"
12610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest$ac_exeext'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_search_el_init=$ac_res
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12654 rm -f core conftest.err conftest.$ac_objext \
12656 if test "${ac_cv_search_el_init+set}" = set; then
12660 if test "${ac_cv_search_el_init+set}" = set; then
12663 ac_cv_search_el_init=no
12665 rm conftest.$ac_ext
12666 LIBS=$ac_func_search_save_LIBS
12668 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12669 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12670 ac_res=$ac_cv_search_el_init
12671 if test "$ac_res" != no; then
12672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12674 cat >>confdefs.h <<\_ACEOF
12675 #define HAVE_LIBEDIT 1
12682 if test "$llvm_cv_enable_libffi" = "yes" ; then
12683 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_func_search_save_LIBS=$LIBS
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12706 return ffi_call ();
12711 for ac_lib in '' ffi; do
12712 if test -z "$ac_lib"; then
12713 ac_res="none required"
12716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12718 rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (ac_try="$ac_link"
12720 case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_link") 2>conftest.er1
12727 grep -v '^ *+' conftest.er1 >conftest.err
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest$ac_exeext'
12743 { (case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_try") 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_cv_search_ffi_call=$ac_res
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12760 rm -f core conftest.err conftest.$ac_objext \
12762 if test "${ac_cv_search_ffi_call+set}" = set; then
12766 if test "${ac_cv_search_ffi_call+set}" = set; then
12769 ac_cv_search_ffi_call=no
12771 rm conftest.$ac_ext
12772 LIBS=$ac_func_search_save_LIBS
12774 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12776 ac_res=$ac_cv_search_ffi_call
12777 if test "$ac_res" != no; then
12778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12780 cat >>confdefs.h <<\_ACEOF
12781 #define HAVE_FFI_CALL 1
12785 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787 { (exit 1); exit 1; }; }
12792 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12815 return mallinfo ();
12820 for ac_lib in '' malloc; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_search_mallinfo=$ac_res
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12869 rm -f core conftest.err conftest.$ac_objext \
12871 if test "${ac_cv_search_mallinfo+set}" = set; then
12875 if test "${ac_cv_search_mallinfo+set}" = set; then
12878 ac_cv_search_mallinfo=no
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12885 ac_res=$ac_cv_search_mallinfo
12886 if test "$ac_res" != no; then
12887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MALLINFO 1
12896 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12898 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lpthread $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12918 char pthread_mutex_init ();
12922 return pthread_mutex_init ();
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_pthread_pthread_mutex_init=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_cv_lib_pthread_pthread_mutex_init=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12976 cat >>confdefs.h <<_ACEOF
12977 #define HAVE_LIBPTHREAD 1
12980 LIBS="-lpthread $LIBS"
12984 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12997 /* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13003 char pthread_mutex_lock ();
13007 return pthread_mutex_lock ();
13012 for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_search_pthread_mutex_lock=$ac_res
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13061 rm -f core conftest.err conftest.$ac_objext \
13063 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13070 ac_cv_search_pthread_mutex_lock=no
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13077 ac_res=$ac_cv_search_pthread_mutex_lock
13078 if test "$ac_res" != no; then
13079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_MUTEX_LOCK 1
13087 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_func_search_save_LIBS=$LIBS
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13106 char pthread_rwlock_init ();
13110 return pthread_rwlock_init ();
13115 for ac_lib in '' pthread; do
13116 if test -z "$ac_lib"; then
13117 ac_res="none required"
13120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_search_pthread_rwlock_init=$ac_res
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13164 rm -f core conftest.err conftest.$ac_objext \
13166 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13173 ac_cv_search_pthread_rwlock_init=no
13175 rm conftest.$ac_ext
13176 LIBS=$ac_func_search_save_LIBS
13178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13180 ac_res=$ac_cv_search_pthread_rwlock_init
13181 if test "$ac_res" != no; then
13182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_PTHREAD_RWLOCK_INIT 1
13190 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 ac_func_search_save_LIBS=$LIBS
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13209 char pthread_getspecific ();
13213 return pthread_getspecific ();
13218 for ac_lib in '' pthread; do
13219 if test -z "$ac_lib"; then
13220 ac_res="none required"
13223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (ac_try="$ac_link"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_link") 2>conftest.er1
13234 grep -v '^ *+' conftest.er1 >conftest.err
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_search_pthread_getspecific=$ac_res
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13267 rm -f core conftest.err conftest.$ac_objext \
13269 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13276 ac_cv_search_pthread_getspecific=no
13278 rm conftest.$ac_ext
13279 LIBS=$ac_func_search_save_LIBS
13281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13283 ac_res=$ac_cv_search_pthread_getspecific
13284 if test "$ac_res" != no; then
13285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_PTHREAD_GETSPECIFIC 1
13295 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13297 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13298 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13299 if test "${ac_cv_lib_z_compress2+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 ac_check_lib_save_LIBS=$LIBS
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13321 return compress2 ();
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (ac_try="$ac_link"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_link") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341 { (case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_try") 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_lib_z_compress2=yes
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_lib_z_compress2=no
13368 rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13373 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13374 if test $ac_cv_lib_z_compress2 = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376 #define HAVE_LIBZ 1
13386 # Check whether --with-udis86 was given.
13387 if test "${with_udis86+set}" = set; then
13388 withval=$with_udis86;
13393 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13396 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13397 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13398 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 ac_check_lib_save_LIBS=$LIBS
13402 LIBS="-ludis86 $LIBS"
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13410 /* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (ac_try="$ac_link"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_link") 2>conftest.er1
13434 grep -v '^ *+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13440 { (case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_try") 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_try") 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_lib_udis86_ud_init=yes
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_cv_lib_udis86_ud_init=no
13467 rm -f core conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 LIBS=$ac_check_lib_save_LIBS
13471 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13472 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13473 if test $ac_cv_lib_udis86_ud_init = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_LIBUDIS86 1
13478 LIBS="-ludis86 $LIBS"
13482 echo "Error! You need to have libudis86 around."
13494 cat >>confdefs.h <<_ACEOF
13495 #define USE_UDIS86 $USE_UDIS86
13500 # Check whether --with-oprofile was given.
13501 if test "${with_oprofile+set}" = set; then
13502 withval=$with_oprofile;
13506 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13507 no) llvm_cv_oppath=
13510 *) llvm_cv_oppath="${withval}/lib/oprofile"
13511 CPPFLAGS="-I${withval}/include";;
13513 case $llvm_cv_os_type in
13515 if test -n "$llvm_cv_oppath" ; then
13516 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13517 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13518 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13519 if test "${ac_cv_search_bfd_init+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 ac_func_search_save_LIBS=$LIBS
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13540 return bfd_init ();
13545 for ac_lib in '' bfd; do
13546 if test -z "$ac_lib"; then
13547 ac_res="none required"
13550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (ac_try="$ac_link"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_try") 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_search_bfd_init=$ac_res
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13594 rm -f core conftest.err conftest.$ac_objext \
13596 if test "${ac_cv_search_bfd_init+set}" = set; then
13600 if test "${ac_cv_search_bfd_init+set}" = set; then
13603 ac_cv_search_bfd_init=no
13605 rm conftest.$ac_ext
13606 LIBS=$ac_func_search_save_LIBS
13608 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13609 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13610 ac_res=$ac_cv_search_bfd_init
13611 if test "$ac_res" != no; then
13612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13616 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13617 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13618 if test "${ac_cv_search_op_open_agent+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 ac_func_search_save_LIBS=$LIBS
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13635 char op_open_agent ();
13639 return op_open_agent ();
13644 for ac_lib in '' opagent; do
13645 if test -z "$ac_lib"; then
13646 ac_res="none required"
13649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (ac_try="$ac_link"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_link") 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_search_op_open_agent=$ac_res
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13693 rm -f core conftest.err conftest.$ac_objext \
13695 if test "${ac_cv_search_op_open_agent+set}" = set; then
13699 if test "${ac_cv_search_op_open_agent+set}" = set; then
13702 ac_cv_search_op_open_agent=no
13704 rm conftest.$ac_ext
13705 LIBS=$ac_func_search_save_LIBS
13707 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13708 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13709 ac_res=$ac_cv_search_op_open_agent
13710 if test "$ac_res" != no; then
13711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715 echo "Error! You need to have libopagent around."
13720 if test "${ac_cv_header_opagent_h+set}" = set; then
13721 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13722 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_opagent_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13727 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13729 # Is the header compilable?
13730 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13731 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13732 cat >conftest.$ac_ext <<_ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 #include <opagent.h>
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_header_compiler=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_header_compiler=no
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13785 echo "${ECHO_T}$ac_header_compiler" >&6; }
13787 # Is the header present?
13788 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13789 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include <opagent.h>
13798 if { (ac_try="$ac_cpp conftest.$ac_ext"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } >/dev/null; then
13811 if test -s conftest.err; then
13812 ac_cpp_err=$ac_c_preproc_warn_flag
13813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13820 if test -z "$ac_cpp_err"; then
13821 ac_header_preproc=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_header_preproc=no
13829 rm -f conftest.err conftest.$ac_ext
13830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6; }
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13839 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc=yes
13843 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13844 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13846 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13848 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13850 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13852 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13854 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13856 ## ------------------------------------ ##
13857 ## Report this to http://llvm.org/bugs/ ##
13858 ## ------------------------------------ ##
13860 ) | sed "s/^/$as_me: WARNING: /" >&2
13863 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13864 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13865 if test "${ac_cv_header_opagent_h+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 ac_cv_header_opagent_h=$ac_header_preproc
13870 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13871 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13874 if test $ac_cv_header_opagent_h = yes; then
13878 echo "Error! You need to have opagent.h around."
13886 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13887 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13888 { (exit 1); exit 1; }; } ;;
13899 cat >>confdefs.h <<_ACEOF
13900 #define LLVM_USE_OPROFILE $USE_OPROFILE
13905 # Check whether --with-intel-jitevents was given.
13906 if test "${with_intel_jitevents+set}" = set; then
13907 withval=$with_intel_jitevents;
13909 yes) USE_INTEL_JITEVENTS=1
13911 no) USE_INTEL_JITEVENTS=0
13913 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13914 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13915 { (exit 1); exit 1; }; };;
13918 case $llvm_cv_os_type in
13919 Linux|Win32|Cygwin|MingW) ;;
13920 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13921 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13922 { (exit 1); exit 1; }; };;
13925 case "$llvm_cv_target_arch" in
13927 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13928 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13929 { (exit 1); exit 1; }; };;
13934 USE_INTEL_JITEVENTS=0
13940 cat >>confdefs.h <<_ACEOF
13941 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13945 for ac_prog in xml2-config
13947 # Extract the first word of "$ac_prog", so it can be a program name with args.
13948 set dummy $ac_prog; ac_word=$2
13949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13951 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 if test -n "$XML2CONFIG"; then
13955 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13964 ac_cv_prog_XML2CONFIG="$ac_prog"
13965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13975 if test -n "$XML2CONFIG"; then
13976 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13977 echo "${ECHO_T}$XML2CONFIG" >&6; }
13979 { echo "$as_me:$LINENO: result: no" >&5
13980 echo "${ECHO_T}no" >&6; }
13984 test -n "$XML2CONFIG" && break
13988 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13989 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13990 if test "x$XML2CONFIG" = "x"; then
13991 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13992 echo "${ECHO_T}xml2-config not found" >&6; }
13994 LIBXML2_INC=`$XML2CONFIG --cflags`
13995 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13996 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13997 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13998 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13999 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lxml2 $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14017 char xmlReadFile ();
14021 return xmlReadFile ();
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_link") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_try") 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_xml2_xmlReadFile=yes
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_lib_xml2_xmlReadFile=no
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14073 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14074 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14076 cat >>confdefs.h <<\_ACEOF
14077 #define CLANG_HAVE_LIBXML 1
14080 LIBXML2_LIBS="-lxml2"
14093 ac_header_dirent=no
14094 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14095 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14096 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14097 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <sys/types.h>
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14134 { (case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_try") 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_try") 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 eval "$as_ac_Header=yes"
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 eval "$as_ac_Header=no"
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 ac_res=`eval echo '${'$as_ac_Header'}'`
14164 { echo "$as_me:$LINENO: result: $ac_res" >&5
14165 echo "${ECHO_T}$ac_res" >&6; }
14166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14167 cat >>confdefs.h <<_ACEOF
14168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14171 ac_header_dirent=$ac_hdr; break
14175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14176 if test $ac_header_dirent = dirent.h; then
14177 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14179 if test "${ac_cv_search_opendir+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 ac_func_search_save_LIBS=$LIBS
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14205 for ac_lib in '' dir; do
14206 if test -z "$ac_lib"; then
14207 ac_res="none required"
14210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_link") 2>conftest.er1
14221 grep -v '^ *+' conftest.er1 >conftest.err
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_search_opendir=$ac_res
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14254 rm -f core conftest.err conftest.$ac_objext \
14256 if test "${ac_cv_search_opendir+set}" = set; then
14260 if test "${ac_cv_search_opendir+set}" = set; then
14263 ac_cv_search_opendir=no
14265 rm conftest.$ac_ext
14266 LIBS=$ac_func_search_save_LIBS
14268 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14269 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14270 ac_res=$ac_cv_search_opendir
14271 if test "$ac_res" != no; then
14272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14277 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14279 if test "${ac_cv_search_opendir+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ac_func_search_save_LIBS=$LIBS
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14290 /* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
14305 for ac_lib in '' x; do
14306 if test -z "$ac_lib"; then
14307 ac_res="none required"
14310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_search_opendir=$ac_res
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14354 rm -f core conftest.err conftest.$ac_objext \
14356 if test "${ac_cv_search_opendir+set}" = set; then
14360 if test "${ac_cv_search_opendir+set}" = set; then
14363 ac_cv_search_opendir=no
14365 rm conftest.$ac_ext
14366 LIBS=$ac_func_search_save_LIBS
14368 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14369 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14370 ac_res=$ac_cv_search_opendir
14371 if test "$ac_res" != no; then
14372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14379 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14380 if test "${ac_cv_header_mmap_anon+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 ac_cpp='$CPP $CPPFLAGS'
14385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 #include <sys/mman.h>
14396 #include <unistd.h>
14401 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_cv_header_mmap_anon=yes
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 ac_cv_header_mmap_anon=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 ac_cpp='$CPP $CPPFLAGS'
14451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14457 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14458 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14459 if test "$ac_cv_header_mmap_anon" = yes; then
14461 cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_MMAP_ANONYMOUS 1
14467 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14468 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_stat_broken+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <sys/types.h>
14479 #include <sys/stat.h>
14481 #if defined S_ISBLK && defined S_IFDIR
14482 # if S_ISBLK (S_IFDIR)
14487 #if defined S_ISBLK && defined S_IFCHR
14488 # if S_ISBLK (S_IFCHR)
14493 #if defined S_ISLNK && defined S_IFREG
14494 # if S_ISLNK (S_IFREG)
14499 #if defined S_ISSOCK && defined S_IFREG
14500 # if S_ISSOCK (S_IFREG)
14506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507 $EGREP "You lose" >/dev/null 2>&1; then
14508 ac_cv_header_stat_broken=yes
14510 ac_cv_header_stat_broken=no
14515 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14516 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14517 if test $ac_cv_header_stat_broken = yes; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define STAT_MACROS_BROKEN 1
14525 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 #include <sys/types.h>
14537 #include <sys/wait.h>
14538 #ifndef WEXITSTATUS
14539 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14542 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14550 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_cv_header_sys_wait_h=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_header_sys_wait_h=no
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14601 if test $ac_cv_header_sys_wait_h = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_SYS_WAIT_H 1
14609 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14610 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14611 if test "${ac_cv_header_time+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <sys/types.h>
14621 #include <sys/time.h>
14627 if ((struct tm *) 0)
14633 rm -f conftest.$ac_objext
14634 if { (ac_try="$ac_compile"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_compile") 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest.$ac_objext'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_header_time=yes
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_cv_header_time=no
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14678 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14679 if test $ac_cv_header_time = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define TIME_WITH_SYS_TIME 1
14689 ac_cpp='$CXXCPP $CPPFLAGS'
14690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14695 ac_cpp='$CXXCPP $CPPFLAGS'
14696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14699 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14700 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14701 if test -z "$CXXCPP"; then
14702 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 # Double quotes because CXXCPP needs to be expanded
14706 for CXXCPP in "$CXX -E" "/lib/cpp"
14708 ac_preproc_ok=false
14709 for ac_cxx_preproc_warn_flag in '' yes
14711 # Use a header file that comes with gcc, so configuring glibc
14712 # with a fresh cross-compiler works.
14713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 # <limits.h> exists even on freestanding compilers.
14715 # On the NeXT, cc -E runs the code through the compiler's parser,
14716 # not just through cpp. "Syntax error" is here to catch this case.
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14724 # include <limits.h>
14726 # include <assert.h>
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } >/dev/null; then
14743 if test -s conftest.err; then
14744 ac_cpp_err=$ac_cxx_preproc_warn_flag
14745 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14752 if test -z "$ac_cpp_err"; then
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 # Broken: fails on valid input.
14762 rm -f conftest.err conftest.$ac_ext
14764 # OK, works on sane cases. Now check whether nonexistent headers
14765 # can be detected and how.
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 #include <ac_nonexistent.h>
14774 if { (ac_try="$ac_cpp conftest.$ac_ext"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14782 grep -v '^ *+' conftest.er1 >conftest.err
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } >/dev/null; then
14787 if test -s conftest.err; then
14788 ac_cpp_err=$ac_cxx_preproc_warn_flag
14789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14796 if test -z "$ac_cpp_err"; then
14797 # Broken: success on invalid input.
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 # Passes both tests.
14808 rm -f conftest.err conftest.$ac_ext
14811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14812 rm -f conftest.err conftest.$ac_ext
14813 if $ac_preproc_ok; then
14818 ac_cv_prog_CXXCPP=$CXXCPP
14821 CXXCPP=$ac_cv_prog_CXXCPP
14823 ac_cv_prog_CXXCPP=$CXXCPP
14825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14826 echo "${ECHO_T}$CXXCPP" >&6; }
14827 ac_preproc_ok=false
14828 for ac_cxx_preproc_warn_flag in '' yes
14830 # Use a header file that comes with gcc, so configuring glibc
14831 # with a fresh cross-compiler works.
14832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833 # <limits.h> exists even on freestanding compilers.
14834 # On the NeXT, cc -E runs the code through the compiler's parser,
14835 # not just through cpp. "Syntax error" is here to catch this case.
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14843 # include <limits.h>
14845 # include <assert.h>
14849 if { (ac_try="$ac_cpp conftest.$ac_ext"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } >/dev/null; then
14862 if test -s conftest.err; then
14863 ac_cpp_err=$ac_cxx_preproc_warn_flag
14864 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14871 if test -z "$ac_cpp_err"; then
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 # Broken: fails on valid input.
14881 rm -f conftest.err conftest.$ac_ext
14883 # OK, works on sane cases. Now check whether nonexistent headers
14884 # can be detected and how.
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 #include <ac_nonexistent.h>
14893 if { (ac_try="$ac_cpp conftest.$ac_ext"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev/null; then
14906 if test -s conftest.err; then
14907 ac_cpp_err=$ac_cxx_preproc_warn_flag
14908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14915 if test -z "$ac_cpp_err"; then
14916 # Broken: success on invalid input.
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 # Passes both tests.
14927 rm -f conftest.err conftest.$ac_ext
14930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14931 rm -f conftest.err conftest.$ac_ext
14932 if $ac_preproc_ok; then
14935 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14936 See \`config.log' for more details." >&5
14937 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14938 See \`config.log' for more details." >&2;}
14939 { (exit 1); exit 1; }; }
14943 ac_cpp='$CXXCPP $CPPFLAGS'
14944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14950 for ac_header in cxxabi.h
14952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 ac_res=`eval echo '${'$as_ac_Header'}'`
14960 { echo "$as_me:$LINENO: result: $ac_res" >&5
14961 echo "${ECHO_T}$ac_res" >&6; }
14963 # Is the header compilable?
14964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14973 #include <$ac_header>
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 ac_header_compiler=yes
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 ac_header_compiler=no
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15019 echo "${ECHO_T}$ac_header_compiler" >&6; }
15021 # Is the header present?
15022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 #include <$ac_header>
15032 if { (ac_try="$ac_cpp conftest.$ac_ext"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } >/dev/null; then
15045 if test -s conftest.err; then
15046 ac_cpp_err=$ac_cxx_preproc_warn_flag
15047 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15054 if test -z "$ac_cpp_err"; then
15055 ac_header_preproc=yes
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ac_header_preproc=no
15063 rm -f conftest.err conftest.$ac_ext
15064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15065 echo "${ECHO_T}$ac_header_preproc" >&6; }
15067 # So? What about this header?
15068 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15074 ac_header_preproc=yes
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15090 ## ------------------------------------ ##
15091 ## Report this to http://llvm.org/bugs/ ##
15092 ## ------------------------------------ ##
15094 ) | sed "s/^/$as_me: WARNING: /" >&2
15097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 eval "$as_ac_Header=\$ac_header_preproc"
15104 ac_res=`eval echo '${'$as_ac_Header'}'`
15105 { echo "$as_me:$LINENO: result: $ac_res" >&5
15106 echo "${ECHO_T}$ac_res" >&6; }
15109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15110 cat >>confdefs.h <<_ACEOF
15111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15129 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 ac_res=`eval echo '${'$as_ac_Header'}'`
15139 { echo "$as_me:$LINENO: result: $ac_res" >&5
15140 echo "${ECHO_T}$ac_res" >&6; }
15142 # Is the header compilable?
15143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 $ac_includes_default
15152 #include <$ac_header>
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_header_compiler=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_header_compiler=no
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6; }
15200 # Is the header present?
15201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <$ac_header>
15211 if { (ac_try="$ac_cpp conftest.$ac_ext"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev/null; then
15224 if test -s conftest.err; then
15225 ac_cpp_err=$ac_c_preproc_warn_flag
15226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15233 if test -z "$ac_cpp_err"; then
15234 ac_header_preproc=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_header_preproc=no
15242 rm -f conftest.err conftest.$ac_ext
15243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15244 echo "${ECHO_T}$ac_header_preproc" >&6; }
15246 # So? What about this header?
15247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15253 ac_header_preproc=yes
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15269 ## ------------------------------------ ##
15270 ## Report this to http://llvm.org/bugs/ ##
15271 ## ------------------------------------ ##
15273 ) | sed "s/^/$as_me: WARNING: /" >&2
15276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 eval "$as_ac_Header=\$ac_header_preproc"
15283 ac_res=`eval echo '${'$as_ac_Header'}'`
15284 { echo "$as_me:$LINENO: result: $ac_res" >&5
15285 echo "${ECHO_T}$ac_res" >&6; }
15288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15289 cat >>confdefs.h <<_ACEOF
15290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15303 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 ac_res=`eval echo '${'$as_ac_Header'}'`
15313 { echo "$as_me:$LINENO: result: $ac_res" >&5
15314 echo "${ECHO_T}$ac_res" >&6; }
15316 # Is the header compilable?
15317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15326 #include <$ac_header>
15328 rm -f conftest.$ac_objext
15329 if { (ac_try="$ac_compile"
15330 case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15337 grep -v '^ *+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_try") 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_header_compiler=yes
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_header_compiler=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15372 echo "${ECHO_T}$ac_header_compiler" >&6; }
15374 # Is the header present?
15375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #include <$ac_header>
15385 if { (ac_try="$ac_cpp conftest.$ac_ext"
15386 case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15393 grep -v '^ *+' conftest.er1 >conftest.err
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } >/dev/null; then
15398 if test -s conftest.err; then
15399 ac_cpp_err=$ac_c_preproc_warn_flag
15400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15407 if test -z "$ac_cpp_err"; then
15408 ac_header_preproc=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_header_preproc=no
15416 rm -f conftest.err conftest.$ac_ext
15417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15418 echo "${ECHO_T}$ac_header_preproc" >&6; }
15420 # So? What about this header?
15421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15427 ac_header_preproc=yes
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15443 ## ------------------------------------ ##
15444 ## Report this to http://llvm.org/bugs/ ##
15445 ## ------------------------------------ ##
15447 ) | sed "s/^/$as_me: WARNING: /" >&2
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 eval "$as_ac_Header=\$ac_header_preproc"
15457 ac_res=`eval echo '${'$as_ac_Header'}'`
15458 { echo "$as_me:$LINENO: result: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 for ac_header in utime.h
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15485 # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 $ac_includes_default
15495 #include <$ac_header>
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_header_compiler=no
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 #include <$ac_header>
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ## ------------------------------------ ##
15613 ## Report this to http://llvm.org/bugs/ ##
15614 ## ------------------------------------ ##
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 eval "$as_ac_Header=\$ac_header_preproc"
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
15655 { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15658 # Is the header compilable?
15659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 $ac_includes_default
15668 #include <$ac_header>
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_compile") 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_header_compiler=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_compiler=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 #include <$ac_header>
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null; then
15740 if test -s conftest.err; then
15741 ac_cpp_err=$ac_c_preproc_warn_flag
15742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15749 if test -z "$ac_cpp_err"; then
15750 ac_header_preproc=yes
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_preproc=no
15758 rm -f conftest.err conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 echo "${ECHO_T}$ac_header_preproc" >&6; }
15762 # So? What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15785 ## ------------------------------------ ##
15786 ## Report this to http://llvm.org/bugs/ ##
15787 ## ------------------------------------ ##
15789 ) | sed "s/^/$as_me: WARNING: /" >&2
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 eval "$as_ac_Header=\$ac_header_preproc"
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 ac_res=`eval echo '${'$as_ac_Header'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827 echo "${ECHO_T}$ac_res" >&6; }
15829 # Is the header compilable?
15830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15832 cat >conftest.$ac_ext <<_ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 $ac_includes_default
15839 #include <$ac_header>
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_compile") 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_header_compiler=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_compiler=no
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885 echo "${ECHO_T}$ac_header_compiler" >&6; }
15887 # Is the header present?
15888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <$ac_header>
15898 if { (ac_try="$ac_cpp conftest.$ac_ext"
15899 case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15906 grep -v '^ *+' conftest.er1 >conftest.err
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } >/dev/null; then
15911 if test -s conftest.err; then
15912 ac_cpp_err=$ac_c_preproc_warn_flag
15913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15920 if test -z "$ac_cpp_err"; then
15921 ac_header_preproc=yes
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_header_preproc=no
15929 rm -f conftest.err conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15931 echo "${ECHO_T}$ac_header_preproc" >&6; }
15933 # So? What about this header?
15934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15940 ac_header_preproc=yes
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15956 ## ------------------------------------ ##
15957 ## Report this to http://llvm.org/bugs/ ##
15958 ## ------------------------------------ ##
15960 ) | sed "s/^/$as_me: WARNING: /" >&2
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 eval "$as_ac_Header=\$ac_header_preproc"
15970 ac_res=`eval echo '${'$as_ac_Header'}'`
15971 { echo "$as_me:$LINENO: result: $ac_res" >&5
15972 echo "${ECHO_T}$ac_res" >&6; }
15975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15976 cat >>confdefs.h <<_ACEOF
15977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15985 for ac_header in valgrind/valgrind.h
15987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15998 # Is the header compilable?
15999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 $ac_includes_default
16008 #include <$ac_header>
16010 rm -f conftest.$ac_objext
16011 if { (ac_try="$ac_compile"
16012 case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_compile") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16025 { (case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_try") 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_try") 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_header_compiler=yes
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 ac_header_compiler=no
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16054 echo "${ECHO_T}$ac_header_compiler" >&6; }
16056 # Is the header present?
16057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <$ac_header>
16067 if { (ac_try="$ac_cpp conftest.$ac_ext"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } >/dev/null; then
16080 if test -s conftest.err; then
16081 ac_cpp_err=$ac_c_preproc_warn_flag
16082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16089 if test -z "$ac_cpp_err"; then
16090 ac_header_preproc=yes
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ac_header_preproc=no
16098 rm -f conftest.err conftest.$ac_ext
16099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16100 echo "${ECHO_T}$ac_header_preproc" >&6; }
16102 # So? What about this header?
16103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16109 ac_header_preproc=yes
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16125 ## ------------------------------------ ##
16126 ## Report this to http://llvm.org/bugs/ ##
16127 ## ------------------------------------ ##
16129 ) | sed "s/^/$as_me: WARNING: /" >&2
16132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 eval "$as_ac_Header=\$ac_header_preproc"
16139 ac_res=`eval echo '${'$as_ac_Header'}'`
16140 { echo "$as_me:$LINENO: result: $ac_res" >&5
16141 echo "${ECHO_T}$ac_res" >&6; }
16144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154 for ac_header in fenv.h
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16167 # Is the header compilable?
16168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 $ac_includes_default
16177 #include <$ac_header>
16179 rm -f conftest.$ac_objext
16180 if { (ac_try="$ac_compile"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_compile") 2>conftest.er1
16188 grep -v '^ *+' conftest.er1 >conftest.err
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_header_compiler=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_header_compiler=no
16221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6; }
16225 # Is the header present?
16226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16236 if { (ac_try="$ac_cpp conftest.$ac_ext"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } >/dev/null; then
16249 if test -s conftest.err; then
16250 ac_cpp_err=$ac_c_preproc_warn_flag
16251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258 if test -z "$ac_cpp_err"; then
16259 ac_header_preproc=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_header_preproc=no
16267 rm -f conftest.err conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269 echo "${ECHO_T}$ac_header_preproc" >&6; }
16271 # So? What about this header?
16272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278 ac_header_preproc=yes
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294 ## ------------------------------------ ##
16295 ## Report this to http://llvm.org/bugs/ ##
16296 ## ------------------------------------ ##
16298 ) | sed "s/^/$as_me: WARNING: /" >&2
16301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 ac_res=`eval echo '${'$as_ac_Header'}'`
16309 { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 echo "${ECHO_T}$ac_res" >&6; }
16313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314 cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16322 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16323 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16324 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16338 #ifndef FE_ALL_EXCEPT
16339 char *p = (char *) FE_ALL_EXCEPT;
16347 rm -f conftest.$ac_objext
16348 if { (ac_try="$ac_compile"
16349 case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16356 grep -v '^ *+' conftest.er1 >conftest.err
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_have_decl_FE_ALL_EXCEPT=no
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16392 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16393 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define HAVE_DECL_FE_ALL_EXCEPT 1
16401 cat >>confdefs.h <<_ACEOF
16402 #define HAVE_DECL_FE_ALL_EXCEPT 0
16407 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16408 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16409 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16424 char *p = (char *) FE_INEXACT;
16432 rm -f conftest.$ac_objext
16433 if { (ac_try="$ac_compile"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_compile") 2>conftest.er1
16441 grep -v '^ *+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447 { (case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_try") 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest.$ac_objext'
16457 { (case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_try") 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_have_decl_FE_INEXACT=yes
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16471 ac_cv_have_decl_FE_INEXACT=no
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16477 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16478 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_DECL_FE_INEXACT 1
16486 cat >>confdefs.h <<_ACEOF
16487 #define HAVE_DECL_FE_INEXACT 0
16494 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16496 for ac_header in pthread.h
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16509 # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 #include <$ac_header>
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_header_compiler=no
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <$ac_header>
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16600 if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_preproc=no
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16613 # So? What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16636 ## ------------------------------------ ##
16637 ## Report this to http://llvm.org/bugs/ ##
16638 ## ------------------------------------ ##
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 eval "$as_ac_Header=\$ac_header_preproc"
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16672 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16674 for ac_header in zlib.h
16676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 ac_res=`eval echo '${'$as_ac_Header'}'`
16684 { echo "$as_me:$LINENO: result: $ac_res" >&5
16685 echo "${ECHO_T}$ac_res" >&6; }
16687 # Is the header compilable?
16688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 $ac_includes_default
16697 #include <$ac_header>
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest.$ac_objext'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_header_compiler=yes
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_header_compiler=no
16741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16743 echo "${ECHO_T}$ac_header_compiler" >&6; }
16745 # Is the header present?
16746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <$ac_header>
16756 if { (ac_try="$ac_cpp conftest.$ac_ext"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } >/dev/null; then
16769 if test -s conftest.err; then
16770 ac_cpp_err=$ac_c_preproc_warn_flag
16771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16778 if test -z "$ac_cpp_err"; then
16779 ac_header_preproc=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16814 ## ------------------------------------ ##
16815 ## Report this to http://llvm.org/bugs/ ##
16816 ## ------------------------------------ ##
16818 ) | sed "s/^/$as_me: WARNING: /" >&2
16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 eval "$as_ac_Header=\$ac_header_preproc"
16828 ac_res=`eval echo '${'$as_ac_Header'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16834 cat >>confdefs.h <<_ACEOF
16835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16851 if test "$llvm_cv_enable_libffi" = "yes" ; then
16854 for ac_header in ffi.h ffi/ffi.h
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16877 #include <$ac_header>
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_header_compiler=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <$ac_header>
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16994 ## ------------------------------------ ##
16995 ## Report this to http://llvm.org/bugs/ ##
16996 ## ------------------------------------ ##
16998 ) | sed "s/^/$as_me: WARNING: /" >&2
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 eval "$as_ac_Header=\$ac_header_preproc"
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17025 for ac_header in CrashReporterClient.h
17027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 ac_res=`eval echo '${'$as_ac_Header'}'`
17035 { echo "$as_me:$LINENO: result: $ac_res" >&5
17036 echo "${ECHO_T}$ac_res" >&6; }
17038 # Is the header compilable?
17039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17048 #include <$ac_header>
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17059 grep -v '^ *+' conftest.er1 >conftest.err
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
17075 { (case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_try") 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_header_compiler=yes
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 ac_header_compiler=no
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094 echo "${ECHO_T}$ac_header_compiler" >&6; }
17096 # Is the header present?
17097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 #include <$ac_header>
17107 if { (ac_try="$ac_cpp conftest.$ac_ext"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_c_preproc_warn_flag
17122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17129 if test -z "$ac_cpp_err"; then
17130 ac_header_preproc=yes
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_header_preproc=no
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc=yes
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17165 ## ------------------------------------ ##
17166 ## Report this to http://llvm.org/bugs/ ##
17167 ## ------------------------------------ ##
17169 ) | sed "s/^/$as_me: WARNING: /" >&2
17172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 eval "$as_ac_Header=\$ac_header_preproc"
17179 ac_res=`eval echo '${'$as_ac_Header'}'`
17180 { echo "$as_me:$LINENO: result: $ac_res" >&5
17181 echo "${ECHO_T}$ac_res" >&6; }
17184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17194 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17195 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17196 cat >conftest.$ac_ext <<_ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17204 extern const char *__crashreporter_info__;
17206 __crashreporter_info__ = "test";
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
17221 grep -v '^ *+' conftest.er1 >conftest.err
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17247 { echo "$as_me:$LINENO: result: yes" >&5
17248 echo "${ECHO_T}yes" >&6; }
17250 cat >>confdefs.h <<\_ACEOF
17251 #define HAVE_CRASHREPORTER_INFO 1
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17260 { echo "$as_me:$LINENO: result: no" >&5
17261 echo "${ECHO_T}no" >&6; }
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_CRASHREPORTER_INFO 0
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17275 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17276 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17277 if test "${ac_cv_huge_val_sanity+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287 ac_save_CXXFLAGS=$CXXFLAGS
17288 CXXFLAGS="$CXXFLAGS -pedantic"
17289 if test "$cross_compiling" = yes; then
17290 ac_cv_huge_val_sanity=yes
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17302 double x = HUGE_VAL; return x != x;
17307 rm -f conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_huge_val_sanity=yes
17329 echo "$as_me: program exited with status $ac_status" >&5
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ( exit $ac_status )
17334 ac_cv_huge_val_sanity=no
17336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17340 CXXFLAGS=$ac_save_CXXFLAGS
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17349 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17350 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17351 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17354 { echo "$as_me:$LINENO: checking for pid_t" >&5
17355 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17356 if test "${ac_cv_type_pid_t+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 typedef pid_t ac__type_new_;
17370 if ((ac__type_new_ *) 0)
17372 if (sizeof (ac__type_new_))
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_type_pid_t=yes
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_type_pid_t=no
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17423 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17424 if test $ac_cv_type_pid_t = yes; then
17428 cat >>confdefs.h <<_ACEOF
17434 { echo "$as_me:$LINENO: checking for size_t" >&5
17435 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17436 if test "${ac_cv_type_size_t+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17446 typedef size_t ac__type_new_;
17450 if ((ac__type_new_ *) 0)
17452 if (sizeof (ac__type_new_))
17458 rm -f conftest.$ac_objext
17459 if { (ac_try="$ac_compile"
17460 case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_compile") 2>conftest.er1
17467 grep -v '^ *+' conftest.er1 >conftest.err
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_type_size_t=yes
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_cv_type_size_t=no
17500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17503 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17504 if test $ac_cv_type_size_t = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define size_t unsigned int
17515 cat >>confdefs.h <<_ACEOF
17516 #define RETSIGTYPE void
17519 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17520 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17521 if test "${ac_cv_struct_tm+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 #include <sys/types.h>
17536 struct tm *tp; tp->tm_sec;
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_cv_struct_tm=time.h
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_cv_struct_tm=sys/time.h
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17586 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17587 if test $ac_cv_struct_tm = sys/time.h; then
17589 cat >>confdefs.h <<\_ACEOF
17590 #define TM_IN_SYS_TIME 1
17595 { echo "$as_me:$LINENO: checking for int64_t" >&5
17596 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17597 if test "${ac_cv_type_int64_t+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 $ac_includes_default
17607 typedef int64_t ac__type_new_;
17611 if ((ac__type_new_ *) 0)
17613 if (sizeof (ac__type_new_))
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_type_int64_t=yes
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_cv_type_int64_t=no
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17664 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17665 if test $ac_cv_type_int64_t = yes; then
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_INT64_T 1
17673 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17674 echo "$as_me: error: Type int64_t required but not found" >&2;}
17675 { (exit 1); exit 1; }; }
17678 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17679 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17680 if test "${ac_cv_type_uint64_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 typedef uint64_t ac__type_new_;
17694 if ((ac__type_new_ *) 0)
17696 if (sizeof (ac__type_new_))
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_type_uint64_t=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_type_uint64_t=no
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17747 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17748 if test $ac_cv_type_uint64_t = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_UINT64_T 1
17756 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17757 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17758 if test "${ac_cv_type_u_int64_t+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 $ac_includes_default
17768 typedef u_int64_t ac__type_new_;
17772 if ((ac__type_new_ *) 0)
17774 if (sizeof (ac__type_new_))
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_type_u_int64_t=yes
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 ac_cv_type_u_int64_t=no
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17825 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17826 if test $ac_cv_type_u_int64_t = yes; then
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_U_INT64_T 1
17834 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17835 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17836 { (exit 1); exit 1; }; }
17850 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17866 #define $ac_func innocuous_$ac_func
17868 /* System header to define __stub macros and hopefully few prototypes,
17869 which can conflict with char $ac_func (); below.
17870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17871 <limits.h> exists even on freestanding compilers. */
17874 # include <limits.h>
17876 # include <assert.h>
17881 /* Override any GCC internal prototype to avoid an error.
17882 Use char because int might match the return type of a GCC
17883 builtin and then its argument prototype would still apply. */
17888 /* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891 #if defined __stub_$ac_func || defined __stub___$ac_func
17898 return $ac_func ();
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (ac_try="$ac_link"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_link") 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest$ac_exeext'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 eval "$as_ac_var=yes"
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 eval "$as_ac_var=no"
17945 rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17948 ac_res=`eval echo '${'$as_ac_var'}'`
17949 { echo "$as_me:$LINENO: result: $ac_res" >&5
17950 echo "${ECHO_T}$ac_res" >&6; }
17951 if test `eval echo '${'$as_ac_var'}'` = yes; then
17952 cat >>confdefs.h <<_ACEOF
17953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17963 for ac_func in powf fmodf strtof round
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17987 # include <limits.h>
17989 # include <assert.h>
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18011 return $ac_func ();
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 eval "$as_ac_var=yes"
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 eval "$as_ac_var=no"
18058 rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18061 ac_res=`eval echo '${'$as_ac_var'}'`
18062 { echo "$as_me:$LINENO: result: $ac_res" >&5
18063 echo "${ECHO_T}$ac_res" >&6; }
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18077 for ac_func in log log2 log10 exp exp2
18079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 cat >conftest.$ac_ext <<_ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h. */
18091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18093 #define $ac_func innocuous_$ac_func
18095 /* System header to define __stub macros and hopefully few prototypes,
18096 which can conflict with char $ac_func (); below.
18097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18098 <limits.h> exists even on freestanding compilers. */
18101 # include <limits.h>
18103 # include <assert.h>
18108 /* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18115 /* The GNU C library defines this for functions which it implements
18116 to always fail with ENOSYS. Some functions are actually named
18117 something starting with __ and the normal name is an alias. */
18118 #if defined __stub_$ac_func || defined __stub___$ac_func
18125 return $ac_func ();
18130 rm -f conftest.$ac_objext conftest$ac_exeext
18131 if { (ac_try="$ac_link"
18132 case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_link") 2>conftest.er1
18139 grep -v '^ *+' conftest.er1 >conftest.err
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18145 { (case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_try") 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest$ac_exeext'
18155 { (case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_try") 2>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 eval "$as_ac_var=yes"
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 eval "$as_ac_var=no"
18172 rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18175 ac_res=`eval echo '${'$as_ac_var'}'`
18176 { echo "$as_me:$LINENO: result: $ac_res" >&5
18177 echo "${ECHO_T}$ac_res" >&6; }
18178 if test `eval echo '${'$as_ac_var'}'` = yes; then
18179 cat >>confdefs.h <<_ACEOF
18180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18191 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18207 #define $ac_func innocuous_$ac_func
18209 /* System header to define __stub macros and hopefully few prototypes,
18210 which can conflict with char $ac_func (); below.
18211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212 <limits.h> exists even on freestanding compilers. */
18215 # include <limits.h>
18217 # include <assert.h>
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18229 /* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232 #if defined __stub_$ac_func || defined __stub___$ac_func
18239 return $ac_func ();
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18253 grep -v '^ *+' conftest.er1 >conftest.err
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 eval "$as_ac_var=yes"
18280 echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18283 eval "$as_ac_var=no"
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18289 ac_res=`eval echo '${'$as_ac_var'}'`
18290 { echo "$as_me:$LINENO: result: $ac_res" >&5
18291 echo "${ECHO_T}$ac_res" >&6; }
18292 if test `eval echo '${'$as_ac_var'}'` = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18303 for ac_func in isatty mkdtemp mkstemp
18305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18319 #define $ac_func innocuous_$ac_func
18321 /* System header to define __stub macros and hopefully few prototypes,
18322 which can conflict with char $ac_func (); below.
18323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 <limits.h> exists even on freestanding compilers. */
18327 # include <limits.h>
18329 # include <assert.h>
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined __stub_$ac_func || defined __stub___$ac_func
18351 return $ac_func ();
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_link") 2>conftest.er1
18365 grep -v '^ *+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest$ac_exeext'
18381 { (case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_try") 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 eval "$as_ac_var=yes"
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 eval "$as_ac_var=no"
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18401 ac_res=`eval echo '${'$as_ac_var'}'`
18402 { echo "$as_me:$LINENO: result: $ac_res" >&5
18403 echo "${ECHO_T}$ac_res" >&6; }
18404 if test `eval echo '${'$as_ac_var'}'` = yes; then
18405 cat >>confdefs.h <<_ACEOF
18406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18418 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434 #define $ac_func innocuous_$ac_func
18436 /* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char $ac_func (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18442 # include <limits.h>
18444 # include <assert.h>
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined __stub_$ac_func || defined __stub___$ac_func
18466 return $ac_func ();
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_link") 2>conftest.er1
18480 grep -v '^ *+' conftest.er1 >conftest.err
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_try") 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest$ac_exeext'
18496 { (case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_try") 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 eval "$as_ac_var=yes"
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 eval "$as_ac_var=no"
18513 rm -f core conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18516 ac_res=`eval echo '${'$as_ac_var'}'`
18517 { echo "$as_me:$LINENO: result: $ac_res" >&5
18518 echo "${ECHO_T}$ac_res" >&6; }
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18530 for ac_func in strerror strerror_r setenv
18532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18546 #define $ac_func innocuous_$ac_func
18548 /* System header to define __stub macros and hopefully few prototypes,
18549 which can conflict with char $ac_func (); below.
18550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18551 <limits.h> exists even on freestanding compilers. */
18554 # include <limits.h>
18556 # include <assert.h>
18561 /* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18568 /* The GNU C library defines this for functions which it implements
18569 to always fail with ENOSYS. Some functions are actually named
18570 something starting with __ and the normal name is an alias. */
18571 #if defined __stub_$ac_func || defined __stub___$ac_func
18578 return $ac_func ();
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 eval "$as_ac_var=yes"
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 eval "$as_ac_var=no"
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18628 ac_res=`eval echo '${'$as_ac_var'}'`
18629 { echo "$as_me:$LINENO: result: $ac_res" >&5
18630 echo "${ECHO_T}$ac_res" >&6; }
18631 if test `eval echo '${'$as_ac_var'}'` = yes; then
18632 cat >>confdefs.h <<_ACEOF
18633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18643 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18659 #define $ac_func innocuous_$ac_func
18661 /* System header to define __stub macros and hopefully few prototypes,
18662 which can conflict with char $ac_func (); below.
18663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18664 <limits.h> exists even on freestanding compilers. */
18667 # include <limits.h>
18669 # include <assert.h>
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18681 /* The GNU C library defines this for functions which it implements
18682 to always fail with ENOSYS. Some functions are actually named
18683 something starting with __ and the normal name is an alias. */
18684 #if defined __stub_$ac_func || defined __stub___$ac_func
18691 return $ac_func ();
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_link") 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest$ac_exeext'
18721 { (case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_try") 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 eval "$as_ac_var=yes"
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 eval "$as_ac_var=no"
18738 rm -f core conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
18741 ac_res=`eval echo '${'$as_ac_var'}'`
18742 { echo "$as_me:$LINENO: result: $ac_res" >&5
18743 echo "${ECHO_T}$ac_res" >&6; }
18744 if test `eval echo '${'$as_ac_var'}'` = yes; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18781 # include <limits.h>
18783 # include <assert.h>
18788 /* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18795 /* The GNU C library defines this for functions which it implements
18796 to always fail with ENOSYS. Some functions are actually named
18797 something starting with __ and the normal name is an alias. */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18805 return $ac_func ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18819 grep -v '^ *+' conftest.er1 >conftest.err
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 eval "$as_ac_var=yes"
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 eval "$as_ac_var=no"
18852 rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18855 ac_res=`eval echo '${'$as_ac_var'}'`
18856 { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18858 if test `eval echo '${'$as_ac_var'}'` = yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18868 for ac_func in futimes futimens
18870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18884 #define $ac_func innocuous_$ac_func
18886 /* System header to define __stub macros and hopefully few prototypes,
18887 which can conflict with char $ac_func (); below.
18888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18889 <limits.h> exists even on freestanding compilers. */
18892 # include <limits.h>
18894 # include <assert.h>
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18906 /* The GNU C library defines this for functions which it implements
18907 to always fail with ENOSYS. Some functions are actually named
18908 something starting with __ and the normal name is an alias. */
18909 #if defined __stub_$ac_func || defined __stub___$ac_func
18916 return $ac_func ();
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (ac_try="$ac_link"
18923 case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_link") 2>conftest.er1
18930 grep -v '^ *+' conftest.er1 >conftest.err
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 eval "$as_ac_var=yes"
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 eval "$as_ac_var=no"
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18966 ac_res=`eval echo '${'$as_ac_var'}'`
18967 { echo "$as_me:$LINENO: result: $ac_res" >&5
18968 echo "${ECHO_T}$ac_res" >&6; }
18969 if test `eval echo '${'$as_ac_var'}'` = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18977 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18978 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18979 if test "${llvm_cv_c_printf_a+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 ac_cpp='$CPP $CPPFLAGS'
18984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18988 if test "$cross_compiling" = yes; then
18989 llvmac_cv_c_printf_a=no
18991 cat >conftest.$ac_ext <<_ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
19000 #include <stdlib.h>
19006 volatile double A, B;
19010 sprintf(Buffer, "%a", A);
19014 if (A != 0x1.999999999999ap-4)
19021 rm -f conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_link") 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19032 { (case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_try") 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 llvm_cv_c_printf_a=yes
19043 echo "$as_me: program exited with status $ac_status" >&5
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ( exit $ac_status )
19048 llvmac_cv_c_printf_a=no
19050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19062 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19063 if test "$llvm_cv_c_printf_a" = "yes"; then
19065 cat >>confdefs.h <<\_ACEOF
19066 #define HAVE_PRINTF_A 1
19073 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19074 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19075 if test "${ac_cv_func_rand48+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 ac_cpp='$CXXCPP $CPPFLAGS'
19081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <stdlib.h>
19095 srand48(0);lrand48();drand48();
19100 rm -f conftest.$ac_objext
19101 if { (ac_try="$ac_compile"
19102 case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_compile") 2>conftest.er1
19109 grep -v '^ *+' conftest.er1 >conftest.err
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19115 { (case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_try") 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
19125 { (case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_try") 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 ac_cv_func_rand48=yes
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_func_rand48=no
19142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19144 ac_cpp='$CPP $CPPFLAGS'
19145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19152 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19154 if test "$ac_cv_func_rand48" = "yes" ; then
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE_RAND48 1
19163 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19164 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19165 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19174 $ac_includes_default
19179 char *p = (char *) arc4random;
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_compile") 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19202 { (case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_try") 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_try") 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_have_decl_arc4random=yes
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_cv_have_decl_arc4random=no
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19232 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19233 if test $ac_cv_have_decl_arc4random = yes; then
19235 cat >>confdefs.h <<_ACEOF
19236 #define HAVE_DECL_ARC4RANDOM 1
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_DECL_ARC4RANDOM 0
19250 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19251 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19252 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 $ac_includes_default
19266 char *p = (char *) strerror_s;
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_compile") 2>conftest.er1
19283 grep -v '^ *+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
19288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest.$ac_objext'
19299 { (case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_try") 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_have_decl_strerror_s=yes
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_cv_have_decl_strerror_s=no
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19319 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19320 if test $ac_cv_have_decl_strerror_s = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_STRERROR_S 1
19328 cat >>confdefs.h <<_ACEOF
19329 #define HAVE_DECL_STRERROR_S 0
19337 if test "$llvm_cv_os_type" = "MingW" ; then
19338 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19339 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19340 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_check_lib_save_LIBS=$LIBS
19345 cat >conftest.$ac_ext <<_ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19352 /* Override any GCC internal prototype to avoid an error.
19353 Use char because int might match the return type of a GCC
19354 builtin and then its argument prototype would still apply. */
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (ac_try="$ac_link"
19369 case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_link") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
19381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19382 { (case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_try") 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest$ac_exeext'
19392 { (case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_try") 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_lib_gcc__alloca=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 ac_cv_lib_gcc__alloca=no
19409 rm -f core conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS
19413 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19414 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19415 if test $ac_cv_lib_gcc__alloca = yes; then
19417 cat >>confdefs.h <<\_ACEOF
19418 #define HAVE__ALLOCA 1
19423 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19424 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19425 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19428 ac_check_lib_save_LIBS=$LIBS
19430 cat >conftest.$ac_ext <<_ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19437 /* Override any GCC internal prototype to avoid an error.
19438 Use char because int might match the return type of a GCC
19439 builtin and then its argument prototype would still apply. */
19447 return __alloca ();
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_link") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_try") 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_cv_lib_gcc___alloca=yes
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 ac_cv_lib_gcc___alloca=no
19494 rm -f core conftest.err conftest.$ac_objext \
19495 conftest$ac_exeext conftest.$ac_ext
19496 LIBS=$ac_check_lib_save_LIBS
19498 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19499 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19500 if test $ac_cv_lib_gcc___alloca = yes; then
19502 cat >>confdefs.h <<\_ACEOF
19503 #define HAVE___ALLOCA 1
19508 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19509 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_check_lib_save_LIBS=$LIBS
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19532 return __chkstk ();
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest$ac_exeext'
19562 { (case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_try") 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_gcc___chkstk=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_gcc___chkstk=no
19579 rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19584 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19585 if test $ac_cv_lib_gcc___chkstk = yes; then
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE___CHKSTK 1
19593 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19594 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19595 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 ac_check_lib_save_LIBS=$LIBS
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19617 return ___chkstk ();
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest$ac_exeext'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_lib_gcc____chkstk=yes
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_lib_gcc____chkstk=no
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19669 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19670 if test $ac_cv_lib_gcc____chkstk = yes; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE____CHKSTK 1
19679 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19680 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19681 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 ac_check_lib_save_LIBS=$LIBS
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19703 return __ashldi3 ();
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest$ac_exeext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_lib_gcc___ashldi3=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_lib_gcc___ashldi3=no
19750 rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19754 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19755 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19756 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE___ASHLDI3 1
19764 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19765 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19766 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 ac_check_lib_save_LIBS=$LIBS
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19778 /* Override any GCC internal prototype to avoid an error.
19779 Use char because int might match the return type of a GCC
19780 builtin and then its argument prototype would still apply. */
19788 return __ashrdi3 ();
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_link") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest$ac_exeext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_lib_gcc___ashrdi3=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_lib_gcc___ashrdi3=no
19835 rm -f core conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_check_lib_save_LIBS
19839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19840 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19841 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE___ASHRDI3 1
19849 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19850 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19851 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 ac_check_lib_save_LIBS=$LIBS
19856 cat >conftest.$ac_ext <<_ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19863 /* Override any GCC internal prototype to avoid an error.
19864 Use char because int might match the return type of a GCC
19865 builtin and then its argument prototype would still apply. */
19873 return __divdi3 ();
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_link") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest$ac_exeext'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_lib_gcc___divdi3=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_lib_gcc___divdi3=no
19920 rm -f core conftest.err conftest.$ac_objext \
19921 conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19925 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19926 if test $ac_cv_lib_gcc___divdi3 = yes; then
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE___DIVDI3 1
19934 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19935 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19936 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_check_lib_save_LIBS=$LIBS
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19958 return __fixdfdi ();
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest$ac_exeext'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_lib_gcc___fixdfdi=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_lib_gcc___fixdfdi=no
20005 rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20009 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20010 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20011 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE___FIXDFDI 1
20019 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20020 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20021 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 ac_check_lib_save_LIBS=$LIBS
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20043 return __fixsfdi ();
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063 { (case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_try") 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest$ac_exeext'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_lib_gcc___fixsfdi=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_cv_lib_gcc___fixsfdi=no
20090 rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
20092 LIBS=$ac_check_lib_save_LIBS
20094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20095 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20096 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20098 cat >>confdefs.h <<\_ACEOF
20099 #define HAVE___FIXSFDI 1
20104 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20105 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20106 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 ac_check_lib_save_LIBS=$LIBS
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20124 char __floatdidf ();
20128 return __floatdidf ();
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20142 grep -v '^ *+' conftest.er1 >conftest.err
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_lib_gcc___floatdidf=yes
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_cv_lib_gcc___floatdidf=no
20175 rm -f core conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20179 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20180 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20181 if test $ac_cv_lib_gcc___floatdidf = yes; then
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE___FLOATDIDF 1
20189 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20190 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20191 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 ac_check_lib_save_LIBS=$LIBS
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 /* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20213 return __lshrdi3 ();
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_link") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
20232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20233 { (case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_try") 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest$ac_exeext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_lib_gcc___lshrdi3=yes
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_lib_gcc___lshrdi3=no
20260 rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20264 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20265 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20266 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20268 cat >>confdefs.h <<\_ACEOF
20269 #define HAVE___LSHRDI3 1
20274 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20275 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20276 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 ac_check_lib_save_LIBS=$LIBS
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20288 /* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20298 return __moddi3 ();
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest$ac_exeext'
20328 { (case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_try") 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 ac_cv_lib_gcc___moddi3=yes
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ac_cv_lib_gcc___moddi3=no
20345 rm -f core conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20347 LIBS=$ac_check_lib_save_LIBS
20349 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20350 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20351 if test $ac_cv_lib_gcc___moddi3 = yes; then
20353 cat >>confdefs.h <<\_ACEOF
20354 #define HAVE___MODDI3 1
20359 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20360 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20361 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 ac_check_lib_save_LIBS=$LIBS
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20383 return __udivdi3 ();
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } &&
20412 { ac_try='test -s conftest$ac_exeext'
20413 { (case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_try") 2>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_lib_gcc___udivdi3=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_lib_gcc___udivdi3=no
20430 rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20435 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20436 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE___UDIVDI3 1
20444 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20445 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_check_lib_save_LIBS=$LIBS
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20468 return __umoddi3 ();
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_lib_gcc___umoddi3=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_lib_gcc___umoddi3=no
20515 rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20520 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20521 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE___UMODDI3 1
20530 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20531 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_gcc___main+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 ac_check_lib_save_LIBS=$LIBS
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; } &&
20583 { ac_try='test -s conftest$ac_exeext'
20584 { (case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_try") 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 ac_cv_lib_gcc___main=yes
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 ac_cv_lib_gcc___main=no
20601 rm -f core conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20606 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20607 if test $ac_cv_lib_gcc___main = yes; then
20609 cat >>confdefs.h <<\_ACEOF
20610 #define HAVE___MAIN 1
20615 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20616 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20617 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_check_lib_save_LIBS=$LIBS
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 /* Override any GCC internal prototype to avoid an error.
20630 Use char because int might match the return type of a GCC
20631 builtin and then its argument prototype would still apply. */
20639 return __cmpdi2 ();
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_link") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest$ac_exeext'
20669 { (case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_try") 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ac_cv_lib_gcc___cmpdi2=yes
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ac_cv_lib_gcc___cmpdi2=no
20686 rm -f core conftest.err conftest.$ac_objext \
20687 conftest$ac_exeext conftest.$ac_ext
20688 LIBS=$ac_check_lib_save_LIBS
20690 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20691 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20692 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE___CMPDI2 1
20702 if test "$llvm_cv_os_type" = "MingW" ; then
20703 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20704 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20713 #include <windows.h>
20714 #include <imagehlp.h>
20715 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20716 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_compile") 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20735 { (case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_try") 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest.$ac_objext'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20755 { echo "$as_me:$LINENO: result: yes" >&5
20756 echo "${ECHO_T}yes" >&6; }
20757 llvm_cv_win32_elmcb_pcstr="PCSTR"
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20764 { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766 llvm_cv_win32_elmcb_pcstr="PSTR"
20770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 cat >>confdefs.h <<_ACEOF
20773 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20780 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20781 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20782 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 ac_cpp='$CXXCPP $CPPFLAGS'
20788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20822 { (case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_try") 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest.$ac_objext'
20832 { (case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_try") 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_cv_func_isnan_in_math_h=yes
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_func_isnan_in_math_h=no
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 ac_cpp='$CPP $CPPFLAGS'
20852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20859 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20862 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_ISNAN_IN_MATH_H 1
20871 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20872 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 ac_cpp='$CXXCPP $CPPFLAGS'
20879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 ac_cv_func_isnan_in_cmath=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_cv_func_isnan_in_cmath=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20950 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20952 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_ISNAN_IN_CMATH 1
20961 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20962 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20963 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 ac_cpp='$CXXCPP $CPPFLAGS'
20969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20983 float f; std::isnan(f);
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21003 { (case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_try") 2>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_func_std_isnan_in_cmath=yes
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_func_std_isnan_in_cmath=no
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21040 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21042 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21044 cat >>confdefs.h <<\_ACEOF
21045 #define HAVE_STD_ISNAN_IN_CMATH 1
21053 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21054 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21055 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 ac_cpp='$CXXCPP $CPPFLAGS'
21061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21065 cat >conftest.$ac_ext <<_ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21089 grep -v '^ *+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21095 { (case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_try") 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest.$ac_objext'
21105 { (case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_cv_func_isinf_in_math_h=yes
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 ac_cv_func_isinf_in_math_h=no
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 ac_cpp='$CPP $CPPFLAGS'
21125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21131 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21132 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21134 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_ISINF_IN_MATH_H 1
21143 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21144 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21145 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_compile") 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21185 { (case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_try") 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try='test -s conftest.$ac_objext'
21195 { (case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_try") 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_func_isinf_in_cmath=yes
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 ac_cv_func_isinf_in_cmath=no
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21222 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21224 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21226 cat >>confdefs.h <<\_ACEOF
21227 #define HAVE_ISINF_IN_CMATH 1
21233 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21234 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21235 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21240 ac_cpp='$CXXCPP $CPPFLAGS'
21241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21255 float f; std::isinf(f);
21260 rm -f conftest.$ac_objext
21261 if { (ac_try="$ac_compile"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_compile") 2>conftest.er1
21269 grep -v '^ *+' conftest.er1 >conftest.err
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21275 { (case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_try") 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest.$ac_objext'
21285 { (case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_try") 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_func_std_isinf_in_cmath=yes
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_cv_func_std_isinf_in_cmath=no
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 ac_cpp='$CPP $CPPFLAGS'
21305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21312 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21314 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21316 cat >>confdefs.h <<\_ACEOF
21317 #define HAVE_STD_ISINF_IN_CMATH 1
21323 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21324 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21325 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 ac_cpp='$CXXCPP $CPPFLAGS'
21331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <ieeefp.h>
21345 float f; finite(f);
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21365 { (case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_try") 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_try") 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
21384 ac_cv_func_finite_in_ieeefp_h=yes
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_cv_func_finite_in_ieeefp_h=no
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 ac_cpp='$CPP $CPPFLAGS'
21395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21401 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21402 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21404 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_FINITE_IN_IEEEFP_H 1
21414 if test "$llvm_cv_platform_type" = "Unix" ; then
21417 for ac_header in stdlib.h unistd.h
21419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 ac_res=`eval echo '${'$as_ac_Header'}'`
21427 { echo "$as_me:$LINENO: result: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21430 # Is the header compilable?
21431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21433 cat >conftest.$ac_ext <<_ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 $ac_includes_default
21440 #include <$ac_header>
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_compile") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21457 { (case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_try") 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest.$ac_objext'
21467 { (case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_try") 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_header_compiler=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_header_compiler=no
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486 echo "${ECHO_T}$ac_header_compiler" >&6; }
21488 # Is the header present?
21489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <$ac_header>
21499 if { (ac_try="$ac_cpp conftest.$ac_ext"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } >/dev/null; then
21512 if test -s conftest.err; then
21513 ac_cpp_err=$ac_c_preproc_warn_flag
21514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21521 if test -z "$ac_cpp_err"; then
21522 ac_header_preproc=yes
21524 echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21527 ac_header_preproc=no
21530 rm -f conftest.err conftest.$ac_ext
21531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21532 echo "${ECHO_T}$ac_header_preproc" >&6; }
21534 # So? What about this header?
21535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21541 ac_header_preproc=yes
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21557 ## ------------------------------------ ##
21558 ## Report this to http://llvm.org/bugs/ ##
21559 ## ------------------------------------ ##
21561 ) | sed "s/^/$as_me: WARNING: /" >&2
21564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 eval "$as_ac_Header=\$ac_header_preproc"
21571 ac_res=`eval echo '${'$as_ac_Header'}'`
21572 { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21577 cat >>confdefs.h <<_ACEOF
21578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21586 for ac_func in getpagesize
21588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602 #define $ac_func innocuous_$ac_func
21604 /* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21610 # include <limits.h>
21612 # include <assert.h>
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21624 /* The GNU C library defines this for functions which it implements
21625 to always fail with ENOSYS. Some functions are actually named
21626 something starting with __ and the normal name is an alias. */
21627 #if defined __stub_$ac_func || defined __stub___$ac_func
21634 return $ac_func ();
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_link") 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21654 { (case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_try") 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest$ac_exeext'
21664 { (case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_try") 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 eval "$as_ac_var=yes"
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 eval "$as_ac_var=no"
21681 rm -f core conftest.err conftest.$ac_objext \
21682 conftest$ac_exeext conftest.$ac_ext
21684 ac_res=`eval echo '${'$as_ac_var'}'`
21685 { echo "$as_me:$LINENO: result: $ac_res" >&5
21686 echo "${ECHO_T}$ac_res" >&6; }
21687 if test `eval echo '${'$as_ac_var'}'` = yes; then
21688 cat >>confdefs.h <<_ACEOF
21689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21695 { echo "$as_me:$LINENO: checking for working mmap" >&5
21696 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21697 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 if test "$cross_compiling" = yes; then
21701 ac_cv_func_mmap_fixed_mapped=no
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 $ac_includes_default
21710 /* malloc might have been renamed as rpl_malloc. */
21713 /* Thanks to Mike Haertel and Jim Avera for this test.
21714 Here is a matrix of mmap possibilities:
21715 mmap private not fixed
21716 mmap private fixed at somewhere currently unmapped
21717 mmap private fixed at somewhere already mapped
21718 mmap shared not fixed
21719 mmap shared fixed at somewhere currently unmapped
21720 mmap shared fixed at somewhere already mapped
21721 For private mappings, we should verify that changes cannot be read()
21722 back from the file, nor mmap's back from the file at a different
21723 address. (There have been systems where private was not correctly
21724 implemented like the infamous i386 svr4.0, and systems where the
21725 VM page cache was not coherent with the file system buffer cache
21726 like early versions of FreeBSD and possibly contemporary NetBSD.)
21727 For shared mappings, we should conversely verify that changes get
21728 propagated back to all the places they're supposed to be.
21730 Grep wants private fixed already mapped.
21731 The main things grep needs to know about mmap are:
21732 * does it exist and is it safe to write into the mmap'd area
21733 * how to use it (BSD variants) */
21736 #include <sys/mman.h>
21738 #if !STDC_HEADERS && !HAVE_STDLIB_H
21742 /* This mess was copied from the GNU getpagesize.h. */
21743 #if !HAVE_GETPAGESIZE
21744 /* Assume that all systems that can run configure have sys/param.h. */
21745 # if !HAVE_SYS_PARAM_H
21746 # define HAVE_SYS_PARAM_H 1
21749 # ifdef _SC_PAGESIZE
21750 # define getpagesize() sysconf(_SC_PAGESIZE)
21751 # else /* no _SC_PAGESIZE */
21752 # if HAVE_SYS_PARAM_H
21753 # include <sys/param.h>
21754 # ifdef EXEC_PAGESIZE
21755 # define getpagesize() EXEC_PAGESIZE
21756 # else /* no EXEC_PAGESIZE */
21758 # define getpagesize() NBPG * CLSIZE
21761 # endif /* no CLSIZE */
21762 # else /* no NBPG */
21764 # define getpagesize() NBPC
21765 # else /* no NBPC */
21767 # define getpagesize() PAGESIZE
21768 # endif /* PAGESIZE */
21769 # endif /* no NBPC */
21770 # endif /* no NBPG */
21771 # endif /* no EXEC_PAGESIZE */
21772 # else /* no HAVE_SYS_PARAM_H */
21773 # define getpagesize() 8192 /* punt totally */
21774 # endif /* no HAVE_SYS_PARAM_H */
21775 # endif /* no _SC_PAGESIZE */
21777 #endif /* no HAVE_GETPAGESIZE */
21782 char *data, *data2, *data3;
21786 pagesize = getpagesize ();
21788 /* First, make a file with some known garbage in it. */
21789 data = (char *) malloc (pagesize);
21792 for (i = 0; i < pagesize; ++i)
21793 *(data + i) = rand ();
21795 fd = creat ("conftest.mmap", 0600);
21798 if (write (fd, data, pagesize) != pagesize)
21802 /* Next, try to mmap the file at a fixed address which already has
21803 something else allocated at it. If we can, also make sure that
21804 we see the same garbage. */
21805 fd = open ("conftest.mmap", O_RDWR);
21808 data2 = (char *) malloc (2 * pagesize);
21811 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21812 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21813 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21815 for (i = 0; i < pagesize; ++i)
21816 if (*(data + i) != *(data2 + i))
21819 /* Finally, make sure that changes to the mapped area do not
21820 percolate back to the file as seen by read(). (This is a bug on
21821 some variants of i386 svr4.0.) */
21822 for (i = 0; i < pagesize; ++i)
21823 *(data2 + i) = *(data2 + i) + 1;
21824 data3 = (char *) malloc (pagesize);
21827 if (read (fd, data3, pagesize) != pagesize)
21829 for (i = 0; i < pagesize; ++i)
21830 if (*(data + i) != *(data3 + i))
21836 rm -f conftest$ac_exeext
21837 if { (ac_try="$ac_link"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_link") 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21847 { (case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852 (eval "$ac_try") 2>&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
21856 ac_cv_func_mmap_fixed_mapped=yes
21858 echo "$as_me: program exited with status $ac_status" >&5
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ( exit $ac_status )
21863 ac_cv_func_mmap_fixed_mapped=no
21865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21871 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21872 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_MMAP 1
21879 rm -f conftest.mmap
21881 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21882 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21883 if test "${ac_cv_func_mmap_file+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21892 if test "$cross_compiling" = yes; then
21893 ac_cv_func_mmap_file=no
21895 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21903 #include <sys/types.h>
21904 #include <sys/mman.h>
21912 fd = creat ("foo",0777);
21913 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21915 return (fd != (int) MAP_FAILED);
21920 rm -f conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_link") 2>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21931 { (case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_try") 2>&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_func_mmap_file=yes
21942 echo "$as_me: program exited with status $ac_status" >&5
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ( exit $ac_status )
21947 ac_cv_func_mmap_file=no
21949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21954 ac_cpp='$CPP $CPPFLAGS'
21955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21962 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21963 if test "$ac_cv_func_mmap_file" = yes; then
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_MMAP_FILE
21973 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21974 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21975 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
21978 if test "$llvm_cv_os_type" = "Interix" ; then
21979 ac_cv_need_dev_zero_for_mmap=yes
21981 ac_cv_need_dev_zero_for_mmap=no
21985 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21986 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21987 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21989 cat >>confdefs.h <<\_ACEOF
21990 #define NEED_DEV_ZERO_FOR_MMAP 1
21995 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21997 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21998 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22000 if test "$ac_cv_func_mmap_file" = "no"
22002 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22003 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22007 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22008 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22010 ac_cpp='$CXXCPP $CPPFLAGS'
22011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22015 cat >conftest.$ac_ext <<_ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22024 volatile unsigned long val = 1;
22025 __sync_synchronize();
22026 __sync_val_compare_and_swap(&val, 1, 0);
22027 __sync_add_and_fetch(&val, 1);
22028 __sync_sub_and_fetch(&val, 1);
22034 rm -f conftest.$ac_objext conftest$ac_exeext
22035 if { (ac_try="$ac_link"
22036 case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_link") 2>conftest.er1
22043 grep -v '^ *+' conftest.er1 >conftest.err
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
22048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22049 { (case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_try") 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_try") 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22069 { echo "$as_me:$LINENO: result: yes" >&5
22070 echo "${ECHO_T}yes" >&6; }
22072 cat >>confdefs.h <<\_ACEOF
22073 #define LLVM_HAS_ATOMICS 1
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22082 { echo "$as_me:$LINENO: result: no" >&5
22083 echo "${ECHO_T}no" >&6; }
22085 cat >>confdefs.h <<\_ACEOF
22086 #define LLVM_HAS_ATOMICS 0
22089 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22090 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22094 rm -f core conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
22097 ac_cpp='$CPP $CPPFLAGS'
22098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22104 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22105 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22106 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22107 if test "${llvm_cv_linux_mixed+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 ac_cpp='$CPP $CPPFLAGS'
22112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22123 error: Not x86-64 even if uname says so!
22134 rm -f conftest.$ac_objext
22135 if { (ac_try="$ac_compile"
22136 case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_compile") 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest.$ac_objext'
22159 { (case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_try") 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
22168 llvm_cv_linux_mixed=no
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22173 llvm_cv_linux_mixed=yes
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 ac_cpp='$CPP $CPPFLAGS'
22179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22185 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22186 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22188 if test "$llvm_cv_linux_mixed" = "yes"; then
22189 llvm_cv_target_arch="x86"
22195 for ac_func in __dso_handle
22197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211 #define $ac_func innocuous_$ac_func
22213 /* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22219 # include <limits.h>
22221 # include <assert.h>
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined __stub_$ac_func || defined __stub___$ac_func
22243 return $ac_func ();
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; } &&
22272 { ac_try='test -s conftest$ac_exeext'
22273 { (case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_try") 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 eval "$as_ac_var=yes"
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 eval "$as_ac_var=no"
22290 rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext conftest.$ac_ext
22293 ac_res=`eval echo '${'$as_ac_var'}'`
22294 { echo "$as_me:$LINENO: result: $ac_res" >&5
22295 echo "${ECHO_T}$ac_res" >&6; }
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 SHLIBEXT=$libltdl_cv_shlibext
22308 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22311 if test "${prefix}" = "NONE" ; then
22312 prefix="/usr/local"
22314 eval LLVM_PREFIX="${prefix}";
22315 eval LLVM_BINDIR="${prefix}/bin";
22316 eval LLVM_DATADIR="${prefix}/share/llvm";
22317 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22318 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22319 eval LLVM_INCLUDEDIR="${prefix}/include";
22320 eval LLVM_INFODIR="${prefix}/info";
22321 eval LLVM_MANDIR="${prefix}/man";
22322 LLVM_CONFIGTIME=`date`
22333 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22334 LLVM_CONFIGTIME="(timestamp not enabled)"
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_PREFIX "$LLVM_PREFIX"
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_BINDIR "$LLVM_BINDIR"
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_DATADIR "$LLVM_DATADIR"
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_INFODIR "$LLVM_INFODIR"
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_MANDIR "$LLVM_MANDIR"
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_HOST_TRIPLE "$host"
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22393 if test "$BINDINGS_TO_BUILD" = auto ; then
22394 BINDINGS_TO_BUILD=""
22395 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22396 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22399 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22405 binding_prereqs_failed=0
22406 for a_binding in $BINDINGS_TO_BUILD ; do
22407 case "$a_binding" in
22409 if test "x$OCAMLC" = x ; then
22410 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22411 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22412 binding_prereqs_failed=1
22414 if test "x$OCAMLDEP" = x ; then
22415 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22416 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22417 binding_prereqs_failed=1
22419 if test "x$OCAMLOPT" = x ; then
22420 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22421 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22423 if test "x$with_ocaml_libdir" != xauto ; then
22424 OCAML_LIBDIR=$with_ocaml_libdir
22427 ocaml_stdlib="`"$OCAMLC" -where`"
22428 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22430 # ocaml stdlib is beneath our prefix; use stdlib
22431 OCAML_LIBDIR=$ocaml_stdlib
22434 # ocaml stdlib is outside our prefix; use libdir/ocaml
22435 OCAML_LIBDIR=${prefix}/lib/ocaml
22442 if test "$binding_prereqs_failed" = 1 ; then
22443 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22444 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22445 { (exit 1); exit 1; }; }
22448 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22449 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22450 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 ac_cpp='$CXXCPP $CPPFLAGS'
22455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22459 oldcxxflags="$CXXFLAGS"
22460 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22491 { (case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_try") 2>&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; } &&
22500 { ac_try='test -s conftest.$ac_objext'
22501 { (case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_try") 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 llvm_cv_cxx_visibility_inlines_hidden=yes
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 llvm_cv_cxx_visibility_inlines_hidden=no
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 CXXFLAGS="$oldcxxflags"
22521 ac_cpp='$CPP $CPPFLAGS'
22522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22528 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22529 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22530 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22531 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22534 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22539 if test "$llvm_cv_link_use_r" = "yes" ; then
22546 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22547 RDYNAMIC="-rdynamic"
22554 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22561 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22563 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22567 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22569 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22572 ac_config_files="$ac_config_files Makefile.config"
22575 ac_config_files="$ac_config_files llvm.spec"
22578 ac_config_files="$ac_config_files docs/doxygen.cfg"
22581 if test "${clang_src_root}" = ""; then
22582 clang_src_root="$srcdir/tools/clang"
22584 if test -f ${clang_src_root}/README.txt; then
22585 configh="include/clang/Config/config.h"
22586 doxy="docs/doxygen.cfg"
22587 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22589 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22593 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22596 test "x$program_prefix" = "xNONE" && program_prefix=""
22600 ac_config_commands="$ac_config_commands setup"
22602 ac_config_commands="$ac_config_commands Makefile"
22605 ac_config_commands="$ac_config_commands Makefile.common"
22608 ac_config_commands="$ac_config_commands examples/Makefile"
22611 ac_config_commands="$ac_config_commands lib/Makefile"
22614 ac_config_commands="$ac_config_commands test/Makefile"
22617 ac_config_commands="$ac_config_commands test/Makefile.tests"
22620 ac_config_commands="$ac_config_commands unittests/Makefile"
22623 ac_config_commands="$ac_config_commands tools/Makefile"
22626 ac_config_commands="$ac_config_commands utils/Makefile"
22629 ac_config_commands="$ac_config_commands projects/Makefile"
22632 ac_config_commands="$ac_config_commands bindings/Makefile"
22635 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22639 cat >confcache <<\_ACEOF
22640 # This file is a shell script that caches the results of configure
22641 # tests run on this system so they can be shared between configure
22642 # scripts and configure runs, see configure's option --config-cache.
22643 # It is not useful on other systems. If it contains results you don't
22644 # want to keep, you may remove or edit it.
22646 # config.status only pays attention to the cache file if you give it
22647 # the --recheck option to rerun configure.
22649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22651 # following values.
22655 # The following way of writing the cache mishandles newlines in values,
22656 # but we know of no workaround that is simple, portable, and efficient.
22657 # So, we kill variables containing newlines.
22658 # Ultrix sh set writes to stderr and can't be redirected directly,
22659 # and sets the high bit in the cache file unless we assign to the vars.
22661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22662 eval ac_val=\$$ac_var
22666 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22667 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22670 _ | IFS | as_nl) ;; #(
22671 *) $as_unset $ac_var ;;
22677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22678 *${as_nl}ac_space=\ *)
22679 # `set' does not quote correctly, so add quotes (double-quote
22680 # substitution turns \\\\ into \\, and sed turns \\ into \).
22683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22686 # `set' quotes correctly as required by POSIX, so do not add quotes.
22687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22700 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22701 if test -w "$cache_file"; then
22702 test "x$cache_file" != "x/dev/null" &&
22703 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22704 echo "$as_me: updating cache $cache_file" >&6;}
22705 cat confcache >$cache_file
22707 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22708 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22717 DEFS=-DHAVE_CONFIG_H
22721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22722 # 1. Remove the extension, and $U if already installed.
22723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22724 ac_i=`echo "$ac_i" | sed "$ac_script"`
22725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22726 # will be set to the directory where LIBOBJS objects are built.
22727 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22728 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22730 LIBOBJS=$ac_libobjs
22732 LTLIBOBJS=$ac_ltlibobjs
22735 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22737 Usually this means the macro was only invoked conditionally." >&5
22738 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22739 Usually this means the macro was only invoked conditionally." >&2;}
22740 { (exit 1); exit 1; }; }
22742 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22744 Usually this means the macro was only invoked conditionally." >&5
22745 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22746 Usually this means the macro was only invoked conditionally." >&2;}
22747 { (exit 1); exit 1; }; }
22750 : ${CONFIG_STATUS=./config.status}
22751 ac_clean_files_save=$ac_clean_files
22752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22755 cat >$CONFIG_STATUS <<_ACEOF
22757 # Generated by $as_me.
22758 # Run this file to recreate the current configuration.
22759 # Compiler output produced by configure, useful for debugging
22760 # configure, is in config.log if it exists.
22763 ac_cs_recheck=false
22765 SHELL=\${CONFIG_SHELL-$SHELL}
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 ## --------------------- ##
22770 ## M4sh Initialization. ##
22771 ## --------------------- ##
22773 # Be Bourne compatible
22774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22778 # is contrary to our usage. Disable this feature.
22779 alias -g '${1+"$@"}'='"$@"'
22780 setopt NO_GLOB_SUBST
22782 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22784 BIN_SH=xpg4; export BIN_SH # for Tru64
22785 DUALCASE=1; export DUALCASE # for MKS sh
22789 # Avoid depending upon Character Ranges.
22790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22793 as_cr_digits='0123456789'
22794 as_cr_alnum=$as_cr_Letters$as_cr_digits
22796 # The user is always right.
22797 if test "${PATH_SEPARATOR+set}" != set; then
22798 echo "#! /bin/sh" >conf$$.sh
22799 echo "exit 0" >>conf$$.sh
22801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22809 # Support unset when possible.
22810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22818 # We need space, tab and new line, in precisely that order. Quoting is
22819 # there to prevent editors from complaining about space-tab.
22820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22821 # splitting by setting IFS to empty value.)
22826 # Find who we are. Look in the path if we contain no directory separator.
22828 *[\\/]* ) as_myself=$0 ;;
22829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22830 for as_dir in $PATH
22833 test -z "$as_dir" && as_dir=.
22834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22840 # We did not find ourselves, most probably we were run as `sh COMMAND'
22841 # in which case we are not to be found in the path.
22842 if test "x$as_myself" = x; then
22845 if test ! -f "$as_myself"; then
22846 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22847 { (exit 1); exit 1; }
22850 # Work around bugs in pre-3.0 UWIN ksh.
22851 for as_var in ENV MAIL MAILPATH
22852 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22862 LC_TELEPHONE LC_TIME
22864 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22865 eval $as_var=C; export $as_var
22867 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22871 # Required to use basename.
22872 if expr a : '\(a\)' >/dev/null 2>&1 &&
22873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22880 as_basename=basename
22886 # Name of the executable.
22887 as_me=`$as_basename -- "$0" ||
22888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22889 X"$0" : 'X\(//\)$' \| \
22890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22892 sed '/^.*\/\([^/][^/]*\)\/*$/{
22911 as_lineno_1=$LINENO
22912 as_lineno_2=$LINENO
22913 test "x$as_lineno_1" != "x$as_lineno_2" &&
22914 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22917 # uniformly replaced by the line number. The first 'sed' inserts a
22918 # line-number line after each line using $LINENO; the second 'sed'
22919 # does the real work. The second script uses 'N' to pair each
22920 # line-number line with the line containing $LINENO, and appends
22921 # trailing '-' during substitution so that $LINENO is not a special
22922 # case at line end.
22923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22924 # scripts with optimization help from Paolo Bonzini. Blame Lee
22925 # E. McMahon (1931-1989) for sed's syntax. :-)
22937 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22940 ' >$as_me.lineno &&
22941 chmod +x "$as_me.lineno" ||
22942 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22943 { (exit 1); exit 1; }; }
22945 # Don't try to exec as it changes $[0], causing all sort of problems
22946 # (the dirname of $[0] is not the place where we might find the
22947 # original and so on. Autoconf is especially sensitive to this).
22948 . "./$as_me.lineno"
22949 # Exit status is that of the last command.
22954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22960 ECHO_C= ECHO_N= ECHO_T=
22961 case `echo -n x` in
22963 case `echo 'x\c'` in
22964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22971 if expr a : '\(a\)' >/dev/null 2>&1 &&
22972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22978 rm -f conf$$ conf$$.exe conf$$.file
22979 if test -d conf$$.dir; then
22980 rm -f conf$$.dir/conf$$.file
22986 if ln -s conf$$.file conf$$ 2>/dev/null; then
22988 # ... but there are two gotchas:
22989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22991 # In both cases, we have to default to `cp -p'.
22992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22994 elif ln conf$$.file conf$$ 2>/dev/null; then
22999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23000 rmdir conf$$.dir 2>/dev/null
23002 if mkdir -p . 2>/dev/null; then
23005 test -d ./-p && rmdir ./-p
23009 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23010 # systems may use methods other than mode bits to determine executability.
23011 cat >conf$$.file <<_ASEOF
23015 chmod +x conf$$.file
23016 if test -x conf$$.file >/dev/null 2>&1; then
23017 as_executable_p="test -x"
23023 # Sed expression to map a string onto a valid CPP name.
23024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23026 # Sed expression to map a string onto a valid variable name.
23027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23032 # Save the log message, to keep $[0] and so on meaningful, and to
23033 # report actual input values of CONFIG_FILES etc. instead of their
23034 # values after options handling.
23036 This file was extended by LLVM $as_me 3.5svn, which was
23037 generated by GNU Autoconf 2.60. Invocation command line was
23039 CONFIG_FILES = $CONFIG_FILES
23040 CONFIG_HEADERS = $CONFIG_HEADERS
23041 CONFIG_LINKS = $CONFIG_LINKS
23042 CONFIG_COMMANDS = $CONFIG_COMMANDS
23045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23050 cat >>$CONFIG_STATUS <<_ACEOF
23051 # Files that config.status was made for.
23052 config_files="$ac_config_files"
23053 config_headers="$ac_config_headers"
23054 config_commands="$ac_config_commands"
23058 cat >>$CONFIG_STATUS <<\_ACEOF
23060 \`$as_me' instantiates files from templates according to the
23061 current configuration.
23063 Usage: $0 [OPTIONS] [FILE]...
23065 -h, --help print this help, then exit
23066 -V, --version print version number, then exit
23067 -q, --quiet do not print progress messages
23068 -d, --debug don't remove temporary files
23069 --recheck update $as_me by reconfiguring in the same conditions
23070 --file=FILE[:TEMPLATE]
23071 instantiate the configuration file FILE
23072 --header=FILE[:TEMPLATE]
23073 instantiate the configuration header FILE
23075 Configuration files:
23078 Configuration headers:
23081 Configuration commands:
23084 Report bugs to <bug-autoconf@gnu.org>."
23087 cat >>$CONFIG_STATUS <<_ACEOF
23089 LLVM config.status 3.5svn
23090 configured by $0, generated by GNU Autoconf 2.60,
23091 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23093 Copyright (C) 2006 Free Software Foundation, Inc.
23094 This config.status script is free software; the Free Software Foundation
23095 gives unlimited permission to copy, distribute and modify it."
23102 cat >>$CONFIG_STATUS <<\_ACEOF
23103 # If no file are specified by the user, then we need to provide default
23104 # value. By we need to know if files were specified by the user.
23110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23122 # Handling of the options.
23123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23126 echo "$ac_cs_version"; exit ;;
23127 --debug | --debu | --deb | --de | --d | -d )
23129 --file | --fil | --fi | --f )
23131 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23132 ac_need_defaults=false;;
23133 --header | --heade | --head | --hea )
23135 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23136 ac_need_defaults=false;;
23138 # Conflict between --help and --header
23139 { echo "$as_me: error: ambiguous option: $1
23140 Try \`$0 --help' for more information." >&2
23141 { (exit 1); exit 1; }; };;
23142 --help | --hel | -h )
23143 echo "$ac_cs_usage"; exit ;;
23144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23148 # This is an error.
23149 -*) { echo "$as_me: error: unrecognized option: $1
23150 Try \`$0 --help' for more information." >&2
23151 { (exit 1); exit 1; }; } ;;
23153 *) ac_config_targets="$ac_config_targets $1"
23154 ac_need_defaults=false ;;
23160 ac_configure_extra_args=
23162 if $ac_cs_silent; then
23164 ac_configure_extra_args="$ac_configure_extra_args --silent"
23168 cat >>$CONFIG_STATUS <<_ACEOF
23169 if \$ac_cs_recheck; then
23170 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23171 CONFIG_SHELL=$SHELL
23172 export CONFIG_SHELL
23173 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23177 cat >>$CONFIG_STATUS <<\_ACEOF
23181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23182 ## Running $as_me. ##
23188 cat >>$CONFIG_STATUS <<_ACEOF
23192 llvm_src="${srcdir}"
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23198 # Handling of arguments.
23199 for ac_config_target in $ac_config_targets
23201 case $ac_config_target in
23202 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23203 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23204 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23205 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23206 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23207 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23208 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23209 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23210 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23211 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23212 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23213 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23214 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23215 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23216 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23217 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23218 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23219 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23220 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23221 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23222 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23223 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23224 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23225 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23226 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23227 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23231 { (exit 1); exit 1; }; };;
23236 # If the user did not use the arguments to specify the items to instantiate,
23237 # then the envvar interface is used. Set only those that are not.
23238 # We use the long form for the default assignment because of an extremely
23239 # bizarre bug on SunOS 4.1.3.
23240 if $ac_need_defaults; then
23241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23246 # Have a temporary directory for convenience. Make it in the build tree
23247 # simply because there is no reason against having it here, and in addition,
23248 # creating and moving files from /tmp can sometimes cause problems.
23249 # Hook for its removal unless debugging.
23250 # Note that there is a small window in which the directory will not be cleaned:
23251 # after its creation but before its name has been assigned to `$tmp'.
23255 trap 'exit_status=$?
23256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23258 trap '{ (exit 1); exit 1; }' 1 2 13 15
23260 # Create a (secure) tmp directory for tmp files.
23263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23264 test -n "$tmp" && test -d "$tmp"
23267 tmp=./conf$$-$RANDOM
23268 (umask 077 && mkdir "$tmp")
23271 echo "$me: cannot create a temporary directory in ." >&2
23272 { (exit 1); exit 1; }
23276 # Set up the sed scripts for CONFIG_FILES section.
23279 # No need to generate the scripts if there are no CONFIG_FILES.
23280 # This happens for instance when ./config.status config.h
23281 if test -n "$CONFIG_FILES"; then
23288 for ac_last_try in false false false false false :; do
23289 cat >conf$$subs.sed <<_ACEOF
23290 SHELL!$SHELL$ac_delim
23291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23297 exec_prefix!$exec_prefix$ac_delim
23298 prefix!$prefix$ac_delim
23299 program_transform_name!$program_transform_name$ac_delim
23300 bindir!$bindir$ac_delim
23301 sbindir!$sbindir$ac_delim
23302 libexecdir!$libexecdir$ac_delim
23303 datarootdir!$datarootdir$ac_delim
23304 datadir!$datadir$ac_delim
23305 sysconfdir!$sysconfdir$ac_delim
23306 sharedstatedir!$sharedstatedir$ac_delim
23307 localstatedir!$localstatedir$ac_delim
23308 includedir!$includedir$ac_delim
23309 oldincludedir!$oldincludedir$ac_delim
23310 docdir!$docdir$ac_delim
23311 infodir!$infodir$ac_delim
23312 htmldir!$htmldir$ac_delim
23313 dvidir!$dvidir$ac_delim
23314 pdfdir!$pdfdir$ac_delim
23315 psdir!$psdir$ac_delim
23316 libdir!$libdir$ac_delim
23317 localedir!$localedir$ac_delim
23318 mandir!$mandir$ac_delim
23319 DEFS!$DEFS$ac_delim
23320 ECHO_C!$ECHO_C$ac_delim
23321 ECHO_N!$ECHO_N$ac_delim
23322 ECHO_T!$ECHO_T$ac_delim
23323 LIBS!$LIBS$ac_delim
23324 build_alias!$build_alias$ac_delim
23325 host_alias!$host_alias$ac_delim
23326 target_alias!$target_alias$ac_delim
23327 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23329 CFLAGS!$CFLAGS$ac_delim
23330 LDFLAGS!$LDFLAGS$ac_delim
23331 CPPFLAGS!$CPPFLAGS$ac_delim
23332 ac_ct_CC!$ac_ct_CC$ac_delim
23333 EXEEXT!$EXEEXT$ac_delim
23334 OBJEXT!$OBJEXT$ac_delim
23336 CXXFLAGS!$CXXFLAGS$ac_delim
23337 ac_ct_CXX!$ac_ct_CXX$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 HOST_ARCH!$HOST_ARCH$ac_delim
23363 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23364 BUILD_CC!$BUILD_CC$ac_delim
23365 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23366 BUILD_CXX!$BUILD_CXX$ac_delim
23367 CVSBUILD!$CVSBUILD$ac_delim
23368 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23369 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23370 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23385 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23386 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23391 elif $ac_last_try; then
23392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23394 { (exit 1); exit 1; }; }
23396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23401 if test -n "$ac_eof"; then
23402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23403 ac_eof=`expr $ac_eof + 1`
23406 cat >>$CONFIG_STATUS <<_ACEOF
23407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23412 s/^/s,@/; s/!/@,|#_!!_#|/
23415 s/'"$ac_delim"'$/,g/; t
23417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23418 ' >>$CONFIG_STATUS <conf$$subs.sed
23419 rm -f conf$$subs.sed
23420 cat >>$CONFIG_STATUS <<_ACEOF
23426 for ac_last_try in false false false false false :; do
23427 cat >conf$$subs.sed <<_ACEOF
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23436 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23437 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23438 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23439 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23440 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23441 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23442 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23443 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23444 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23445 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23447 ifGNUmake!$ifGNUmake$ac_delim
23448 LN_S!$LN_S$ac_delim
23451 DATE!$DATE$ac_delim
23452 FIND!$FIND$ac_delim
23453 GREP!$GREP$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT!$XDOT$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 EGREP!$EGREP$ac_delim
23488 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23489 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23490 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23491 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23492 LIBADD_DL!$LIBADD_DL$ac_delim
23493 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23494 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23495 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23496 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23497 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23498 PYTHON!$PYTHON$ac_delim
23499 USE_UDIS86!$USE_UDIS86$ac_delim
23500 USE_OPROFILE!$USE_OPROFILE$ac_delim
23501 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23502 XML2CONFIG!$XML2CONFIG$ac_delim
23503 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23504 LIBXML2_INC!$LIBXML2_INC$ac_delim
23505 CXXCPP!$CXXCPP$ac_delim
23506 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23507 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23508 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23509 MMAP_FILE!$MMAP_FILE$ac_delim
23510 SHLIBEXT!$SHLIBEXT$ac_delim
23511 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23512 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23513 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23514 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23523 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23524 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23527 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23529 elif $ac_last_try; then
23530 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23531 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23532 { (exit 1); exit 1; }; }
23534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23538 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23539 if test -n "$ac_eof"; then
23540 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23541 ac_eof=`expr $ac_eof + 1`
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23549 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23550 s/^/s,@/; s/!/@,|#_!!_#|/
23553 s/'"$ac_delim"'$/,g/; t
23555 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23556 ' >>$CONFIG_STATUS <conf$$subs.sed
23557 rm -f conf$$subs.sed
23558 cat >>$CONFIG_STATUS <<_ACEOF
23564 for ac_last_try in false false false false false :; do
23565 cat >conf$$subs.sed <<_ACEOF
23566 RPATH!$RPATH$ac_delim
23567 RDYNAMIC!$RDYNAMIC$ac_delim
23568 program_prefix!$program_prefix$ac_delim
23569 LIBOBJS!$LIBOBJS$ac_delim
23570 LTLIBOBJS!$LTLIBOBJS$ac_delim
23573 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23575 elif $ac_last_try; then
23576 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578 { (exit 1); exit 1; }; }
23580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585 if test -n "$ac_eof"; then
23586 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587 ac_eof=`expr $ac_eof + 1`
23590 cat >>$CONFIG_STATUS <<_ACEOF
23591 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596 s/^/s,@/; s/!/@,|#_!!_#|/
23599 s/'"$ac_delim"'$/,g/; t
23601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602 ' >>$CONFIG_STATUS <conf$$subs.sed
23603 rm -f conf$$subs.sed
23604 cat >>$CONFIG_STATUS <<_ACEOF
23611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613 # trailing colons and then remove the whole line if VPATH becomes empty
23614 # (actually we leave an empty line to preserve line numbers).
23615 if test "x$srcdir" = x.; then
23616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23617 s/:*\$(srcdir):*/:/
23618 s/:*\${srcdir}:*/:/
23620 s/^\([^=]*=[ ]*\):*/\1/
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 fi # test -n "$CONFIG_FILES"
23630 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23633 :[FHLC]) ac_mode=$ac_tag; continue;;
23635 case $ac_mode$ac_tag in
23637 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639 { (exit 1); exit 1; }; };;
23640 :[FH]-) ac_tag=-:-;;
23641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23658 -) ac_f="$tmp/stdin";;
23659 *) # Look for the file first in the build tree, then in the source tree
23660 # (if the path is not absolute). The absolute path cannot be DOS-style,
23661 # because $ac_f cannot contain `:'.
23665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23667 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669 { (exit 1); exit 1; }; };;
23671 ac_file_inputs="$ac_file_inputs $ac_f"
23674 # Let's still pretend it is `configure' which instantiates (i.e., don't
23675 # use $as_me), people would be surprised to read:
23676 # /* config.h. Generated by config.status. */
23677 configure_input="Generated from "`IFS=:
23678 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23679 if test x"$ac_file" != x-; then
23680 configure_input="$ac_file. $configure_input"
23681 { echo "$as_me:$LINENO: creating $ac_file" >&5
23682 echo "$as_me: creating $ac_file" >&6;}
23686 *:-:* | *:-) cat >"$tmp/stdin";;
23691 ac_dir=`$as_dirname -- "$ac_file" ||
23692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693 X"$ac_file" : 'X\(//\)[^/]' \| \
23694 X"$ac_file" : 'X\(//\)$' \| \
23695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23701 /^X\(\/\/\)[^/].*/{
23716 -*) as_dir=./$as_dir;;
23718 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23722 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723 *) as_qdir=$as_dir;;
23725 as_dirs="'$as_qdir' $as_dirs"
23726 as_dir=`$as_dirname -- "$as_dir" ||
23727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728 X"$as_dir" : 'X\(//\)[^/]' \| \
23729 X"$as_dir" : 'X\(//\)$' \| \
23730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23736 /^X\(\/\/\)[^/].*/{
23749 test -d "$as_dir" && break
23751 test -z "$as_dirs" || eval "mkdir $as_dirs"
23752 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754 { (exit 1); exit 1; }; }; }
23758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23761 # A ".." for each directory in $ac_dir_suffix.
23762 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23763 case $ac_top_builddir_sub in
23764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23768 ac_abs_top_builddir=$ac_pwd
23769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770 # for backward compatibility:
23771 ac_top_builddir=$ac_top_build_prefix
23774 .) # We are building in place.
23776 ac_top_srcdir=$ac_top_builddir_sub
23777 ac_abs_top_srcdir=$ac_pwd ;;
23778 [\\/]* | ?:[\\/]* ) # Absolute name.
23779 ac_srcdir=$srcdir$ac_dir_suffix;
23780 ac_top_srcdir=$srcdir
23781 ac_abs_top_srcdir=$srcdir ;;
23782 *) # Relative name.
23783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784 ac_top_srcdir=$ac_top_build_prefix$srcdir
23785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23802 cat >>$CONFIG_STATUS <<\_ACEOF
23803 # If the template does not know about datarootdir, expand it.
23804 # FIXME: This hack should be removed a few years after 2.60.
23805 ac_datarootdir_hack=; ac_datarootdir_seen=
23807 case `sed -n '/datarootdir/ {
23816 ' $ac_file_inputs` in
23817 *datarootdir*) ac_datarootdir_seen=yes;;
23818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23819 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23822 cat >>$CONFIG_STATUS <<_ACEOF
23823 ac_datarootdir_hack='
23824 s&@datadir@&$datadir&g
23825 s&@docdir@&$docdir&g
23826 s&@infodir@&$infodir&g
23827 s&@localedir@&$localedir&g
23828 s&@mandir@&$mandir&g
23829 s&\\\${datarootdir}&$datarootdir&g' ;;
23833 # Neutralize VPATH when `$srcdir' = `.'.
23834 # Shell code in configure.ac might set extrasub.
23835 # FIXME: do we really want to maintain this feature?
23836 cat >>$CONFIG_STATUS <<_ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23843 s&@configure_input@&$configure_input&;t t
23844 s&@top_builddir@&$ac_top_builddir_sub&;t t
23845 s&@srcdir@&$ac_srcdir&;t t
23846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847 s&@top_srcdir@&$ac_top_srcdir&;t t
23848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849 s&@builddir@&$ac_builddir&;t t
23850 s&@abs_builddir@&$ac_abs_builddir&;t t
23851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852 s&@INSTALL@&$ac_INSTALL&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined. Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined." >&2;}
23866 -) cat "$tmp/out"; rm -f "$tmp/out";;
23867 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status. If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless. But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23892 ac_dB='\\)[ (].*,\\1define\\2'
23900 s/^[ ]*#[ ]*define[ ][ ]*//
23905 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907 ' >>conftest.defines
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments. This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23915 s,^[ #]*u.*,/* & */,' >>conftest.defines
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23920 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23930 # Write a here document:
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 # First, check the format of the line:
23933 cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23935 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23939 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23941 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944 grep . conftest.tail >/dev/null || break
23945 rm -f conftest.defines
23946 mv conftest.tail conftest.defines
23948 rm -f conftest.defines conftest.tail
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952 if test x"$ac_file" != x-; then
23953 echo "/* $configure_input */" >"$tmp/config.h"
23954 cat "$ac_result" >>"$tmp/config.h"
23955 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23960 mv "$tmp/config.h" $ac_file
23963 echo "/* $configure_input */"
23969 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970 echo "$as_me: executing $ac_file commands" >&6;}
23975 case $ac_file$ac_mode in
23976 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23978 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23980 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23982 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23984 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23986 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23988 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23990 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23992 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23994 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23996 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23998 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24005 { (exit 0); exit 0; }
24007 chmod +x $CONFIG_STATUS
24008 ac_clean_files=$ac_clean_files_save
24011 # configure is writing to config.log, and then calls config.status.
24012 # config.status does its own redirection, appending to config.log.
24013 # Unfortunately, on DOS this fails, as config.log is still kept open
24014 # by configure, so config.status won't be able to write to it; its
24015 # output is simply discarded. So we exec the FD to /dev/null,
24016 # effectively closing config.log, so it can be properly (re)opened and
24017 # appended to by config.status. When coming back to configure, we
24018 # need to make the FD available again.
24019 if test "$no_create" != yes; then
24021 ac_config_status_args=
24022 test "$silent" = yes &&
24023 ac_config_status_args="$ac_config_status_args --quiet"
24025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24028 # would make configure fail if this is the last instruction.
24029 $ac_cs_success || { (exit 1); exit 1; }
24033 # CONFIG_SUBDIRS section.
24035 if test "$no_recursion" != yes; then
24037 # Remove --cache-file and --srcdir arguments so they do not pile up.
24038 ac_sub_configure_args=
24040 eval "set x $ac_configure_args"
24044 if test -n "$ac_prev"; then
24049 -cache-file | --cache-file | --cache-fil | --cache-fi \
24050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24051 ac_prev=cache_file ;;
24052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24056 --config-cache | -C)
24058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24068 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24070 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24074 # Always prepend --prefix to ensure using the same prefix
24075 # in subdir configurations.
24076 ac_arg="--prefix=$prefix"
24078 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24080 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24083 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24085 # Do not complain, so a configure script can configure whichever
24086 # parts of a large source tree are present.
24087 test -d "$srcdir/$ac_dir" || continue
24089 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24090 echo "$as_me:$LINENO: $ac_msg" >&5
24094 -*) as_dir=./$as_dir;;
24096 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24100 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24101 *) as_qdir=$as_dir;;
24103 as_dirs="'$as_qdir' $as_dirs"
24104 as_dir=`$as_dirname -- "$as_dir" ||
24105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24106 X"$as_dir" : 'X\(//\)[^/]' \| \
24107 X"$as_dir" : 'X\(//\)$' \| \
24108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24114 /^X\(\/\/\)[^/].*/{
24127 test -d "$as_dir" && break
24129 test -z "$as_dirs" || eval "mkdir $as_dirs"
24130 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24131 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24132 { (exit 1); exit 1; }; }; }
24136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24139 # A ".." for each directory in $ac_dir_suffix.
24140 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24141 case $ac_top_builddir_sub in
24142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24146 ac_abs_top_builddir=$ac_pwd
24147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24148 # for backward compatibility:
24149 ac_top_builddir=$ac_top_build_prefix
24152 .) # We are building in place.
24154 ac_top_srcdir=$ac_top_builddir_sub
24155 ac_abs_top_srcdir=$ac_pwd ;;
24156 [\\/]* | ?:[\\/]* ) # Absolute name.
24157 ac_srcdir=$srcdir$ac_dir_suffix;
24158 ac_top_srcdir=$srcdir
24159 ac_abs_top_srcdir=$srcdir ;;
24160 *) # Relative name.
24161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24162 ac_top_srcdir=$ac_top_build_prefix$srcdir
24163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24170 # Check for guested configure; otherwise get Cygnus style configure.
24171 if test -f "$ac_srcdir/configure.gnu"; then
24172 ac_sub_configure=$ac_srcdir/configure.gnu
24173 elif test -f "$ac_srcdir/configure"; then
24174 ac_sub_configure=$ac_srcdir/configure
24175 elif test -f "$ac_srcdir/configure.in"; then
24176 # This should be Cygnus configure.
24177 ac_sub_configure=$ac_aux_dir/configure
24179 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24184 # The recursion is here.
24185 if test -n "$ac_sub_configure"; then
24186 # Make the cache file name correct relative to the subdirectory.
24187 case $cache_file in
24188 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24189 *) # Relative name.
24190 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24193 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24194 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24195 # The eval makes quoting arguments work.
24196 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24197 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24198 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24199 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24200 { (exit 1); exit 1; }; }