2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_EXPENSIVE_CHECKS
710 LLVM_ENUM_ASM_PRINTERS
711 LLVM_ENUM_ASM_PARSERS
712 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
770 INTEL_JITEVENTS_INCDIR
771 INTEL_JITEVENTS_LIBDIR
793 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/llvm-gcc
814 projects/llvm-poolalloc
817 projects/llvm-stacker
825 # Initialize some variables set by options.
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
1208 # Be sure to have absolute directory names.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-polly Use polly if available (default is YES)
1399 --enable-libcpp Use libc++ if available (default is NO)
1400 --enable-cxx11 Use c++11 if available (default is NO)
1401 --enable-optimized Compile with optimizations enabled (default is NO)
1402 --enable-profiling Compile with profiling enabled (default is NO)
1403 --enable-assertions Compile with assertion checks enabled (default is
1405 --enable-werror Compile with -Werror enabled (default is NO)
1406 --enable-expensive-checks
1407 Compile with expensive debug checks enabled (default
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
1413 --enable-keep-symbols Do not strip installed executables)
1414 --enable-jit Enable Just In Time Compiling (default is YES)
1415 --enable-docs Build documents (default is YES)
1416 --enable-doxygen Build doxygen documentation (default is NO)
1417 --enable-threads Use threads if available (default is YES)
1418 --enable-pthreads Use pthreads if available (default is YES)
1419 --enable-pic Build LLVM with Position Independent Code (default
1421 --enable-shared Build a shared library and link tools against it
1423 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1424 Win32 DLL (default is NO)
1425 --enable-timestamps Enable embedding timestamp information in build
1427 --enable-targets Build specific host targets: all or
1428 target1,target2,... Valid targets are: host, x86,
1429 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430 xcore, msp430, nvptx, and cpp (default=all)
1431 --enable-experimental-targets
1432 Build experimental host targets: disable or
1433 target1,target2,... (default=disable)
1434 --enable-bindings Build specific language bindings:
1435 all,auto,none,{binding-name} (default=auto)
1436 --enable-libffi Check for the presence of libffi (default is NO)
1437 --enable-ltdl-install install libltdl
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-optimize-option Select the compiler options to use for optimized
1444 --with-extra-options Specify additional options to compile LLVM with
1445 --with-extra-ld-options Specify additional options to link LLVM with
1446 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 --with-clang-srcdir Directory to the out-of-tree Clang source
1449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1452 --with-c-include-dirs Colon separated list of directories clang will
1454 --with-gcc-toolchain Directory where gcc is installed.
1455 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
1458 --with-bug-report-url Specify the URL where bug reports should be
1459 submitted (default=http://llvm.org/bugs/)
1460 --with-internal-prefix Installation directory for internal files
1461 --with-udis86=<path> Use udis86 external x86 disassembler library
1462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
1464 --with-intel-jitevents=<vtune-amplifier-dir>
1465 Specify location of run-time support library for
1467 (default=/opt/intel/vtune_amplifier_xe_2011)
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <http://llvm.org/bugs/>.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" || continue
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 LLVM configure 3.2svn
1545 generated by GNU Autoconf 2.60
1547 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1548 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1552 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1560 It was created by LLVM $as_me 3.2svn, which was
1561 generated by GNU Autoconf 2.60. Invocation command line was
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 echo "PATH: $as_dir"
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_must_keep_next=false
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638 if test $ac_must_keep_next = true; then
1639 ac_must_keep_next=false # Got value, back to normal.
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 -* ) ac_must_keep_next=true ;;
1653 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log. We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1677 # The following way of writing the cache mishandles newlines in values,
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688 _ | IFS | as_nl) ;; #(
1689 *) $as_unset $ac_var ;;
1694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695 *${as_nl}ac_space=\ *)
1697 "s/'\''/'\''\\\\'\'''\''/g;
1698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 ## ----------------- ##
1710 ## Output variables. ##
1711 ## ----------------- ##
1714 for ac_var in $ac_subst_vars
1716 eval ac_val=\$$ac_var
1718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 echo "$ac_var='\''$ac_val'\''"
1724 if test -n "$ac_subst_files"; then
1726 ## ------------------- ##
1727 ## File substitutions. ##
1728 ## ------------------- ##
1731 for ac_var in $ac_subst_files
1733 eval ac_val=\$$ac_var
1735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 echo "$ac_var='\''$ac_val'\''"
1742 if test -s confdefs.h; then
1752 test "$ac_signal" != 0 &&
1753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
1756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 for ac_signal in 1 2 13 15; do
1761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798 set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
1808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
1828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1833 # Check that the precious variables saved in the cache have kept the same
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856 echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858 echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 *) ac_arg=$ac_var=$ac_new_val ;;
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 if $ac_cache_corrupted; then
1875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 cat >>confdefs.h <<\_ACEOF
1915 #define LLVM_VERSION_MAJOR 3
1919 cat >>confdefs.h <<\_ACEOF
1920 #define LLVM_VERSION_MINOR 2
1924 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2014 { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in clang llvm-gcc gcc
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$ac_ct_CC" && break
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2157 for ac_file in $ac_files
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2166 if { (ac_try="$ac_link_default"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2181 for ac_file in $ac_files
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188 # We found the default executable, but exeext='' is most
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2223 # Check that the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2446 cat >conftest.$ac_ext <<_ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_c89=no
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2671 s = g (p, va_arg (v,int));
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 rm -f conftest.$ac_ext
2758 case "x$ac_cv_prog_cc_c89" in
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2827 test -n "$CXX" && break
2830 if test -z "$CXX"; then
2832 for ac_prog in clang++ llvm-g++ g++
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2871 test -n "$ac_ct_CXX" && break
2874 if test "x$ac_ct_CXX" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3198 if test "$GXX" = yes; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3328 rm -f conftest.err conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 if test -d ${srcdir}/projects/llvm-gcc ; then
3472 subdirs="$subdirs projects/llvm-gcc"
3476 if test -d ${srcdir}/projects/test-suite ; then
3477 subdirs="$subdirs projects/test-suite"
3481 if test -d ${srcdir}/projects/llvm-test ; then
3482 subdirs="$subdirs projects/llvm-test"
3486 if test -d ${srcdir}/projects/poolalloc ; then
3487 subdirs="$subdirs projects/poolalloc"
3491 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3492 subdirs="$subdirs projects/llvm-poolalloc"
3496 for i in `ls ${srcdir}/projects`
3498 if test -d ${srcdir}/projects/${i} ; then
3500 sample) subdirs="$subdirs projects/sample"
3502 privbracket) subdirs="$subdirs projects/privbracket"
3504 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3506 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3508 llvm-java) subdirs="$subdirs projects/llvm-java"
3510 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3512 safecode) subdirs="$subdirs projects/safecode"
3514 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3523 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3524 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3530 # Check whether --enable-polly was given.
3531 if test "${enable_polly+set}" = set; then
3532 enableval=$enable_polly;
3537 case "$enableval" in
3542 default) ENABLE_POLLY=1
3544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3545 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3546 { (exit 1); exit 1; }; } ;;
3550 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3553 subdirs="$subdirs tools/polly"
3558 # Make sure we can run config.sub.
3559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3561 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3562 { (exit 1); exit 1; }; }
3564 { echo "$as_me:$LINENO: checking build system type" >&5
3565 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3566 if test "${ac_cv_build+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_build_alias=$build_alias
3570 test "x$ac_build_alias" = x &&
3571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3572 test "x$ac_build_alias" = x &&
3573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3574 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3575 { (exit 1); exit 1; }; }
3576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3577 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3578 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3579 { (exit 1); exit 1; }; }
3582 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3583 echo "${ECHO_T}$ac_cv_build" >&6; }
3584 case $ac_cv_build in
3586 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3587 echo "$as_me: error: invalid value of canonical build" >&2;}
3588 { (exit 1); exit 1; }; };;
3591 ac_save_IFS=$IFS; IFS='-'
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3604 { echo "$as_me:$LINENO: checking host system type" >&5
3605 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3606 if test "${ac_cv_host+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3614 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3615 { (exit 1); exit 1; }; }
3619 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3620 echo "${ECHO_T}$ac_cv_host" >&6; }
3623 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3624 echo "$as_me: error: invalid value of canonical host" >&2;}
3625 { (exit 1); exit 1; }; };;
3628 ac_save_IFS=$IFS; IFS='-'
3634 # Remember, the first character of IFS is used to create $*,
3635 # except with old shells:
3638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3641 { echo "$as_me:$LINENO: checking target system type" >&5
3642 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3643 if test "${ac_cv_target+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 if test "x$target_alias" = x; then
3647 ac_cv_target=$ac_cv_host
3649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3650 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3651 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3652 { (exit 1); exit 1; }; }
3656 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3657 echo "${ECHO_T}$ac_cv_target" >&6; }
3658 case $ac_cv_target in
3660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3661 echo "$as_me: error: invalid value of canonical target" >&2;}
3662 { (exit 1); exit 1; }; };;
3664 target=$ac_cv_target
3665 ac_save_IFS=$IFS; IFS='-'
3671 # Remember, the first character of IFS is used to create $*,
3672 # except with old shells:
3675 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3678 # The aliases save the names the user supplied, while $host etc.
3679 # will get canonicalized.
3680 test -n "$target_alias" &&
3681 test "$program_prefix$program_suffix$program_transform_name" = \
3683 program_prefix=${target_alias}-
3685 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3686 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3687 if test "${llvm_cv_os_type+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="AIX"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="IRIX"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Cygwin"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Darwin"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Minix"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-freebsd* | *-*-kfreebsd-gnu)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="FreeBSD"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="OpenBSD"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="NetBSD"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="DragonFly"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="HP-UX"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Interix"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Linux"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="GNU"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="SunOS"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="AuroraUX"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Win32"
3770 llvm_cv_platform_type="Win32" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="MingW"
3775 llvm_cv_platform_type="Win32" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Haiku"
3780 llvm_cv_platform_type="Unix" ;;
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3792 llvm_cv_link_all_option=""
3793 llvm_cv_no_link_all_option=""
3794 llvm_cv_os_type="Unknown"
3795 llvm_cv_platform_type="Unknown" ;;
3798 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3799 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3802 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3803 if test "${llvm_cv_target_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 llvm_cv_target_os_type="AIX" ;;
3810 llvm_cv_target_os_type="IRIX" ;;
3812 llvm_cv_target_os_type="Cygwin" ;;
3814 llvm_cv_target_os_type="Darwin" ;;
3816 llvm_cv_target_os_type="Minix" ;;
3817 *-*-freebsd* | *-*-kfreebsd-gnu)
3818 llvm_cv_target_os_type="FreeBSD" ;;
3820 llvm_cv_target_os_type="OpenBSD" ;;
3822 llvm_cv_target_os_type="NetBSD" ;;
3824 llvm_cv_target_os_type="DragonFly" ;;
3826 llvm_cv_target_os_type="HP-UX" ;;
3828 llvm_cv_target_os_type="Interix" ;;
3830 llvm_cv_target_os_type="Linux" ;;
3832 llvm_cv_target_os_type="GNU" ;;
3834 llvm_cv_target_os_type="SunOS" ;;
3836 llvm_cv_target_os_type="AuroraUX" ;;
3838 llvm_cv_target_os_type="Win32" ;;
3840 llvm_cv_target_os_type="MingW" ;;
3842 llvm_cv_target_os_type="Haiku" ;;
3844 llvm_cv_target_os_type="RTEMS" ;;
3846 llvm_cv_target_os_type="NativeClient" ;;
3848 llvm_cv_target_os_type="Freestanding" ;;
3850 llvm_cv_target_os_type="Unknown" ;;
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3854 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3856 if test "$llvm_cv_os_type" = "Unknown" ; then
3857 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3858 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3859 { (exit 1); exit 1; }; }
3864 HOST_OS=$llvm_cv_os_type
3866 TARGET_OS=$llvm_cv_target_os_type
3869 LINKALL=$llvm_cv_link_all_option
3871 NOLINKALL=$llvm_cv_no_link_all_option
3874 case $llvm_cv_platform_type in
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_UNIX 1
3888 cat >>confdefs.h <<\_ACEOF
3889 #define LLVM_ON_WIN32 1
3899 { echo "$as_me:$LINENO: checking target architecture" >&5
3900 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_arch+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 i?86-*) llvm_cv_target_arch="x86" ;;
3906 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3907 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3908 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3909 arm*-*) llvm_cv_target_arch="ARM" ;;
3910 mips-*) llvm_cv_target_arch="Mips" ;;
3911 mipsel-*) llvm_cv_target_arch="Mips" ;;
3912 xcore-*) llvm_cv_target_arch="XCore" ;;
3913 msp430-*) llvm_cv_target_arch="MSP430" ;;
3914 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3915 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3916 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3917 *) llvm_cv_target_arch="Unknown" ;;
3920 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3921 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3923 if test "$llvm_cv_target_arch" = "Unknown" ; then
3924 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3925 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3928 case "$llvm_cv_target_arch" in
3929 x86) LLVM_NATIVE_ARCH="X86" ;;
3930 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3931 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3934 ARCH=$llvm_cv_target_arch
3938 i?86-*) host_arch="x86" ;;
3939 amd64-* | x86_64-*) host_arch="x86_64" ;;
3940 sparc*-*) host_arch="Sparc" ;;
3941 powerpc*-*) host_arch="PowerPC" ;;
3942 arm*-*) host_arch="ARM" ;;
3943 mips-*) host_arch="Mips" ;;
3944 mipsel-*) host_arch="Mips" ;;
3945 xcore-*) host_arch="XCore" ;;
3946 msp430-*) host_arch="MSP430" ;;
3947 hexagon-*) host_arch="Hexagon" ;;
3948 mblaze-*) host_arch="MBlaze" ;;
3949 *) host_arch="Unknown" ;;
3952 if test "$host_arch" = "Unknown" ; then
3953 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3954 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3957 HOST_ARCH=$host_arch
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_GREP_found && break 3
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4031 ac_cv_path_GREP=$GREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038 GREP="$ac_cv_path_GREP"
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4049 # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 $ac_path_EGREP_found && break 3
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4113 ac_cv_path_EGREP=$EGREP
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4124 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_header_stdc=yes
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_header_stdc=no
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "memchr" >/dev/null 2>&1; then
4207 ac_cv_header_stdc=no
4213 if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "free" >/dev/null 2>&1; then
4228 ac_cv_header_stdc=no
4234 if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4236 if test "$cross_compiling" = yes; then
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 #if ((' ' & 0x0FF) == 0x020)
4248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4251 # define ISLOWER(c) \
4252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
4255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
4265 || toupper (i) != TOUPPER (i))
4270 rm -f conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4292 echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_header_stdc=no
4299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4307 if test $ac_cv_header_stdc = yes; then
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4342 #include <$ac_header>
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 eval "$as_ac_Header=yes"
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 eval "$as_ac_Header=no"
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_res=`eval echo '${'$as_ac_Header'}'`
4389 { echo "$as_me:$LINENO: result: $ac_res" >&5
4390 echo "${ECHO_T}$ac_res" >&6; }
4391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4392 cat >>confdefs.h <<_ACEOF
4393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4403 if test "${ac_cv_c_bigendian+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # See if sys/param.h defines the BYTE_ORDER macro.
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4414 #include <sys/param.h>
4419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 # It does; now see whether it defined to BIG_ENDIAN or not.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4474 #if BYTE_ORDER != BIG_ENDIAN
4482 rm -f conftest.$ac_objext
4483 if { (ac_try="$ac_compile"
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_compile") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_try") 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_c_bigendian=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_cv_c_bigendian=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 # It does not; compile a test program.
4530 if test "$cross_compiling" = yes; then
4531 # try to guess the endianness by grepping values into an object file
4532 ac_cv_c_bigendian=unknown
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4542 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4544 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4548 _ascii (); _ebcdic ();
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_compile") 2>conftest.er1
4562 grep -v '^ *+' conftest.er1 >conftest.err
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4588 ac_cv_c_bigendian=yes
4590 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4591 if test "$ac_cv_c_bigendian" = unknown; then
4592 ac_cv_c_bigendian=no
4594 # finding both strings is unlikely to happen, but who knows?
4595 ac_cv_c_bigendian=unknown
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4618 /* Are we little or big endian? From Harbison&Steele. */
4622 char c[sizeof (long int)];
4625 return u.c[sizeof (long int) - 1] == 1;
4631 rm -f conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_c_bigendian=no
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_cv_c_bigendian=yes
4660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4669 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4670 case $ac_cv_c_bigendian in
4678 { { echo "$as_me:$LINENO: error: unknown endianness
4679 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4680 echo "$as_me: error: unknown endianness
4681 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4686 if test "$cross_compiling" = yes; then
4687 LLVM_CROSS_COMPILING=1
4690 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4691 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4692 if test "${ac_cv_build_exeext+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4696 ac_cv_build_exeext=.exe
4698 ac_build_prefix=${build_alias}-
4700 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4701 set dummy ${ac_build_prefix}gcc; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 if test -n "$BUILD_CC"; then
4708 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 BUILD_CC=$ac_cv_prog_BUILD_CC
4728 if test -n "$BUILD_CC"; then
4729 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4730 echo "${ECHO_T}$BUILD_CC" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 if test -z "$BUILD_CC"; then
4738 # Extract the first word of "gcc", so it can be a program name with args.
4739 set dummy gcc; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$BUILD_CC"; then
4746 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_BUILD_CC="gcc"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 BUILD_CC=$ac_cv_prog_BUILD_CC
4766 if test -n "$BUILD_CC"; then
4767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 if test -z "$BUILD_CC"; then
4776 # Extract the first word of "cc", so it can be a program name with args.
4777 set dummy cc; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$BUILD_CC"; then
4784 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4795 ac_prog_rejected=yes
4798 ac_cv_prog_BUILD_CC="cc"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 if test $ac_prog_rejected = yes; then
4807 # We found a bogon in the path, so make sure we never use it.
4808 set dummy $ac_cv_prog_BUILD_CC
4810 if test $# != 0; then
4811 # We chose a different compiler from the bogus one.
4812 # However, it has the same basename, so the bogon will be chosen
4813 # first if we set BUILD_CC to just the basename; use the full file name.
4815 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4820 BUILD_CC=$ac_cv_prog_BUILD_CC
4821 if test -n "$BUILD_CC"; then
4822 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4823 echo "${ECHO_T}$BUILD_CC" >&6; }
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4832 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4833 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4834 { (exit 1); exit 1; }; }
4835 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4837 echo 'int main () { return 0; }' > conftest.$ac_ext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4840 (eval $ac_build_link) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
4844 for file in conftest.*; do
4846 *.c | *.o | *.obj | *.dSYM) ;;
4847 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4851 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4852 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4853 { (exit 1); exit 1; }; }
4856 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4861 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4862 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4863 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4864 ac_build_exeext=$BUILD_EXEEXT
4866 ac_build_prefix=${build_alias}-
4867 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4868 set dummy ${ac_build_prefix}g++; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$BUILD_CXX"; then
4875 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4895 if test -n "$BUILD_CXX"; then
4896 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4897 echo "${ECHO_T}$BUILD_CXX" >&6; }
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4904 if test -z "$BUILD_CXX"; then
4905 # Extract the first word of "g++", so it can be a program name with args.
4906 set dummy g++; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$BUILD_CXX"; then
4913 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_BUILD_CXX="g++"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933 if test -n "$BUILD_CXX"; then
4934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 if test -z "$BUILD_CXX"; then
4943 # Extract the first word of "c++", so it can be a program name with args.
4944 set dummy c++; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$BUILD_CXX"; then
4951 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4962 ac_prog_rejected=yes
4965 ac_cv_prog_BUILD_CXX="c++"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_BUILD_CXX
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set BUILD_CXX to just the basename; use the full file name.
4982 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4987 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4988 if test -n "$BUILD_CXX"; then
4989 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4990 echo "${ECHO_T}$BUILD_CXX" >&6; }
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
5000 LLVM_CROSS_COMPILING=0
5004 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5015 # Check whether --enable-libcpp was given.
5016 if test "${enable_libcpp+set}" = set; then
5017 enableval=$enable_libcpp;
5022 case "$enableval" in
5023 yes) ENABLE_LIBCPP=1
5027 default) ENABLE_LIBCPP=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-cxx11 was given.
5035 if test "${enable_cxx11+set}" = set; then
5036 enableval=$enable_cxx11;
5041 case "$enableval" in
5046 default) ENABLE_CXX11=0
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5049 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5053 # Check whether --enable-optimized was given.
5054 if test "${enable_optimized+set}" = set; then
5055 enableval=$enable_optimized;
5060 if test ${enableval} = "no" ; then
5064 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5068 # Check whether --enable-profiling was given.
5069 if test "${enable_profiling+set}" = set; then
5070 enableval=$enable_profiling;
5075 if test ${enableval} = "no" ; then
5079 ENABLE_PROFILING=ENABLE_PROFILING=1
5083 # Check whether --enable-assertions was given.
5084 if test "${enable_assertions+set}" = set; then
5085 enableval=$enable_assertions;
5090 if test ${enableval} = "yes" ; then
5094 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5098 # Check whether --enable-werror was given.
5099 if test "${enable_werror+set}" = set; then
5100 enableval=$enable_werror;
5105 case "$enableval" in
5106 yes) ENABLE_WERROR=1
5110 default) ENABLE_WERROR=0
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-expensive-checks was given.
5118 if test "${enable_expensive_checks+set}" = set; then
5119 enableval=$enable_expensive_checks;
5124 if test ${enableval} = "yes" ; then
5125 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5127 EXPENSIVE_CHECKS=yes
5130 ENABLE_EXPENSIVE_CHECKS=
5136 # Check whether --enable-debug-runtime was given.
5137 if test "${enable_debug_runtime+set}" = set; then
5138 enableval=$enable_debug_runtime;
5143 if test ${enableval} = "no" ; then
5147 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5151 # Check whether --enable-debug-symbols was given.
5152 if test "${enable_debug_symbols+set}" = set; then
5153 enableval=$enable_debug_symbols;
5158 if test ${enableval} = "no" ; then
5162 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5166 # Check whether --enable-keep-symbols was given.
5167 if test "${enable_keep_symbols+set}" = set; then
5168 enableval=$enable_keep_symbols;
5173 if test ${enableval} = "no" ; then
5177 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5181 # Check whether --enable-jit was given.
5182 if test "${enable_jit+set}" = set; then
5183 enableval=$enable_jit;
5188 if test ${enableval} = "no"
5193 case "$llvm_cv_target_arch" in
5194 x86) TARGET_HAS_JIT=1
5196 Sparc) TARGET_HAS_JIT=0
5198 PowerPC) TARGET_HAS_JIT=1
5200 x86_64) TARGET_HAS_JIT=1
5202 ARM) TARGET_HAS_JIT=1
5204 Mips) TARGET_HAS_JIT=1
5206 XCore) TARGET_HAS_JIT=0
5208 MSP430) TARGET_HAS_JIT=0
5210 Hexagon) TARGET_HAS_JIT=0
5212 MBlaze) TARGET_HAS_JIT=0
5214 NVPTX) TARGET_HAS_JIT=0
5221 # Check whether --enable-docs was given.
5222 if test "${enable_docs+set}" = set; then
5223 enableval=$enable_docs;
5228 case "$enableval" in
5233 default) ENABLE_DOCS=1
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5240 # Check whether --enable-doxygen was given.
5241 if test "${enable_doxygen+set}" = set; then
5242 enableval=$enable_doxygen;
5247 case "$enableval" in
5248 yes) ENABLE_DOXYGEN=1
5250 no) ENABLE_DOXYGEN=0
5252 default) ENABLE_DOXYGEN=0
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5259 # Check whether --enable-threads was given.
5260 if test "${enable_threads+set}" = set; then
5261 enableval=$enable_threads;
5266 case "$enableval" in
5267 yes) LLVM_ENABLE_THREADS=1
5269 no) LLVM_ENABLE_THREADS=0
5271 default) LLVM_ENABLE_THREADS=1
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 cat >>confdefs.h <<_ACEOF
5279 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5283 # Check whether --enable-pthreads was given.
5284 if test "${enable_pthreads+set}" = set; then
5285 enableval=$enable_pthreads;
5290 case "$enableval" in
5291 yes) ENABLE_PTHREADS=1
5293 no) ENABLE_PTHREADS=0
5295 default) ENABLE_PTHREADS=1
5297 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5298 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5302 # Check whether --enable-pic was given.
5303 if test "${enable_pic+set}" = set; then
5304 enableval=$enable_pic;
5309 case "$enableval" in
5314 default) ENABLE_PIC=1
5316 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5317 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5318 { (exit 1); exit 1; }; } ;;
5321 cat >>confdefs.h <<_ACEOF
5322 #define ENABLE_PIC $ENABLE_PIC
5326 # Check whether --enable-shared was given.
5327 if test "${enable_shared+set}" = set; then
5328 enableval=$enable_shared;
5333 case "$enableval" in
5334 yes) ENABLE_SHARED=1
5338 default) ENABLE_SHARED=0
5340 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5341 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5345 # Check whether --enable-embed-stdcxx was given.
5346 if test "${enable_embed_stdcxx+set}" = set; then
5347 enableval=$enable_embed_stdcxx;
5352 case "$enableval" in
5353 yes) ENABLE_EMBED_STDCXX=1
5355 no) ENABLE_EMBED_STDCXX=0
5357 default) ENABLE_EMBED_STDCXX=0
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5360 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5364 # Check whether --enable-timestamps was given.
5365 if test "${enable_timestamps+set}" = set; then
5366 enableval=$enable_timestamps;
5371 case "$enableval" in
5372 yes) ENABLE_TIMESTAMPS=1
5374 no) ENABLE_TIMESTAMPS=0
5376 default) ENABLE_TIMESTAMPS=1
5378 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5379 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5380 { (exit 1); exit 1; }; } ;;
5383 cat >>confdefs.h <<_ACEOF
5384 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5389 # Check whether --enable-targets was given.
5390 if test "${enable_targets+set}" = set; then
5391 enableval=$enable_targets;
5396 if test "$enableval" = host-only ; then
5399 case "$enableval" in
5400 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5401 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5403 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5404 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5405 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5406 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5407 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5408 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5409 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5410 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5411 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5412 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5413 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5414 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5415 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5416 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5417 host) case "$llvm_cv_target_arch" in
5418 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5419 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5420 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5421 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5422 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5423 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5424 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5425 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5426 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5427 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5428 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5429 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5430 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5431 echo "$as_me: error: Can not set target to build" >&2;}
5432 { (exit 1); exit 1; }; } ;;
5434 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5435 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5436 { (exit 1); exit 1; }; } ;;
5442 # Check whether --enable-experimental-targets was given.
5443 if test "${enable_experimental_targets+set}" = set; then
5444 enableval=$enable_experimental_targets;
5450 if test ${enableval} != "disable"
5452 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5455 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5458 for a_target in $TARGETS_TO_BUILD; do
5459 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5465 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5466 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5467 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5468 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5469 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5470 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5472 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5473 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5476 cat >>confdefs.h <<_ACEOF
5477 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5481 cat >>confdefs.h <<_ACEOF
5482 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5486 cat >>confdefs.h <<_ACEOF
5487 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5491 cat >>confdefs.h <<_ACEOF
5492 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5495 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5497 cat >>confdefs.h <<_ACEOF
5498 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5502 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5512 LLVM_ENUM_TARGETS=""
5513 LLVM_ENUM_ASM_PRINTERS=""
5514 LLVM_ENUM_ASM_PARSERS=""
5515 LLVM_ENUM_DISASSEMBLERS=""
5516 for target_to_build in $TARGETS_TO_BUILD; do
5517 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5518 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5519 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5521 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5522 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5524 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5525 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5534 # Check whether --with-optimize-option was given.
5535 if test "${with_optimize_option+set}" = set; then
5536 withval=$with_optimize_option;
5541 { echo "$as_me:$LINENO: checking optimization flags" >&5
5542 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5545 case "$llvm_cv_os_type" in
5546 FreeBSD) optimize_option=-O2 ;;
5547 MingW) optimize_option=-O2 ;;
5548 *) optimize_option=-O3 ;;
5550 *) optimize_option="$withval" ;;
5552 OPTIMIZE_OPTION=$optimize_option
5554 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5555 echo "${ECHO_T}$optimize_option" >&6; }
5558 # Check whether --with-extra-options was given.
5559 if test "${with_extra_options+set}" = set; then
5560 withval=$with_extra_options;
5566 default) EXTRA_OPTIONS= ;;
5567 *) EXTRA_OPTIONS=$withval ;;
5569 EXTRA_OPTIONS=$EXTRA_OPTIONS
5573 # Check whether --with-extra-ld-options was given.
5574 if test "${with_extra_ld_options+set}" = set; then
5575 withval=$with_extra_ld_options;
5581 default) EXTRA_LD_OPTIONS= ;;
5582 *) EXTRA_LD_OPTIONS=$withval ;;
5584 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5587 # Check whether --enable-bindings was given.
5588 if test "${enable_bindings+set}" = set; then
5589 enableval=$enable_bindings;
5594 BINDINGS_TO_BUILD=""
5595 case "$enableval" in
5596 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5597 all ) BINDINGS_TO_BUILD="ocaml" ;;
5598 none | no) BINDINGS_TO_BUILD="" ;;
5599 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5600 case "$a_binding" in
5601 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5602 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5603 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5604 { (exit 1); exit 1; }; } ;;
5611 # Check whether --with-ocaml-libdir was given.
5612 if test "${with_ocaml_libdir+set}" = set; then
5613 withval=$with_ocaml_libdir;
5619 auto) with_ocaml_libdir="$withval" ;;
5620 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5621 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5622 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5623 { (exit 1); exit 1; }; } ;;
5627 # Check whether --with-clang-srcdir was given.
5628 if test "${with_clang_srcdir+set}" = set; then
5629 withval=$with_clang_srcdir;
5635 -) clang_src_root="" ;;
5636 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5637 *) clang_src_root="$ac_pwd/$withval" ;;
5639 CLANG_SRC_ROOT=$clang_src_root
5643 # Check whether --with-clang-resource-dir was given.
5644 if test "${with_clang_resource_dir+set}" = set; then
5645 withval=$with_clang_resource_dir;
5651 cat >>confdefs.h <<_ACEOF
5652 #define CLANG_RESOURCE_DIR "$withval"
5657 # Check whether --with-c-include-dirs was given.
5658 if test "${with_c_include_dirs+set}" = set; then
5659 withval=$with_c_include_dirs;
5665 cat >>confdefs.h <<_ACEOF
5666 #define C_INCLUDE_DIRS "$withval"
5670 # Clang normally uses the system c++ headers and libraries. With this option,
5671 # clang will use the ones provided by a gcc installation instead. This option should
5672 # be passed the same value that was used with --prefix when configuring gcc.
5674 # Check whether --with-gcc-toolchain was given.
5675 if test "${with_gcc_toolchain+set}" = set; then
5676 withval=$with_gcc_toolchain;
5682 cat >>confdefs.h <<_ACEOF
5683 #define GCC_INSTALL_PREFIX "$withval"
5688 # Check whether --with-default-sysroot was given.
5689 if test "${with_default_sysroot+set}" = set; then
5690 withval=$with_default_sysroot;
5696 cat >>confdefs.h <<_ACEOF
5697 #define DEFAULT_SYSROOT "$withval"
5702 # Check whether --with-binutils-include was given.
5703 if test "${with_binutils_include+set}" = set; then
5704 withval=$with_binutils_include;
5710 default) WITH_BINUTILS_INCDIR=default ;;
5711 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5712 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5713 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5714 { (exit 1); exit 1; }; } ;;
5716 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5717 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5719 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5720 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5721 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5722 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5723 { (exit 1); exit 1; }; };
5728 # Check whether --with-bug-report-url was given.
5729 if test "${with_bug_report_url+set}" = set; then
5730 withval=$with_bug_report_url;
5732 withval="http://llvm.org/bugs/"
5736 cat >>confdefs.h <<_ACEOF
5737 #define BUG_REPORT_URL "$withval"
5741 # Check whether --enable-libffi was given.
5742 if test "${enable_libffi+set}" = set; then
5743 enableval=$enable_libffi; case "$enableval" in
5744 yes) llvm_cv_enable_libffi="yes" ;;
5745 no) llvm_cv_enable_libffi="no" ;;
5746 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5747 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5748 { (exit 1); exit 1; }; } ;;
5751 llvm_cv_enable_libffi=no
5756 # Check whether --with-internal-prefix was given.
5757 if test "${with_internal_prefix+set}" = set; then
5758 withval=$with_internal_prefix;
5763 INTERNAL_PREFIX=$withval
5767 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5768 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5769 if test "${lt_cv_path_NM+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$NM"; then
5773 # Let the user override the test.
5776 lt_nm_to_check="${ac_tool_prefix}nm"
5777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5778 lt_nm_to_check="$lt_nm_to_check nm"
5780 for lt_tmp_nm in $lt_nm_to_check; do
5781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5784 test -z "$ac_dir" && ac_dir=.
5785 tmp_nm="$ac_dir/$lt_tmp_nm"
5786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5787 # Check to see if the nm accepts a BSD-compat flag.
5788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5789 # nm: unknown option "B" ignored
5790 # Tru64's nm complains that /dev/null is an invalid object file
5791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5792 */dev/null* | *'Invalid file or object type'*)
5793 lt_cv_path_NM="$tmp_nm -B"
5797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5799 lt_cv_path_NM="$tmp_nm -p"
5803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5804 continue # so that we can try to find one that supports BSD flags
5813 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5816 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5817 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5822 { echo "$as_me:$LINENO: checking for GNU make" >&5
5823 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5824 if test "${llvm_cv_gnu_make_command+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 llvm_cv_gnu_make_command=''
5828 for a in "$MAKE" make gmake gnumake ; do
5829 if test -z "$a" ; then continue ; fi ;
5830 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5832 llvm_cv_gnu_make_command=$a ;
5837 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5838 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5839 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5843 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5844 echo "${ECHO_T}\"Not found\"" >&6; };
5848 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5849 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5851 if test "$LN_S" = "ln -s"; then
5852 { echo "$as_me:$LINENO: result: yes" >&5
5853 echo "${ECHO_T}yes" >&6; }
5855 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5856 echo "${ECHO_T}no, using $LN_S" >&6; }
5859 # Extract the first word of "cmp", so it can be a program name with args.
5860 set dummy cmp; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_CMP+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 if test -n "$CMP"; then
5892 { echo "$as_me:$LINENO: result: $CMP" >&5
5893 echo "${ECHO_T}$CMP" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "cp", so it can be a program name with args.
5901 set dummy cp; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_CP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5932 if test -n "$CP"; then
5933 { echo "$as_me:$LINENO: result: $CP" >&5
5934 echo "${ECHO_T}$CP" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 # Extract the first word of "date", so it can be a program name with args.
5942 set dummy date; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_DATE+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5972 DATE=$ac_cv_path_DATE
5973 if test -n "$DATE"; then
5974 { echo "$as_me:$LINENO: result: $DATE" >&5
5975 echo "${ECHO_T}$DATE" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 # Extract the first word of "find", so it can be a program name with args.
5983 set dummy find; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_path_FIND+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6013 FIND=$ac_cv_path_FIND
6014 if test -n "$FIND"; then
6015 { echo "$as_me:$LINENO: result: $FIND" >&5
6016 echo "${ECHO_T}$FIND" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6023 # Extract the first word of "grep", so it can be a program name with args.
6024 set dummy grep; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_GREP+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6054 GREP=$ac_cv_path_GREP
6055 if test -n "$GREP"; then
6056 { echo "$as_me:$LINENO: result: $GREP" >&5
6057 echo "${ECHO_T}$GREP" >&6; }
6059 { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6064 # Extract the first word of "mkdir", so it can be a program name with args.
6065 set dummy mkdir; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_MKDIR+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6095 MKDIR=$ac_cv_path_MKDIR
6096 if test -n "$MKDIR"; then
6097 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6098 echo "${ECHO_T}$MKDIR" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6105 # Extract the first word of "mv", so it can be a program name with args.
6106 set dummy mv; 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_path_MV+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6137 if test -n "$MV"; then
6138 { echo "$as_me:$LINENO: result: $MV" >&5
6139 echo "${ECHO_T}$MV" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6236 RANLIB=$ac_ct_RANLIB
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ar; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_AR+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$AR"; then
6251 ac_cv_prog_AR="$AR" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_AR="${ac_tool_prefix}ar"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 if test -n "$AR"; then
6272 { echo "$as_me:$LINENO: result: $AR" >&5
6273 echo "${ECHO_T}$AR" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_AR"; then
6283 # Extract the first word of "ar", so it can be a program name with args.
6284 set dummy ar; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 if test -n "$ac_ct_AR"; then
6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_AR="ar"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311 if test -n "$ac_ct_AR"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6313 echo "${ECHO_T}$ac_ct_AR" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_AR" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6338 # Extract the first word of "rm", so it can be a program name with args.
6339 set dummy rm; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_RM+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6370 if test -n "$RM"; then
6371 { echo "$as_me:$LINENO: result: $RM" >&5
6372 echo "${ECHO_T}$RM" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6379 # Extract the first word of "sed", so it can be a program name with args.
6380 set dummy sed; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_SED+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6411 if test -n "$SED"; then
6412 { echo "$as_me:$LINENO: result: $SED" >&5
6413 echo "${ECHO_T}$SED" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 # Extract the first word of "tar", so it can be a program name with args.
6421 set dummy tar; ac_word=$2
6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424 if test "${ac_cv_path_TAR+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6452 if test -n "$TAR"; then
6453 { echo "$as_me:$LINENO: result: $TAR" >&5
6454 echo "${ECHO_T}$TAR" >&6; }
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6461 # Extract the first word of "pwd", so it can be a program name with args.
6462 set dummy pwd; 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_BINPWD+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
6492 BINPWD=$ac_cv_path_BINPWD
6493 if test -n "$BINPWD"; then
6494 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6495 echo "${ECHO_T}$BINPWD" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6503 # Extract the first word of "Graphviz", so it can be a program name with args.
6504 set dummy Graphviz; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6534 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6535 if test -n "$GRAPHVIZ"; then
6536 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6537 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define HAVE_GRAPHVIZ 1
6550 if test "$llvm_cv_os_type" = "MingW" ; then
6551 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6554 cat >>confdefs.h <<_ACEOF
6555 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6559 # Extract the first word of "dot", so it can be a program name with args.
6560 set dummy dot; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_DOT+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6591 if test -n "$DOT"; then
6592 { echo "$as_me:$LINENO: result: $DOT" >&5
6593 echo "${ECHO_T}$DOT" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 if test "$DOT" != "echo dot" ; then
6602 cat >>confdefs.h <<\_ACEOF
6606 if test "$llvm_cv_os_type" = "MingW" ; then
6607 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6610 cat >>confdefs.h <<_ACEOF
6611 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6615 # Extract the first word of "fdp", so it can be a program name with args.
6616 set dummy fdp; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_FDP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6647 if test -n "$FDP"; then
6648 { echo "$as_me:$LINENO: result: $FDP" >&5
6649 echo "${ECHO_T}$FDP" >&6; }
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6656 if test "$FDP" != "echo fdp" ; then
6658 cat >>confdefs.h <<\_ACEOF
6662 if test "$llvm_cv_os_type" = "MingW" ; then
6663 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6666 cat >>confdefs.h <<_ACEOF
6667 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6671 # Extract the first word of "neato", so it can be a program name with args.
6672 set dummy neato; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_NEATO+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6702 NEATO=$ac_cv_path_NEATO
6703 if test -n "$NEATO"; then
6704 { echo "$as_me:$LINENO: result: $NEATO" >&5
6705 echo "${ECHO_T}$NEATO" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6712 if test "$NEATO" != "echo neato" ; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_NEATO 1
6718 if test "$llvm_cv_os_type" = "MingW" ; then
6719 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6722 cat >>confdefs.h <<_ACEOF
6723 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6727 # Extract the first word of "twopi", so it can be a program name with args.
6728 set dummy twopi; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TWOPI+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6758 TWOPI=$ac_cv_path_TWOPI
6759 if test -n "$TWOPI"; then
6760 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6761 echo "${ECHO_T}$TWOPI" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 if test "$TWOPI" != "echo twopi" ; then
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_TWOPI 1
6774 if test "$llvm_cv_os_type" = "MingW" ; then
6775 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6778 cat >>confdefs.h <<_ACEOF
6779 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6783 # Extract the first word of "circo", so it can be a program name with args.
6784 set dummy circo; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_CIRCO+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6814 CIRCO=$ac_cv_path_CIRCO
6815 if test -n "$CIRCO"; then
6816 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6817 echo "${ECHO_T}$CIRCO" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 if test "$CIRCO" != "echo circo" ; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_CIRCO 1
6830 if test "$llvm_cv_os_type" = "MingW" ; then
6831 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6839 for ac_prog in gv gsview32
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842 set dummy $ac_prog; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 if test -n "$GV"; then
6873 { echo "$as_me:$LINENO: result: $GV" >&5
6874 echo "${ECHO_T}$GV" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6881 test -n "$GV" && break
6883 test -n "$GV" || GV="echo gv"
6885 if test "$GV" != "echo gv" ; then
6887 cat >>confdefs.h <<\_ACEOF
6891 if test "$llvm_cv_os_type" = "MingW" ; then
6892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6895 cat >>confdefs.h <<_ACEOF
6896 #define LLVM_PATH_GV "$GV${EXEEXT}"
6900 # Extract the first word of "dotty", so it can be a program name with args.
6901 set dummy dotty; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6931 DOTTY=$ac_cv_path_DOTTY
6932 if test -n "$DOTTY"; then
6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934 echo "${ECHO_T}$DOTTY" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test "$DOTTY" != "echo dotty" ; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_DOTTY 1
6947 if test "$llvm_cv_os_type" = "MingW" ; then
6948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951 cat >>confdefs.h <<_ACEOF
6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6956 # Extract the first word of "xdot.py", so it can be a program name with args.
6957 set dummy xdot.py; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6987 XDOT_PY=$ac_cv_path_XDOT_PY
6988 if test -n "$XDOT_PY"; then
6989 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6990 echo "${ECHO_T}$XDOT_PY" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 if test "$XDOT_PY" != "echo xdot.py" ; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define HAVE_XDOT_PY 1
7003 if test "$llvm_cv_os_type" = "MingW" ; then
7004 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7007 cat >>confdefs.h <<_ACEOF
7008 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7013 # Find a good install program. We prefer a C program (faster),
7014 # so one script is as good as another. But avoid the broken or
7015 # incompatible versions:
7016 # SysV /etc/install, /usr/sbin/install
7017 # SunOS /usr/etc/install
7018 # IRIX /sbin/install
7020 # AmigaOS /C/install, which installs bootblocks on floppy discs
7021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024 # OS/2's system install, which has a completely different semantic
7025 # ./install, which can be erroneously created by make from ./install.sh.
7026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7028 if test -z "$INSTALL"; then
7029 if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 # Account for people who put trailing slashes in PATH elements.
7039 ./ | .// | /cC/* | \
7040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7072 if test "${ac_cv_path_install+set}" = set; then
7073 INSTALL=$ac_cv_path_install
7075 # As a last resort, use the slow shell script. Don't cache a
7076 # value for INSTALL within a source directory, because that will
7077 # break other packages using the cache if that directory is
7078 # removed, or if the value is a relative name.
7079 INSTALL=$ac_install_sh
7082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7083 echo "${ECHO_T}$INSTALL" >&6; }
7085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086 # It thinks the first close brace ends the variable substitution.
7087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7094 [\\/$]* | ?:[\\/]* ) ;;
7095 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7098 # Extract the first word of "bzip2", so it can be a program name with args.
7099 set dummy bzip2; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_BZIP2+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 BZIP2=$ac_cv_path_BZIP2
7129 if test -n "$BZIP2"; then
7130 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131 echo "${ECHO_T}$BZIP2" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 # Extract the first word of "cat", so it can be a program name with args.
7139 set dummy cat; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_CAT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 if test -n "$CAT"; then
7170 { echo "$as_me:$LINENO: result: $CAT" >&5
7171 echo "${ECHO_T}$CAT" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "doxygen", so it can be a program name with args.
7179 set dummy doxygen; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 DOXYGEN=$ac_cv_path_DOXYGEN
7209 if test -n "$DOXYGEN"; then
7210 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211 echo "${ECHO_T}$DOXYGEN" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 # Extract the first word of "groff", so it can be a program name with args.
7219 set dummy groff; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_GROFF+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 GROFF=$ac_cv_path_GROFF
7249 if test -n "$GROFF"; then
7250 { echo "$as_me:$LINENO: result: $GROFF" >&5
7251 echo "${ECHO_T}$GROFF" >&6; }
7253 { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7258 # Extract the first word of "gzip", so it can be a program name with args.
7259 set dummy gzip; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 GZIPBIN=$ac_cv_path_GZIPBIN
7289 if test -n "$GZIPBIN"; then
7290 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291 echo "${ECHO_T}$GZIPBIN" >&6; }
7293 { echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6; }
7298 # Extract the first word of "pdfroff", so it can be a program name with args.
7299 set dummy pdfroff; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_PDFROFF+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 PDFROFF=$ac_cv_path_PDFROFF
7329 if test -n "$PDFROFF"; then
7330 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7331 echo "${ECHO_T}$PDFROFF" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7338 # Extract the first word of "zip", so it can be a program name with args.
7339 set dummy zip; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_ZIP+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 if test -n "$ZIP"; then
7370 { echo "$as_me:$LINENO: result: $ZIP" >&5
7371 echo "${ECHO_T}$ZIP" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7378 for ac_prog in ocamlc
7380 # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy $ac_prog; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_OCAMLC+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 OCAMLC=$ac_cv_path_OCAMLC
7411 if test -n "$OCAMLC"; then
7412 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7413 echo "${ECHO_T}$OCAMLC" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 test -n "$OCAMLC" && break
7423 for ac_prog in ocamlopt
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 OCAMLOPT=$ac_cv_path_OCAMLOPT
7456 if test -n "$OCAMLOPT"; then
7457 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7458 echo "${ECHO_T}$OCAMLOPT" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 test -n "$OCAMLOPT" && break
7468 for ac_prog in ocamldep
7470 # Extract the first word of "$ac_prog", so it can be a program name with args.
7471 set dummy $ac_prog; ac_word=$2
7472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7489 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 OCAMLDEP=$ac_cv_path_OCAMLDEP
7501 if test -n "$OCAMLDEP"; then
7502 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7503 echo "${ECHO_T}$OCAMLDEP" >&6; }
7505 { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7510 test -n "$OCAMLDEP" && break
7513 for ac_prog in ocamldoc
7515 # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 OCAMLDOC=$ac_cv_path_OCAMLDOC
7546 if test -n "$OCAMLDOC"; then
7547 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7548 echo "${ECHO_T}$OCAMLDOC" >&6; }
7550 { echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6; }
7555 test -n "$OCAMLDOC" && break
7558 for ac_prog in gas as
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564 if test "${ac_cv_path_GAS+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 if test -n "$GAS"; then
7592 { echo "$as_me:$LINENO: result: $GAS" >&5
7593 echo "${ECHO_T}$GAS" >&6; }
7595 { echo "$as_me:$LINENO: result: no" >&5
7596 echo "${ECHO_T}no" >&6; }
7600 test -n "$GAS" && break
7604 { echo "$as_me:$LINENO: checking for linker version" >&5
7605 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7606 if test "${llvm_cv_link_version+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 version_string="$(ld -v 2>&1 | head -1)"
7613 if (echo "$version_string" | grep -q "ld64"); then
7614 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7616 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7620 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7621 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7623 cat >>confdefs.h <<_ACEOF
7624 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7629 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7630 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7631 if test "${llvm_cv_link_use_r+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641 CFLAGS="$CFLAGS -Wl,-R."
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (ac_try="$ac_link"
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_link") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7672 { (case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_try") 2>&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 llvm_cv_link_use_r=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 llvm_cv_link_use_r=no
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7703 ac_cpp='$CPP $CPPFLAGS'
7704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7711 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7712 if test "$llvm_cv_link_use_r" = yes ; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_LINK_R 1
7721 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7722 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7723 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest$ac_exeext'
7774 { (case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_try") 2>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 llvm_cv_link_use_export_dynamic=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 llvm_cv_link_use_export_dynamic=no
7791 rm -f core conftest.err conftest.$ac_objext \
7792 conftest$ac_exeext conftest.$ac_ext
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7803 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7804 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7806 cat >>confdefs.h <<\_ACEOF
7807 #define HAVE_LINK_EXPORT_DYNAMIC 1
7813 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7814 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7815 if test "${llvm_cv_link_use_version_script+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826 # The following code is from the autoconf manual,
7827 # "11.13: Limitations of Usual Tools".
7828 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7829 # Use mktemp if possible; otherwise fall back on mkdir,
7830 # with $RANDOM to make collisions less likely.
7834 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7836 test -n "$tmp" && test -d "$tmp"
7838 tmp=$TMPDIR/foo$$-$RANDOM
7839 (umask 077 && mkdir "$tmp")
7842 echo "{" > "$tmp/export.map"
7843 echo " global: main;" >> "$tmp/export.map"
7844 echo " local: *;" >> "$tmp/export.map"
7845 echo "};" >> "$tmp/export.map"
7847 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 llvm_cv_link_use_version_script=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 llvm_cv_link_use_version_script=no
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 rm "$tmp/export.map"
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7919 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7920 if test "$llvm_cv_link_use_version_script" = yes ; then
7921 HAVE_LINK_VERSION_SCRIPT=1
7928 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7930 if test "${ac_cv_c_const+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7943 /* FIXME: Include the comments suggested by Paul. */
7945 /* Ultrix mips cc rejects this. */
7946 typedef int charset[2];
7948 /* SunOS 4.1.1 cc rejects this. */
7949 char const *const *ccp;
7951 /* NEC SVR4.0.2 mips cc rejects this. */
7952 struct point {int x, y;};
7953 static struct point const zero = {0,0};
7954 /* AIX XL C 1.02.0.0 rejects this.
7955 It does not let you subtract one const X* pointer from another in
7956 an arm of an if-expression whose if-part is not a constant
7958 const char *g = "string";
7959 ccp = &g + (g ? g-g : 0);
7960 /* HPUX 7.0 cc rejects these. */
7963 ccp = (char const *const *) p;
7964 { /* SCO 3.2v4 cc rejects this. */
7966 char const *s = 0 ? (char *) 0 : (char const *) 0;
7971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7973 const int *foo = &x[0];
7976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7977 typedef const int *iptr;
7981 { /* AIX XL C 1.02.0.0 rejects this saying
7982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7983 struct s { int j; const int *ap[3]; };
7984 struct s *b; b->j = 5;
7986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7990 return !x[0] && !zero.x;
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_try") 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8042 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8043 if test $ac_cv_c_const = no; then
8045 cat >>confdefs.h <<\_ACEOF
8057 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8058 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8059 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8060 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <sys/types.h>
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 eval "$as_ac_Header=yes"
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 eval "$as_ac_Header=no"
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 ac_res=`eval echo '${'$as_ac_Header'}'`
8127 { echo "$as_me:$LINENO: result: $ac_res" >&5
8128 echo "${ECHO_T}$ac_res" >&6; }
8129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8130 cat >>confdefs.h <<_ACEOF
8131 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8134 ac_header_dirent=$ac_hdr; break
8138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8139 if test $ac_header_dirent = dirent.h; then
8140 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8142 if test "${ac_cv_search_opendir+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 ac_func_search_save_LIBS=$LIBS
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8153 /* Override any GCC internal prototype to avoid an error.
8154 Use char because int might match the return type of a GCC
8155 builtin and then its argument prototype would still apply. */
8168 for ac_lib in '' dir; do
8169 if test -z "$ac_lib"; then
8170 ac_res="none required"
8173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_search_opendir=$ac_res
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f core conftest.err conftest.$ac_objext \
8219 if test "${ac_cv_search_opendir+set}" = set; then
8223 if test "${ac_cv_search_opendir+set}" = set; then
8226 ac_cv_search_opendir=no
8229 LIBS=$ac_func_search_save_LIBS
8231 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8232 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8233 ac_res=$ac_cv_search_opendir
8234 if test "$ac_res" != no; then
8235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8240 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8241 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8242 if test "${ac_cv_search_opendir+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 ac_func_search_save_LIBS=$LIBS
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8268 for ac_lib in '' x; do
8269 if test -z "$ac_lib"; then
8270 ac_res="none required"
8273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_search_opendir=$ac_res
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8317 rm -f core conftest.err conftest.$ac_objext \
8319 if test "${ac_cv_search_opendir+set}" = set; then
8323 if test "${ac_cv_search_opendir+set}" = set; then
8326 ac_cv_search_opendir=no
8329 LIBS=$ac_func_search_save_LIBS
8331 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8332 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8333 ac_res=$ac_cv_search_opendir
8334 if test "$ac_res" != no; then
8335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8342 for ac_header in dlfcn.h
8344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_res=`eval echo '${'$as_ac_Header'}'`
8352 { echo "$as_me:$LINENO: result: $ac_res" >&5
8353 echo "${ECHO_T}$ac_res" >&6; }
8355 # Is the header compilable?
8356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 #include <$ac_header>
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_header_compiler=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_header_compiler=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8411 echo "${ECHO_T}$ac_header_compiler" >&6; }
8413 # Is the header present?
8414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 #include <$ac_header>
8424 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446 if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_header_preproc=no
8455 rm -f conftest.err conftest.$ac_ext
8456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6; }
8459 # So? What about this header?
8460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8466 ac_header_preproc=yes
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8482 ## ------------------------------------ ##
8483 ## Report this to http://llvm.org/bugs/ ##
8484 ## ------------------------------------ ##
8486 ) | sed "s/^/$as_me: WARNING: /" >&2
8489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 eval "$as_ac_Header=\$ac_header_preproc"
8496 ac_res=`eval echo '${'$as_ac_Header'}'`
8497 { echo "$as_me:$LINENO: result: $ac_res" >&5
8498 echo "${ECHO_T}$ac_res" >&6; }
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510 # Check whether --enable-ltdl-install was given.
8511 if test "${enable_ltdl_install+set}" = set; then
8512 enableval=$enable_ltdl_install;
8518 if test x"${enable_ltdl_install-no}" != xno; then
8520 INSTALL_LTDL_FALSE='#'
8522 INSTALL_LTDL_TRUE='#'
8528 if test x"${enable_ltdl_convenience-no}" != xno; then
8529 CONVENIENCE_LTDL_TRUE=
8530 CONVENIENCE_LTDL_FALSE='#'
8532 CONVENIENCE_LTDL_TRUE='#'
8533 CONVENIENCE_LTDL_FALSE=
8537 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8540 libname_spec='lib$name'
8548 shlibpath_overrides_runpath=unknown
8550 dynamic_linker="$host_os ld.so"
8551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8552 if test "$GCC" = yes; then
8553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8555 # if the path contains ";" then we assume it to be the separator
8556 # otherwise default to the standard path separator (i.e. ":") - it is
8557 # assumed that no part of a normal pathname contains ";" but that should
8558 # okay in the real world where ";" in dirpaths is itself problematic.
8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8566 need_lib_prefix=unknown
8567 hardcode_into_libs=no
8569 # when you set need_version to no, make sure it does not cause -set_version
8570 # flags to be left without arguments
8571 need_version=unknown
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8577 shlibpath_var=LIBPATH
8579 # AIX 3 has no versioning support, so we append a major version to the name.
8580 soname_spec='${libname}${release}${shared_ext}$major'
8587 hardcode_into_libs=yes
8588 if test "$host_cpu" = ia64; then
8589 # AIX 5 supports IA64
8590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8591 shlibpath_var=LD_LIBRARY_PATH
8593 # With GCC up to 2.95.x, collect2 would create an import file
8594 # for dependence libraries. The import file would start with
8595 # the line `#! .'. This would cause the generated library to
8596 # depend on `.', always an invalid library. This was fixed in
8597 # development snapshots of GCC prior to 3.0.
8599 aix4 | aix4.[01] | aix4.[01].*)
8600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8610 # soname into executable. Probably we can add versioning support to
8611 # collect2, so additional links can be useful in future.
8612 if test "$aix_use_runtimelinking" = yes; then
8613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8614 # instead of lib<name>.a to let people know that these are not
8615 # typical AIX shared libraries.
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 # We preserve .a as extension for shared libraries through AIX4.2
8619 # and later when we are not doing run time linking.
8620 library_names_spec='${libname}${release}.a $libname.a'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LIBPATH
8628 library_names_spec='$libname.ixlibrary $libname.a'
8629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8630 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'
8634 library_names_spec='${libname}${shared_ext}'
8635 dynamic_linker="$host_os ld.so"
8636 shlibpath_var=LIBRARY_PATH
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8645 shlibpath_var=LD_LIBRARY_PATH
8646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8648 # the default ld.so.conf also contains /usr/contrib/lib and
8649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8650 # libtool to hard-code these into programs
8653 cygwin* | mingw* | pw32*)
8654 version_type=windows
8659 case $GCC,$host_os in
8660 yes,cygwin* | yes,mingw* | yes,pw32*)
8661 library_names_spec='$libname.dll.a'
8662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8663 postinstall_cmds='base_file=`basename \${file}`~
8664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8665 dldir=$destdir/`dirname \$dlpath`~
8666 test -d \$dldir || mkdir -p \$dldir~
8667 $install_prog $dir/$dlname \$dldir/$dlname~
8668 chmod a+x \$dldir/$dlname'
8669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8670 dlpath=$dir/\$dldll~
8672 shlibpath_overrides_runpath=yes
8676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8681 # MinGW DLLs use traditional 'lib' prefix
8682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8685 # It is most probably a Windows format PATH printed by
8686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8687 # path with ; separators, and with drive letters. We can handle the
8688 # drive letters (cygwin fileutils understands them), so leave them,
8689 # especially as we might pass files found there to a mingw objdump,
8690 # which wouldn't understand a cygwinified path. Ahh.
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8697 # pw32 DLLs use 'pw' prefix rather than 'lib'
8698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8707 dynamic_linker='Win32 ld.exe'
8708 # FIXME: first we should search . and the directory the executable is in
8712 darwin* | rhapsody*)
8713 dynamic_linker="$host_os dyld"
8717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8718 soname_spec='${libname}${release}${major}$shared_ext'
8719 shlibpath_overrides_runpath=yes
8720 shlibpath_var=DYLD_LIBRARY_PATH
8721 shrext_cmds='.dylib'
8722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8723 if test "$GCC" = yes; then
8724 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"`
8726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 shlibpath_var=LD_LIBRARY_PATH
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 shlibpath_overrides_runpath=no
8752 hardcode_into_libs=yes
8753 dynamic_linker='GNU ld.so'
8756 freebsd* | dragonfly*)
8757 # DragonFly does not have aout. When/if they implement a new
8758 # versioning mechanism, adjust this.
8759 if test -x /usr/bin/objformat; then
8760 objformat=`/usr/bin/objformat`
8763 freebsd[123].*) objformat=aout ;;
8767 version_type=freebsd-$objformat
8768 case $version_type in
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8779 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=yes
8784 freebsd3.[01]* | freebsdelf3.[01]*)
8785 shlibpath_overrides_runpath=yes
8786 hardcode_into_libs=yes
8788 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8789 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8790 shlibpath_overrides_runpath=no
8791 hardcode_into_libs=yes
8793 freebsd*) # from 4.6 on
8794 shlibpath_overrides_runpath=yes
8795 hardcode_into_libs=yes
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 hardcode_into_libs=yes
8810 hpux9* | hpux10* | hpux11*)
8811 # Give a soname corresponding to the major version so that dld.sl refuses to
8812 # link against other versions.
8819 hardcode_into_libs=yes
8820 dynamic_linker="$host_os dld.so"
8821 shlibpath_var=LD_LIBRARY_PATH
8822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 if test "X$HPUX_IA64_MODE" = X32; then
8826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8834 hardcode_into_libs=yes
8835 dynamic_linker="$host_os dld.sl"
8836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8845 dynamic_linker="$host_os dld.sl"
8846 shlibpath_var=SHLIB_PATH
8847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8852 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8853 postinstall_cmds='chmod 555 $lib'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8868 irix5* | irix6* | nonstopux*)
8870 nonstopux*) version_type=nonstopux ;;
8872 if test "$lt_cv_prog_gnu_ld" = yes; then
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8883 irix5* | nonstopux*)
8887 case $LD in # libtool.m4 will add one of these switches to LD
8888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8889 libsuff= shlibsuff= libmagic=32-bit;;
8890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8891 libsuff=32 shlibsuff=N32 libmagic=N32;;
8892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8894 *) libsuff= shlibsuff= libmagic=never-match;;
8898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8899 shlibpath_overrides_runpath=no
8900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8902 hardcode_into_libs=yes
8905 # No shared lib support for Linux oldld, aout, or coff.
8906 linux*oldld* | linux*aout* | linux*coff*)
8910 # This must be Linux ELF.
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 shlibpath_overrides_runpath=no
8920 # This implies no fast_install, which is unacceptable.
8921 # Some rework will be needed to allow for fast_install
8922 # before this can be enabled.
8923 hardcode_into_libs=yes
8925 # Append ld.so.conf contents to the search path
8926 if test -f /etc/ld.so.conf; then
8927 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' ' '`
8928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8931 # We used to test for /lib/ld.so.1 and disable shared libraries on
8932 # powerpc, because MkLinux only supported shared libraries with the
8933 # GNU dynamic linker. Since this was broken with cross compilers,
8934 # most powerpc-linux boxes support dynamic linking these days and
8935 # people can always --disable-shared, the test was removed, and we
8936 # assume the GNU/Linux dynamic linker is in use.
8937 dynamic_linker='GNU/Linux ld.so'
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=no
8948 hardcode_into_libs=yes
8949 dynamic_linker='GNU ld.so'
8956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8959 dynamic_linker='NetBSD (a.out) ld.so'
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 dynamic_linker='NetBSD ld.elf_so'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=yes
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8989 sys_lib_dlsearch_path_spec="/usr/lib"
8991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8994 *) need_version=no ;;
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9001 openbsd2.[89] | openbsd2.[89].*)
9002 shlibpath_overrides_runpath=no
9005 shlibpath_overrides_runpath=yes
9009 shlibpath_overrides_runpath=yes
9014 libname_spec='$name'
9017 library_names_spec='$libname${shared_ext} $libname.a'
9018 dynamic_linker='OS/2 ld.exe'
9019 shlibpath_var=LIBPATH
9022 osf3* | osf4* | osf5*)
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9042 # ldd complains unless libraries are executable
9043 postinstall_cmds='chmod +x $lib'
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 if test "$with_gnu_ld" = yes; then
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 case $host_vendor in
9065 shlibpath_overrides_runpath=no
9067 export_dynamic_flag_spec='${wl}-Blargedynsym'
9068 runpath_var=LD_RUN_PATH
9076 shlibpath_overrides_runpath=no
9077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9083 if test -d /usr/nec ;then
9085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9086 soname_spec='$libname${shared_ext}.$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9092 version_type=freebsd-elf
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 hardcode_into_libs=yes
9099 if test "$with_gnu_ld" = yes; then
9100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9101 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9104 shlibpath_overrides_runpath=yes
9107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9111 sys_lib_dlsearch_path_spec='/usr/lib'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9125 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9126 echo "${ECHO_T}$dynamic_linker" >&6; }
9127 test "$dynamic_linker" = no && can_build_shared=no
9129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9130 if test "$GCC" = yes; then
9131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9135 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9136 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9137 if test "${libltdl_cv_shlibext+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 eval libltdl_cv_shlibext=$shrext_cmds
9145 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9146 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9147 if test -n "$libltdl_cv_shlibext"; then
9149 cat >>confdefs.h <<_ACEOF
9150 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9156 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9157 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9158 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 libltdl_cv_shlibpath_var="$shlibpath_var"
9163 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9164 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9165 if test -n "$libltdl_cv_shlibpath_var"; then
9167 cat >>confdefs.h <<_ACEOF
9168 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9174 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9175 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9176 if test "${libltdl_cv_sys_search_path+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9181 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9182 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9183 if test -n "$libltdl_cv_sys_search_path"; then
9185 for dir in $libltdl_cv_sys_search_path; do
9186 if test -z "$sys_search_path"; then
9187 sys_search_path="$dir"
9189 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9193 cat >>confdefs.h <<_ACEOF
9194 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9199 { echo "$as_me:$LINENO: checking for objdir" >&5
9200 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9201 if test "${libltdl_cv_objdir+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 libltdl_cv_objdir="$objdir"
9205 if test -n "$objdir"; then
9208 rm -f .libs 2>/dev/null
9209 mkdir .libs 2>/dev/null
9210 if test -d .libs; then
9211 libltdl_cv_objdir=.libs
9213 # MS-DOS does not allow filenames that begin with a dot.
9214 libltdl_cv_objdir=_libs
9216 rmdir .libs 2>/dev/null
9220 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9221 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9223 cat >>confdefs.h <<_ACEOF
9224 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9232 # Check for command to grab the raw symbol name followed by C symbol from nm.
9233 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9234 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9235 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 # These are sane defaults that work on at least a few old systems.
9240 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9242 # Character class describing NM global symbol codes.
9243 symcode='[BCDEGRST]'
9245 # Regexp to match symbols that can be accessed directly from C.
9246 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9248 # Transform an extracted symbol line into a proper C declaration
9249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9251 # Transform an extracted symbol line into symbol name and symbol address
9252 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'"
9254 # Define system-specific variables.
9259 cygwin* | mingw* | pw32*)
9260 symcode='[ABCDGISTW]'
9262 hpux*) # Its linker distinguishes data from code symbols
9263 if test "$host_cpu" = ia64; then
9264 symcode='[ABCDEGRST]'
9266 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9267 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'"
9270 if test "$host_cpu" = ia64; then
9271 symcode='[ABCDGIRSTW]'
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273 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'"
9277 symcode='[BCDEGRST]'
9280 symcode='[BCDEGQRST]'
9291 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9299 # Handle CRLF in mingw tool chain
9303 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9307 # If we're using GNU nm, then use its standard symbol codes.
9308 case `$NM -V 2>&1` in
9309 *GNU* | *'with BFD'*)
9310 symcode='[ABCDGIRSTW]' ;;
9313 # Try without a prefix undercore, then with it.
9314 for ac_symprfx in "" "_"; do
9316 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9317 symxfrm="\\1 $ac_symprfx\\2 \\2"
9319 # Write the raw and C identifiers.
9320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9322 # Check to see that the pipe works correctly.
9326 cat > conftest.$ac_ext <<EOF
9331 void nm_test_func(){}
9335 int main(){nm_test_var='a';nm_test_func();return(0);}
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339 (eval $ac_compile) 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; then
9343 # Now try to grab the symbols.
9345 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9346 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && test -s "$nlist"; then
9350 # Try sorting and uniquifying the output.
9351 if sort "$nlist" | uniq > "$nlist"T; then
9352 mv -f "$nlist"T "$nlist"
9357 # Make sure that we snagged all the symbols we need.
9358 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9359 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9360 cat <<EOF > conftest.$ac_ext
9366 # Now generate the symbol file.
9367 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9369 cat <<EOF >> conftest.$ac_ext
9370 #if defined (__STDC__) && __STDC__
9371 # define lt_ptr_t void *
9373 # define lt_ptr_t char *
9377 /* The mapping between symbol names and symbols. */
9382 lt_preloaded_symbols[] =
9385 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9386 cat <<\EOF >> conftest.$ac_ext
9394 # Now try linking the two files.
9395 mv conftest.$ac_objext conftstm.$ac_objext
9396 lt_save_LIBS="$LIBS"
9397 lt_save_CFLAGS="$CFLAGS"
9398 LIBS="conftstm.$ac_objext"
9399 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9407 LIBS="$lt_save_LIBS"
9408 CFLAGS="$lt_save_CFLAGS"
9410 echo "cannot find nm_test_func in $nlist" >&5
9413 echo "cannot find nm_test_var in $nlist" >&5
9416 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9419 echo "$progname: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9422 rm -f conftest* conftst*
9424 # Do not use the global_symbol_pipe unless it works.
9425 if test "$pipe_works" = yes; then
9428 lt_cv_sys_global_symbol_pipe=
9434 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9435 lt_cv_sys_global_symbol_to_cdecl=
9437 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9438 { echo "$as_me:$LINENO: result: failed" >&5
9439 echo "${ECHO_T}failed" >&6; }
9441 { echo "$as_me:$LINENO: result: ok" >&5
9442 echo "${ECHO_T}ok" >&6; }
9446 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9447 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9448 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9452 libltdl_cv_preloaded_symbols=yes
9454 libltdl_cv_preloaded_symbols=no
9458 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9459 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9460 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_PRELOADED_SYMBOLS 1
9471 ac_cpp='$CPP $CPPFLAGS'
9472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9477 { echo "$as_me:$LINENO: checking for shl_load" >&5
9478 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9479 if test "${ac_cv_func_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define shl_load innocuous_shl_load
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char shl_load (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9498 # include <limits.h>
9500 # include <assert.h>
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9512 /* The GNU C library defines this for functions which it implements
9513 to always fail with ENOSYS. Some functions are actually named
9514 something starting with __ and the normal name is an alias. */
9515 #if defined __stub_shl_load || defined __stub___shl_load
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_link") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_try") 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_try") 2>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_func_shl_load=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_shl_load=no
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9573 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9574 if test $ac_cv_func_shl_load = yes; then
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_SHL_LOAD 1
9581 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9582 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9583 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_check_lib_save_LIBS=$LIBS
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1 >conftest.err
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9625 { (case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_try") 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_try") 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_cv_lib_dld_shl_load=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_lib_dld_shl_load=no
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 LIBS=$ac_check_lib_save_LIBS
9656 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9657 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9658 if test $ac_cv_lib_dld_shl_load = yes; then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_SHL_LOAD 1
9664 LIBADD_DL="$LIBADD_DL -ldld"
9666 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 ac_check_lib_save_LIBS=$LIBS
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9680 /* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_lib_dl_dlopen=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_lib_dl_dlopen=no
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9743 if test $ac_cv_lib_dl_dlopen = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_LIBDL 1
9749 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9804 cat >>confdefs.h <<\_ACEOF
9805 #define HAVE_LIBDL 1
9807 libltdl_cv_func_dlopen="yes"
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_check_lib_save_LIBS=$LIBS
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_lib_svld_dlopen=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_svld_dlopen=no
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9887 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9888 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9889 if test $ac_cv_lib_svld_dlopen = yes; then
9891 cat >>confdefs.h <<\_ACEOF
9892 #define HAVE_LIBDL 1
9895 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9897 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 ac_check_lib_save_LIBS=$LIBS
9904 cat >conftest.$ac_ext <<_ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9935 grep -v '^ *+' conftest.er1 >conftest.err
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9941 { (case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_try") 2>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_try") 2>&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_lib_dld_dld_link=yes
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_cv_lib_dld_dld_link=no
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9974 if test $ac_cv_lib_dld_dld_link = yes; then
9976 cat >>confdefs.h <<\_ACEOF
9980 LIBADD_DL="$LIBADD_DL -ldld"
9982 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9983 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9984 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9995 #define _dyld_func_lookup innocuous__dyld_func_lookup
9997 /* System header to define __stub macros and hopefully few prototypes,
9998 which can conflict with char _dyld_func_lookup (); below.
9999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10000 <limits.h> exists even on freestanding compilers. */
10003 # include <limits.h>
10005 # include <assert.h>
10008 #undef _dyld_func_lookup
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10016 char _dyld_func_lookup ();
10017 /* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10027 return _dyld_func_lookup ();
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_func__dyld_func_lookup=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_func__dyld_func_lookup=no
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10077 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10078 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10079 if test $ac_cv_func__dyld_func_lookup = yes; then
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_DYLD 1
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10108 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10110 lt_save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBADD_DL"
10113 for ac_func in dlerror
10115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10129 #define $ac_func innocuous_$ac_func
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func (); below.
10133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134 <limits.h> exists even on freestanding compilers. */
10137 # include <limits.h>
10139 # include <assert.h>
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10151 /* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154 #if defined __stub_$ac_func || defined __stub___$ac_func
10161 return $ac_func ();
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_try") 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 eval "$as_ac_var=yes"
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 eval "$as_ac_var=no"
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10211 ac_res=`eval echo '${'$as_ac_var'}'`
10212 { echo "$as_me:$LINENO: result: $ac_res" >&5
10213 echo "${ECHO_T}$ac_res" >&6; }
10214 if test `eval echo '${'$as_ac_var'}'` = yes; then
10215 cat >>confdefs.h <<_ACEOF
10216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 LIBS="$lt_save_LIBS"
10225 ac_cpp='$CPP $CPPFLAGS'
10226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10232 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10233 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10234 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 ac_cv_sys_symbol_underscore=no
10238 cat > conftest.$ac_ext <<EOF
10239 void nm_test_func(){}
10240 int main(){nm_test_func;return 0;}
10242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; then
10247 # Now try to grab the symbols.
10248 ac_nlist=conftest.nm
10249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && test -s "$ac_nlist"; then
10254 # See whether the symbols have a leading underscore.
10255 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10256 ac_cv_sys_symbol_underscore=yes
10258 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10261 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10265 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10268 echo "configure: failed program was:" >&5
10274 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10275 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10278 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10279 if test x"$libltdl_cv_func_dlopen" = xyes ||
10280 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10281 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10282 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10283 if test "${libltdl_cv_need_uscore+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 libltdl_cv_need_uscore=unknown
10288 LIBS="$LIBS $LIBADD_DL"
10289 if test "$cross_compiling" = yes; then :
10290 libltdl_cv_need_uscore=cross
10292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293 lt_status=$lt_dlunknown
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10305 # define LT_DLGLOBAL RTLD_GLOBAL
10308 # define LT_DLGLOBAL DL_GLOBAL
10310 # define LT_DLGLOBAL 0
10314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315 find out it does not work in some platform. */
10316 #ifndef LT_DLLAZY_OR_NOW
10318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10321 # define LT_DLLAZY_OR_NOW DL_LAZY
10324 # define LT_DLLAZY_OR_NOW RTLD_NOW
10327 # define LT_DLLAZY_OR_NOW DL_NOW
10329 # define LT_DLLAZY_OR_NOW 0
10337 extern "C" void exit (int);
10340 void fnord() { int i=42;}
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350 /* dlclose (self); */
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10363 (./conftest; exit; ) >&5 2>/dev/null
10365 case x$lt_status in
10366 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10367 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10368 x$lt_dlunknown|x*) ;;
10371 # compilation failed
10380 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10381 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10385 if test x"$libltdl_cv_need_uscore" = xyes; then
10387 cat >>confdefs.h <<\_ACEOF
10388 #define NEED_USCORE 1
10394 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10395 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10396 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 # PORTME does your system automatically load deplibs for dlopen?
10400 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10401 # For now, we just catch OSes we know something about -- in the
10402 # future, we'll try test this programmatically.
10403 libltdl_cv_sys_dlopen_deplibs=unknown
10405 aix3*|aix4.1.*|aix4.2.*)
10406 # Unknown whether this is true for these versions of AIX, but
10407 # we want this `case' here to explicitly catch those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10411 libltdl_cv_sys_dlopen_deplibs=yes
10414 # Assuming the user has installed a libdl from somewhere, this is true
10415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10416 libltdl_cv_sys_dlopen_deplibs=yes
10418 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10419 # GNU and its variants, using gnu ld.so (Glibc)
10420 libltdl_cv_sys_dlopen_deplibs=yes
10423 libltdl_cv_sys_dlopen_deplibs=yes
10426 libltdl_cv_sys_dlopen_deplibs=yes
10428 irix[12345]*|irix6.[01]*)
10429 # Catch all versions of IRIX before 6.2, and indicate that we don't
10430 # know how it worked for any of those versions.
10431 libltdl_cv_sys_dlopen_deplibs=unknown
10434 # The case above catches anything before 6.2, and it's known that
10435 # at 6.2 and later dlopen does load deplibs.
10436 libltdl_cv_sys_dlopen_deplibs=yes
10439 libltdl_cv_sys_dlopen_deplibs=yes
10442 libltdl_cv_sys_dlopen_deplibs=yes
10445 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10446 # it did *not* use an RPATH in a shared library to find objects the
10447 # library depends on, so we explicitly say `no'.
10448 libltdl_cv_sys_dlopen_deplibs=no
10450 osf5.0|osf5.0a|osf5.1)
10451 # dlopen *does* load deplibs and with the right loader patch applied
10452 # it even uses RPATH in a shared library to search for shared objects
10453 # that the library depends on, but there's no easy way to know if that
10454 # patch is installed. Since this is the case, all we can really
10455 # say is unknown -- it depends on the patch being installed. If
10456 # it is, this changes to `yes'. Without it, it would be `no'.
10457 libltdl_cv_sys_dlopen_deplibs=unknown
10460 # the two cases above should catch all versions of osf <= 5.1. Read
10461 # the comments above for what we know about them.
10462 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10463 # is used to find them so we can finally say `yes'.
10464 libltdl_cv_sys_dlopen_deplibs=yes
10467 libltdl_cv_sys_dlopen_deplibs=yes
10469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10470 libltdl_cv_sys_dlopen_deplibs=yes
10475 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10476 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10477 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define LTDL_DLOPEN_DEPLIBS 1
10486 for ac_header in argz.h
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497 echo "${ECHO_T}$ac_res" >&6; }
10499 # Is the header compilable?
10500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #include <$ac_header>
10511 rm -f conftest.$ac_objext
10512 if { (ac_try="$ac_compile"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526 { (case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_try") 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_header_compiler=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_header_compiler=no
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555 echo "${ECHO_T}$ac_header_compiler" >&6; }
10557 # Is the header present?
10558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <$ac_header>
10568 if { (ac_try="$ac_cpp conftest.$ac_ext"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_c_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10590 if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_preproc=no
10599 rm -f conftest.err conftest.$ac_ext
10600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10601 echo "${ECHO_T}$ac_header_preproc" >&6; }
10603 # So? What about this header?
10604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10610 ac_header_preproc=yes
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10626 ## ------------------------------------ ##
10627 ## Report this to http://llvm.org/bugs/ ##
10628 ## ------------------------------------ ##
10630 ) | sed "s/^/$as_me: WARNING: /" >&2
10633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 eval "$as_ac_Header=\$ac_header_preproc"
10640 ac_res=`eval echo '${'$as_ac_Header'}'`
10641 { echo "$as_me:$LINENO: result: $ac_res" >&5
10642 echo "${ECHO_T}$ac_res" >&6; }
10645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10655 { echo "$as_me:$LINENO: checking for error_t" >&5
10656 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10657 if test "${ac_cv_type_error_t+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10670 typedef error_t ac__type_new_;
10674 if ((ac__type_new_ *) 0)
10676 if (sizeof (ac__type_new_))
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_type_error_t=yes
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_type_error_t=no
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10727 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10728 if test $ac_cv_type_error_t = yes; then
10730 cat >>confdefs.h <<_ACEOF
10731 #define HAVE_ERROR_T 1
10737 cat >>confdefs.h <<\_ACEOF
10738 #define error_t int
10749 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765 #define $ac_func innocuous_$ac_func
10767 /* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char $ac_func (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10773 # include <limits.h>
10775 # include <assert.h>
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10787 /* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790 #if defined __stub_$ac_func || defined __stub___$ac_func
10797 return $ac_func ();
10802 rm -f conftest.$ac_objext conftest$ac_exeext
10803 if { (ac_try="$ac_link"
10804 case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10811 grep -v '^ *+' conftest.er1 >conftest.err
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_try") 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 eval "$as_ac_var=no"
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10847 ac_res=`eval echo '${'$as_ac_var'}'`
10848 { echo "$as_me:$LINENO: result: $ac_res" >&5
10849 echo "${ECHO_T}$ac_res" >&6; }
10850 if test `eval echo '${'$as_ac_var'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10885 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 ac_res=`eval echo '${'$as_ac_Header'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10899 # Is the header compilable?
10900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 #include <$ac_header>
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_try") 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_header_compiler=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_header_compiler=no
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10955 echo "${ECHO_T}$ac_header_compiler" >&6; }
10957 # Is the header present?
10958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10960 cat >conftest.$ac_ext <<_ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 #include <$ac_header>
10968 if { (ac_try="$ac_cpp conftest.$ac_ext"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null; then
10981 if test -s conftest.err; then
10982 ac_cpp_err=$ac_c_preproc_warn_flag
10983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 if test -z "$ac_cpp_err"; then
10991 ac_header_preproc=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_preproc=no
10999 rm -f conftest.err conftest.$ac_ext
11000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11001 echo "${ECHO_T}$ac_header_preproc" >&6; }
11003 # So? What about this header?
11004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11010 ac_header_preproc=yes
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11026 ## ------------------------------------ ##
11027 ## Report this to http://llvm.org/bugs/ ##
11028 ## ------------------------------------ ##
11030 ) | sed "s/^/$as_me: WARNING: /" >&2
11033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 eval "$as_ac_Header=\$ac_header_preproc"
11040 ac_res=`eval echo '${'$as_ac_Header'}'`
11041 { echo "$as_me:$LINENO: result: $ac_res" >&5
11042 echo "${ECHO_T}$ac_res" >&6; }
11045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11046 cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11058 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069 echo "${ECHO_T}$ac_res" >&6; }
11071 # Is the header compilable?
11072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11081 #include <$ac_header>
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_header_compiler=no
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <$ac_header>
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_preproc=no
11171 rm -f conftest.err conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 echo "${ECHO_T}$ac_header_preproc" >&6; }
11175 # So? What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11198 ## ------------------------------------ ##
11199 ## Report this to http://llvm.org/bugs/ ##
11200 ## ------------------------------------ ##
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 eval "$as_ac_Header=\$ac_header_preproc"
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11228 for ac_header in string.h strings.h
11230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11241 # Is the header compilable?
11242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 #include <$ac_header>
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_try") 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_header_compiler=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_header_compiler=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11297 echo "${ECHO_T}$ac_header_compiler" >&6; }
11299 # Is the header present?
11300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <$ac_header>
11310 if { (ac_try="$ac_cpp conftest.$ac_ext"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 if test -z "$ac_cpp_err"; then
11333 ac_header_preproc=yes
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_preproc=no
11341 rm -f conftest.err conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343 echo "${ECHO_T}$ac_header_preproc" >&6; }
11345 # So? What about this header?
11346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352 ac_header_preproc=yes
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368 ## ------------------------------------ ##
11369 ## Report this to http://llvm.org/bugs/ ##
11370 ## ------------------------------------ ##
11372 ) | sed "s/^/$as_me: WARNING: /" >&2
11375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 eval "$as_ac_Header=\$ac_header_preproc"
11382 ac_res=`eval echo '${'$as_ac_Header'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11388 cat >>confdefs.h <<_ACEOF
11389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11399 for ac_func in strchr index
11401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 cat >conftest.$ac_ext <<_ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11415 #define $ac_func innocuous_$ac_func
11417 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func (); below.
11419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11420 <limits.h> exists even on freestanding compilers. */
11423 # include <limits.h>
11425 # include <assert.h>
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11437 /* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 return $ac_func ();
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 eval "$as_ac_var=yes"
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 eval "$as_ac_var=no"
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11497 ac_res=`eval echo '${'$as_ac_var'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11500 if test `eval echo '${'$as_ac_var'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510 for ac_func in strrchr rindex
11512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11526 #define $ac_func innocuous_$ac_func
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func (); below.
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 <limits.h> exists even on freestanding compilers. */
11534 # include <limits.h>
11536 # include <assert.h>
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined __stub_$ac_func || defined __stub___$ac_func
11558 return $ac_func ();
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (ac_try="$ac_link"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_link") 2>conftest.er1
11572 grep -v '^ *+' conftest.er1 >conftest.err
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_try") 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 eval "$as_ac_var=yes"
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 eval "$as_ac_var=no"
11605 rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11608 ac_res=`eval echo '${'$as_ac_var'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11611 if test `eval echo '${'$as_ac_var'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 for ac_func in memcpy bcopy
11623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11637 #define $ac_func innocuous_$ac_func
11639 /* System header to define __stub macros and hopefully few prototypes,
11640 which can conflict with char $ac_func (); below.
11641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642 <limits.h> exists even on freestanding compilers. */
11645 # include <limits.h>
11647 # include <assert.h>
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11659 /* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 return $ac_func ();
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_try") 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 eval "$as_ac_var=yes"
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 eval "$as_ac_var=no"
11716 rm -f core conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 ac_res=`eval echo '${'$as_ac_var'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11722 if test `eval echo '${'$as_ac_var'}'` = yes; then
11723 cat >>confdefs.h <<_ACEOF
11724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732 for ac_func in memmove strcmp
11734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11748 #define $ac_func innocuous_$ac_func
11750 /* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char $ac_func (); below.
11752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 <limits.h> exists even on freestanding compilers. */
11756 # include <limits.h>
11758 # include <assert.h>
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11770 /* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 return $ac_func ();
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 eval "$as_ac_var=no"
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11830 ac_res=`eval echo '${'$as_ac_var'}'`
11831 { echo "$as_me:$LINENO: result: $ac_res" >&5
11832 echo "${ECHO_T}$ac_res" >&6; }
11833 if test `eval echo '${'$as_ac_var'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844 for ac_func in closedir opendir readdir
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860 #define $ac_func innocuous_$ac_func
11862 /* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11868 # include <limits.h>
11870 # include <assert.h>
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined __stub_$ac_func || defined __stub___$ac_func
11892 return $ac_func ();
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 eval "$as_ac_var=no"
11939 rm -f core conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11942 ac_res=`eval echo '${'$as_ac_var'}'`
11943 { echo "$as_me:$LINENO: result: $ac_res" >&5
11944 echo "${ECHO_T}$ac_res" >&6; }
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11956 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11969 if test "$GCC" != "yes" && test "$ICC" != "yes"
11971 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11972 echo "$as_me: error: gcc|icc required but not found" >&2;}
11973 { (exit 1); exit 1; }; }
11976 if test "$GXX" != "yes" && test "$IXX" != "yes"
11978 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11979 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11980 { (exit 1); exit 1; }; }
11983 if test "$GCC" = "yes"
11985 cat >conftest.$ac_ext <<_ACEOF
11986 #if !defined(__GNUC__) || __GNUC__ < 3
11987 #error Unsupported GCC version
11991 rm -f conftest.$ac_objext
11992 if { (ac_try="$ac_compile"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_compile") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12031 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12032 { (exit 1); exit 1; }; }
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 if test -z "$llvm_cv_gnu_make_command"
12040 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12041 echo "$as_me: error: GNU Make required but not found" >&2;}
12042 { (exit 1); exit 1; }; }
12045 { echo "$as_me:$LINENO: result: ok" >&5
12046 echo "${ECHO_T}ok" >&6; }
12048 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12049 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12050 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12052 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12054 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12056 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12057 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12061 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12062 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12063 if test "${ac_cv_lib_m_sin+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 ac_check_lib_save_LIBS=$LIBS
12068 cat >conftest.$ac_ext <<_ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_lib_m_sin=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12137 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12138 if test $ac_cv_lib_m_sin = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140 #define HAVE_LIBM 1
12147 if test "$llvm_cv_os_type" = "MingW" ; then
12149 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12150 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-limagehlp $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_imagehlp_main=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_lib_imagehlp_main=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12219 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12220 if test $ac_cv_lib_imagehlp_main = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBIMAGEHLP 1
12225 LIBS="-limagehlp $LIBS"
12230 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12231 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12232 if test "${ac_cv_lib_psapi_main+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lpsapi $LIBS"
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (ac_try="$ac_link"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_link") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_lib_psapi_main=yes
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_cv_lib_psapi_main=no
12295 rm -f core conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12299 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12300 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12301 if test $ac_cv_lib_psapi_main = yes; then
12302 cat >>confdefs.h <<_ACEOF
12303 #define HAVE_LIBPSAPI 1
12306 LIBS="-lpsapi $LIBS"
12312 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12313 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12314 if test "${ac_cv_search_dlopen+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_func_search_save_LIBS=$LIBS
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12340 for ac_lib in '' dl; do
12341 if test -z "$ac_lib"; then
12342 ac_res="none required"
12345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362 { (case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_try") 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_search_dlopen=$ac_res
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12389 rm -f core conftest.err conftest.$ac_objext \
12391 if test "${ac_cv_search_dlopen+set}" = set; then
12395 if test "${ac_cv_search_dlopen+set}" = set; then
12398 ac_cv_search_dlopen=no
12400 rm conftest.$ac_ext
12401 LIBS=$ac_func_search_save_LIBS
12403 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12404 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12405 ac_res=$ac_cv_search_dlopen
12406 if test "$ac_res" != no; then
12407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12409 cat >>confdefs.h <<\_ACEOF
12410 #define HAVE_DLOPEN 1
12414 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12415 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12419 if test "$llvm_cv_enable_libffi" = "yes" ; then
12420 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12421 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12422 if test "${ac_cv_search_ffi_call+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 ac_func_search_save_LIBS=$LIBS
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12443 return ffi_call ();
12448 for ac_lib in '' ffi; do
12449 if test -z "$ac_lib"; then
12450 ac_res="none required"
12453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (ac_try="$ac_link"
12457 case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_link") 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12470 { (case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_try") 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_search_ffi_call=$ac_res
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12497 rm -f core conftest.err conftest.$ac_objext \
12499 if test "${ac_cv_search_ffi_call+set}" = set; then
12503 if test "${ac_cv_search_ffi_call+set}" = set; then
12506 ac_cv_search_ffi_call=no
12508 rm conftest.$ac_ext
12509 LIBS=$ac_func_search_save_LIBS
12511 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12512 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12513 ac_res=$ac_cv_search_ffi_call
12514 if test "$ac_res" != no; then
12515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_FFI_CALL 1
12522 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12523 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12524 { (exit 1); exit 1; }; }
12529 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12530 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12531 if test "${ac_cv_search_mallinfo+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 ac_func_search_save_LIBS=$LIBS
12535 cat >conftest.$ac_ext <<_ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12552 return mallinfo ();
12557 for ac_lib in '' malloc; do
12558 if test -z "$ac_lib"; then
12559 ac_res="none required"
12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_try") 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 ac_cv_search_mallinfo=$ac_res
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12606 rm -f core conftest.err conftest.$ac_objext \
12608 if test "${ac_cv_search_mallinfo+set}" = set; then
12612 if test "${ac_cv_search_mallinfo+set}" = set; then
12615 ac_cv_search_mallinfo=no
12617 rm conftest.$ac_ext
12618 LIBS=$ac_func_search_save_LIBS
12620 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12621 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12622 ac_res=$ac_cv_search_mallinfo
12623 if test "$ac_res" != no; then
12624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_MALLINFO 1
12633 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12635 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12636 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12637 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-lpthread $LIBS"
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12655 char pthread_mutex_init ();
12659 return pthread_mutex_init ();
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_link") 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest$ac_exeext'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_pthread_pthread_mutex_init=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_pthread_pthread_mutex_init=no
12706 rm -f core conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12708 LIBS=$ac_check_lib_save_LIBS
12710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12712 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714 #define HAVE_LIBPTHREAD 1
12717 LIBS="-lpthread $LIBS"
12721 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12722 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12723 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_func_search_save_LIBS=$LIBS
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12740 char pthread_mutex_lock ();
12744 return pthread_mutex_lock ();
12749 for ac_lib in '' pthread; do
12750 if test -z "$ac_lib"; then
12751 ac_res="none required"
12754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_search_pthread_mutex_lock=$ac_res
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12798 rm -f core conftest.err conftest.$ac_objext \
12800 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12804 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12807 ac_cv_search_pthread_mutex_lock=no
12809 rm conftest.$ac_ext
12810 LIBS=$ac_func_search_save_LIBS
12812 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12813 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12814 ac_res=$ac_cv_search_pthread_mutex_lock
12815 if test "$ac_res" != no; then
12816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12818 cat >>confdefs.h <<\_ACEOF
12819 #define HAVE_PTHREAD_MUTEX_LOCK 1
12824 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12825 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12826 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 ac_func_search_save_LIBS=$LIBS
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 /* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12843 char pthread_rwlock_init ();
12847 return pthread_rwlock_init ();
12852 for ac_lib in '' pthread; do
12853 if test -z "$ac_lib"; then
12854 ac_res="none required"
12857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_search_pthread_rwlock_init=$ac_res
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f core conftest.err conftest.$ac_objext \
12903 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12907 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12910 ac_cv_search_pthread_rwlock_init=no
12912 rm conftest.$ac_ext
12913 LIBS=$ac_func_search_save_LIBS
12915 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12916 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12917 ac_res=$ac_cv_search_pthread_rwlock_init
12918 if test "$ac_res" != no; then
12919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_PTHREAD_RWLOCK_INIT 1
12927 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12928 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12929 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 ac_func_search_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12946 char pthread_getspecific ();
12950 return pthread_getspecific ();
12955 for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_search_pthread_getspecific=$ac_res
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13004 rm -f core conftest.err conftest.$ac_objext \
13006 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13010 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13013 ac_cv_search_pthread_getspecific=no
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13018 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13019 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13020 ac_res=$ac_cv_search_pthread_getspecific
13021 if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_PTHREAD_GETSPECIFIC 1
13033 # Check whether --with-udis86 was given.
13034 if test "${with_udis86+set}" = set; then
13035 withval=$with_udis86;
13040 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13043 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13044 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13045 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 ac_check_lib_save_LIBS=$LIBS
13049 LIBS="-ludis86 $LIBS"
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_lib_udis86_ud_init=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_cv_lib_udis86_ud_init=no
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13118 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13119 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13120 if test $ac_cv_lib_udis86_ud_init = yes; then
13121 cat >>confdefs.h <<_ACEOF
13122 #define HAVE_LIBUDIS86 1
13125 LIBS="-ludis86 $LIBS"
13129 echo "Error! You need to have libudis86 around."
13141 cat >>confdefs.h <<_ACEOF
13142 #define USE_UDIS86 $USE_UDIS86
13147 # Check whether --with-oprofile was given.
13148 if test "${with_oprofile+set}" = set; then
13149 withval=$with_oprofile;
13153 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13154 no) llvm_cv_oppath=
13157 *) llvm_cv_oppath="${withval}/lib/oprofile"
13158 CPPFLAGS="-I${withval}/include";;
13160 case $llvm_cv_os_type in
13162 if test -n "$llvm_cv_oppath" ; then
13163 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13164 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13165 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13166 if test "${ac_cv_search_bfd_init+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 ac_func_search_save_LIBS=$LIBS
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13187 return bfd_init ();
13192 for ac_lib in '' bfd; do
13193 if test -z "$ac_lib"; then
13194 ac_res="none required"
13197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 ac_cv_search_bfd_init=$ac_res
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13241 rm -f core conftest.err conftest.$ac_objext \
13243 if test "${ac_cv_search_bfd_init+set}" = set; then
13247 if test "${ac_cv_search_bfd_init+set}" = set; then
13250 ac_cv_search_bfd_init=no
13252 rm conftest.$ac_ext
13253 LIBS=$ac_func_search_save_LIBS
13255 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13256 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13257 ac_res=$ac_cv_search_bfd_init
13258 if test "$ac_res" != no; then
13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13263 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13264 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13265 if test "${ac_cv_search_op_open_agent+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 ac_func_search_save_LIBS=$LIBS
13269 cat >conftest.$ac_ext <<_ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13282 char op_open_agent ();
13286 return op_open_agent ();
13291 for ac_lib in '' opagent; do
13292 if test -z "$ac_lib"; then
13293 ac_res="none required"
13296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_link") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13313 { (case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_try") 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_search_op_open_agent=$ac_res
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13340 rm -f core conftest.err conftest.$ac_objext \
13342 if test "${ac_cv_search_op_open_agent+set}" = set; then
13346 if test "${ac_cv_search_op_open_agent+set}" = set; then
13349 ac_cv_search_op_open_agent=no
13351 rm conftest.$ac_ext
13352 LIBS=$ac_func_search_save_LIBS
13354 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13355 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13356 ac_res=$ac_cv_search_op_open_agent
13357 if test "$ac_res" != no; then
13358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362 echo "Error! You need to have libopagent around."
13367 if test "${ac_cv_header_opagent_h+set}" = set; then
13368 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13369 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13370 if test "${ac_cv_header_opagent_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13376 # Is the header compilable?
13377 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13378 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 #include <opagent.h>
13388 rm -f conftest.$ac_objext
13389 if { (ac_try="$ac_compile"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_compile") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 ac_header_compiler=yes
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ac_header_compiler=no
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13432 echo "${ECHO_T}$ac_header_compiler" >&6; }
13434 # Is the header present?
13435 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13436 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 #include <opagent.h>
13445 if { (ac_try="$ac_cpp conftest.$ac_ext"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
13460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467 if test -z "$ac_cpp_err"; then
13468 ac_header_preproc=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_header_preproc=no
13476 rm -f conftest.err conftest.$ac_ext
13477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13478 echo "${ECHO_T}$ac_header_preproc" >&6; }
13480 # So? What about this header?
13481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13483 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13484 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13486 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13487 ac_header_preproc=yes
13490 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13491 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13493 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13494 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13495 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13497 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13499 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13501 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13503 ## ------------------------------------ ##
13504 ## Report this to http://llvm.org/bugs/ ##
13505 ## ------------------------------------ ##
13507 ) | sed "s/^/$as_me: WARNING: /" >&2
13510 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13511 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13512 if test "${ac_cv_header_opagent_h+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 ac_cv_header_opagent_h=$ac_header_preproc
13517 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13518 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13521 if test $ac_cv_header_opagent_h = yes; then
13525 echo "Error! You need to have opagent.h around."
13533 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13534 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13535 { (exit 1); exit 1; }; } ;;
13546 cat >>confdefs.h <<_ACEOF
13547 #define LLVM_USE_OPROFILE $USE_OPROFILE
13552 # Check whether --with-intel-jitevents was given.
13553 if test "${with_intel_jitevents+set}" = set; then
13554 withval=$with_intel_jitevents;
13555 case $llvm_cv_os_type in
13556 Linux|Win32|Cygwin|MingW) ;;
13558 { { echo "$as_me:$LINENO: error:
13559 Intel JIT API support is available on Linux and Windows only.\"" >&5
13560 echo "$as_me: error:
13561 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13562 { (exit 1); exit 1; }; } ;;
13565 USE_INTEL_JITEVENTS=1
13567 case "$llvm_cv_target_arch" in
13568 x86) llvm_intel_jitevents_archdir="lib32";;
13569 x86_64) llvm_intel_jitevents_archdir="lib64";;
13570 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13573 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13574 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13576 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13577 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13584 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13585 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13587 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13588 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13589 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_func_search_save_LIBS=$LIBS
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13600 /* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13606 char iJIT_IsProfilingActive ();
13610 return iJIT_IsProfilingActive ();
13615 for ac_lib in '' jitprofiling; do
13616 if test -z "$ac_lib"; then
13617 ac_res="none required"
13620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_link") 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13637 { (case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_try") 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest$ac_exeext'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13664 rm -f core conftest.err conftest.$ac_objext \
13666 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13670 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13673 ac_cv_search_iJIT_IsProfilingActive=no
13675 rm conftest.$ac_ext
13676 LIBS=$ac_func_search_save_LIBS
13678 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13679 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13680 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13681 if test "$ac_res" != no; then
13682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13686 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13691 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13692 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13693 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13694 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13698 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13700 # Is the header compilable?
13701 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13702 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13710 #include <jitprofiling.h>
13712 rm -f conftest.$ac_objext
13713 if { (ac_try="$ac_compile"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_header_compiler=yes
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ac_header_compiler=no
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6; }
13758 # Is the header present?
13759 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13760 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <jitprofiling.h>
13769 if { (ac_try="$ac_cpp conftest.$ac_ext"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } >/dev/null; then
13782 if test -s conftest.err; then
13783 ac_cpp_err=$ac_c_preproc_warn_flag
13784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13791 if test -z "$ac_cpp_err"; then
13792 ac_header_preproc=yes
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 ac_header_preproc=no
13800 rm -f conftest.err conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13802 echo "${ECHO_T}$ac_header_preproc" >&6; }
13804 # So? What about this header?
13805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13807 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13808 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13810 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13811 ac_header_preproc=yes
13814 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13815 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13817 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13819 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13821 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13823 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13825 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13827 ## ------------------------------------ ##
13828 ## Report this to http://llvm.org/bugs/ ##
13829 ## ------------------------------------ ##
13831 ) | sed "s/^/$as_me: WARNING: /" >&2
13834 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13835 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13836 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 ac_cv_header_jitprofiling_h=$ac_header_preproc
13841 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13842 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13845 if test $ac_cv_header_jitprofiling_h = yes; then
13849 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13859 USE_INTEL_JITEVENTS=0
13865 cat >>confdefs.h <<_ACEOF
13866 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13870 for ac_prog in xml2-config
13872 # Extract the first word of "$ac_prog", so it can be a program name with args.
13873 set dummy $ac_prog; ac_word=$2
13874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13876 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 if test -n "$XML2CONFIG"; then
13880 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_XML2CONFIG="$ac_prog"
13890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13899 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13900 if test -n "$XML2CONFIG"; then
13901 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13902 echo "${ECHO_T}$XML2CONFIG" >&6; }
13904 { echo "$as_me:$LINENO: result: no" >&5
13905 echo "${ECHO_T}no" >&6; }
13909 test -n "$XML2CONFIG" && break
13913 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13914 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13915 if test "x$XML2CONFIG" = "x"; then
13916 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13917 echo "${ECHO_T}xml2-config not found" >&6; }
13919 LIBXML2_INC=`$XML2CONFIG --cflags`
13920 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13921 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13922 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13923 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13924 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 ac_check_lib_save_LIBS=$LIBS
13928 LIBS="-lxml2 $LIBS"
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13942 char xmlReadFile ();
13946 return xmlReadFile ();
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (ac_try="$ac_link"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_link") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 ac_cv_lib_xml2_xmlReadFile=yes
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 ac_cv_lib_xml2_xmlReadFile=no
13993 rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13995 LIBS=$ac_check_lib_save_LIBS
13997 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13998 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13999 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14001 cat >>confdefs.h <<\_ACEOF
14002 #define CLANG_HAVE_LIBXML 1
14005 LIBXML2_LIBS="-lxml2"
14018 ac_header_dirent=no
14019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14020 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14021 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14022 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 #include <sys/types.h>
14044 rm -f conftest.$ac_objext
14045 if { (ac_try="$ac_compile"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_compile") 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 eval "$as_ac_Header=yes"
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 eval "$as_ac_Header=no"
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 ac_res=`eval echo '${'$as_ac_Header'}'`
14089 { echo "$as_me:$LINENO: result: $ac_res" >&5
14090 echo "${ECHO_T}$ac_res" >&6; }
14091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14096 ac_header_dirent=$ac_hdr; break
14100 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14101 if test $ac_header_dirent = dirent.h; then
14102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14104 if test "${ac_cv_search_opendir+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 ac_func_search_save_LIBS=$LIBS
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14130 for ac_lib in '' dir; do
14131 if test -z "$ac_lib"; then
14132 ac_res="none required"
14135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_link") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_search_opendir=$ac_res
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14179 rm -f core conftest.err conftest.$ac_objext \
14181 if test "${ac_cv_search_opendir+set}" = set; then
14185 if test "${ac_cv_search_opendir+set}" = set; then
14188 ac_cv_search_opendir=no
14190 rm conftest.$ac_ext
14191 LIBS=$ac_func_search_save_LIBS
14193 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14194 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14195 ac_res=$ac_cv_search_opendir
14196 if test "$ac_res" != no; then
14197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14202 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14203 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14204 if test "${ac_cv_search_opendir+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 ac_func_search_save_LIBS=$LIBS
14208 cat >conftest.$ac_ext <<_ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14215 /* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
14230 for ac_lib in '' x; do
14231 if test -z "$ac_lib"; then
14232 ac_res="none required"
14235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (ac_try="$ac_link"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_link") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_search_opendir=$ac_res
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14279 rm -f core conftest.err conftest.$ac_objext \
14281 if test "${ac_cv_search_opendir+set}" = set; then
14285 if test "${ac_cv_search_opendir+set}" = set; then
14288 ac_cv_search_opendir=no
14290 rm conftest.$ac_ext
14291 LIBS=$ac_func_search_save_LIBS
14293 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14294 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14295 ac_res=$ac_cv_search_opendir
14296 if test "$ac_res" != no; then
14297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14303 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14304 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14305 if test "${ac_cv_header_mmap_anon+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14314 cat >conftest.$ac_ext <<_ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 #include <sys/mman.h>
14321 #include <unistd.h>
14326 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14331 rm -f conftest.$ac_objext
14332 if { (ac_try="$ac_compile"
14333 case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_compile") 2>conftest.er1
14340 grep -v '^ *+' conftest.er1 >conftest.err
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
14345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14346 { (case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_try") 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_try") 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14365 ac_cv_header_mmap_anon=yes
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14370 ac_cv_header_mmap_anon=no
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 ac_cpp='$CPP $CPPFLAGS'
14376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14383 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14384 if test "$ac_cv_header_mmap_anon" = yes; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_MMAP_ANONYMOUS 1
14392 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14393 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14394 if test "${ac_cv_header_stat_broken+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <sys/types.h>
14404 #include <sys/stat.h>
14406 #if defined S_ISBLK && defined S_IFDIR
14407 # if S_ISBLK (S_IFDIR)
14412 #if defined S_ISBLK && defined S_IFCHR
14413 # if S_ISBLK (S_IFCHR)
14418 #if defined S_ISLNK && defined S_IFREG
14419 # if S_ISLNK (S_IFREG)
14424 #if defined S_ISSOCK && defined S_IFREG
14425 # if S_ISSOCK (S_IFREG)
14431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432 $EGREP "You lose" >/dev/null 2>&1; then
14433 ac_cv_header_stat_broken=yes
14435 ac_cv_header_stat_broken=no
14440 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14441 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14442 if test $ac_cv_header_stat_broken = yes; then
14444 cat >>confdefs.h <<\_ACEOF
14445 #define STAT_MACROS_BROKEN 1
14450 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14451 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14452 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <sys/types.h>
14462 #include <sys/wait.h>
14463 #ifndef WEXITSTATUS
14464 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14480 rm -f conftest.$ac_objext
14481 if { (ac_try="$ac_compile"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_compile") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14495 { (case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_try") 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_try") 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
14514 ac_cv_header_sys_wait_h=yes
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 ac_cv_header_sys_wait_h=no
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14525 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14526 if test $ac_cv_header_sys_wait_h = yes; then
14528 cat >>confdefs.h <<\_ACEOF
14529 #define HAVE_SYS_WAIT_H 1
14534 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14535 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14536 if test "${ac_cv_header_time+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <sys/types.h>
14546 #include <sys/time.h>
14552 if ((struct tm *) 0)
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14567 grep -v '^ *+' conftest.er1 >conftest.err
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_header_time=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_cv_header_time=no
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14603 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14604 if test $ac_cv_header_time = yes; then
14606 cat >>confdefs.h <<\_ACEOF
14607 #define TIME_WITH_SYS_TIME 1
14619 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 ac_res=`eval echo '${'$as_ac_Header'}'`
14629 { echo "$as_me:$LINENO: result: $ac_res" >&5
14630 echo "${ECHO_T}$ac_res" >&6; }
14632 # Is the header compilable?
14633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 #include <$ac_header>
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14659 { (case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_try") 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_try") 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_header_compiler=yes
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_header_compiler=no
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688 echo "${ECHO_T}$ac_header_compiler" >&6; }
14690 # Is the header present?
14691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 #include <$ac_header>
14701 if { (ac_try="$ac_cpp conftest.$ac_ext"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } >/dev/null; then
14714 if test -s conftest.err; then
14715 ac_cpp_err=$ac_c_preproc_warn_flag
14716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14723 if test -z "$ac_cpp_err"; then
14724 ac_header_preproc=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_header_preproc=no
14732 rm -f conftest.err conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734 echo "${ECHO_T}$ac_header_preproc" >&6; }
14736 # So? What about this header?
14737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14743 ac_header_preproc=yes
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14759 ## ------------------------------------ ##
14760 ## Report this to http://llvm.org/bugs/ ##
14761 ## ------------------------------------ ##
14763 ) | sed "s/^/$as_me: WARNING: /" >&2
14766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 eval "$as_ac_Header=\$ac_header_preproc"
14773 ac_res=`eval echo '${'$as_ac_Header'}'`
14774 { echo "$as_me:$LINENO: result: $ac_res" >&5
14775 echo "${ECHO_T}$ac_res" >&6; }
14778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14779 cat >>confdefs.h <<_ACEOF
14780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 ac_res=`eval echo '${'$as_ac_Header'}'`
14803 { echo "$as_me:$LINENO: result: $ac_res" >&5
14804 echo "${ECHO_T}$ac_res" >&6; }
14806 # Is the header compilable?
14807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 $ac_includes_default
14816 #include <$ac_header>
14818 rm -f conftest.$ac_objext
14819 if { (ac_try="$ac_compile"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_compile") 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_header_compiler=yes
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_header_compiler=no
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14862 echo "${ECHO_T}$ac_header_compiler" >&6; }
14864 # Is the header present?
14865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <$ac_header>
14875 if { (ac_try="$ac_cpp conftest.$ac_ext"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14883 grep -v '^ *+' conftest.er1 >conftest.err
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } >/dev/null; then
14888 if test -s conftest.err; then
14889 ac_cpp_err=$ac_c_preproc_warn_flag
14890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14897 if test -z "$ac_cpp_err"; then
14898 ac_header_preproc=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_header_preproc=no
14906 rm -f conftest.err conftest.$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6; }
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14933 ## ------------------------------------ ##
14934 ## Report this to http://llvm.org/bugs/ ##
14935 ## ------------------------------------ ##
14937 ) | sed "s/^/$as_me: WARNING: /" >&2
14940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 eval "$as_ac_Header=\$ac_header_preproc"
14947 ac_res=`eval echo '${'$as_ac_Header'}'`
14948 { echo "$as_me:$LINENO: result: $ac_res" >&5
14949 echo "${ECHO_T}$ac_res" >&6; }
14952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14953 cat >>confdefs.h <<_ACEOF
14954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14963 for ac_header in utime.h windows.h
14965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 ac_res=`eval echo '${'$as_ac_Header'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974 echo "${ECHO_T}$ac_res" >&6; }
14976 # Is the header compilable?
14977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 $ac_includes_default
14986 #include <$ac_header>
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_try") 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_header_compiler=yes
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_header_compiler=no
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15032 echo "${ECHO_T}$ac_header_compiler" >&6; }
15034 # Is the header present?
15035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15037 cat >conftest.$ac_ext <<_ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 #include <$ac_header>
15045 if { (ac_try="$ac_cpp conftest.$ac_ext"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null; then
15058 if test -s conftest.err; then
15059 ac_cpp_err=$ac_c_preproc_warn_flag
15060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15067 if test -z "$ac_cpp_err"; then
15068 ac_header_preproc=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_header_preproc=no
15076 rm -f conftest.err conftest.$ac_ext
15077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15078 echo "${ECHO_T}$ac_header_preproc" >&6; }
15080 # So? What about this header?
15081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15087 ac_header_preproc=yes
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15103 ## ------------------------------------ ##
15104 ## Report this to http://llvm.org/bugs/ ##
15105 ## ------------------------------------ ##
15107 ) | sed "s/^/$as_me: WARNING: /" >&2
15110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 eval "$as_ac_Header=\$ac_header_preproc"
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15123 cat >>confdefs.h <<_ACEOF
15124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15136 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 ac_res=`eval echo '${'$as_ac_Header'}'`
15146 { echo "$as_me:$LINENO: result: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15149 # Is the header compilable?
15150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15159 #include <$ac_header>
15161 rm -f conftest.$ac_objext
15162 if { (ac_try="$ac_compile"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15176 { (case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_try") 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_try") 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_header_compiler=yes
15197 echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15200 ac_header_compiler=no
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15205 echo "${ECHO_T}$ac_header_compiler" >&6; }
15207 # Is the header present?
15208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <$ac_header>
15218 if { (ac_try="$ac_cpp conftest.$ac_ext"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } >/dev/null; then
15231 if test -s conftest.err; then
15232 ac_cpp_err=$ac_c_preproc_warn_flag
15233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15240 if test -z "$ac_cpp_err"; then
15241 ac_header_preproc=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_header_preproc=no
15249 rm -f conftest.err conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6; }
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15260 ac_header_preproc=yes
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15276 ## ------------------------------------ ##
15277 ## Report this to http://llvm.org/bugs/ ##
15278 ## ------------------------------------ ##
15280 ) | sed "s/^/$as_me: WARNING: /" >&2
15283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 eval "$as_ac_Header=\$ac_header_preproc"
15290 ac_res=`eval echo '${'$as_ac_Header'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15296 cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 ac_res=`eval echo '${'$as_ac_Header'}'`
15318 { echo "$as_me:$LINENO: result: $ac_res" >&5
15319 echo "${ECHO_T}$ac_res" >&6; }
15321 # Is the header compilable?
15322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15331 #include <$ac_header>
15333 rm -f conftest.$ac_objext
15334 if { (ac_try="$ac_compile"
15335 case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_compile") 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest.$ac_objext'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_header_compiler=yes
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 ac_header_compiler=no
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15377 echo "${ECHO_T}$ac_header_compiler" >&6; }
15379 # Is the header present?
15380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #include <$ac_header>
15390 if { (ac_try="$ac_cpp conftest.$ac_ext"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } >/dev/null; then
15403 if test -s conftest.err; then
15404 ac_cpp_err=$ac_c_preproc_warn_flag
15405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15412 if test -z "$ac_cpp_err"; then
15413 ac_header_preproc=yes
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_header_preproc=no
15421 rm -f conftest.err conftest.$ac_ext
15422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15423 echo "${ECHO_T}$ac_header_preproc" >&6; }
15425 # So? What about this header?
15426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15432 ac_header_preproc=yes
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15448 ## ------------------------------------ ##
15449 ## Report this to http://llvm.org/bugs/ ##
15450 ## ------------------------------------ ##
15452 ) | sed "s/^/$as_me: WARNING: /" >&2
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 eval "$as_ac_Header=\$ac_header_preproc"
15462 ac_res=`eval echo '${'$as_ac_Header'}'`
15463 { echo "$as_me:$LINENO: result: $ac_res" >&5
15464 echo "${ECHO_T}$ac_res" >&6; }
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15477 for ac_header in valgrind/valgrind.h
15479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15490 # Is the header compilable?
15491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 $ac_includes_default
15500 #include <$ac_header>
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_compile") 2>conftest.er1
15511 grep -v '^ *+' conftest.er1 >conftest.err
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_try") 2>&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_header_compiler=yes
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_header_compiler=no
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 echo "${ECHO_T}$ac_header_compiler" >&6; }
15548 # Is the header present?
15549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <$ac_header>
15559 if { (ac_try="$ac_cpp conftest.$ac_ext"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } >/dev/null; then
15572 if test -s conftest.err; then
15573 ac_cpp_err=$ac_c_preproc_warn_flag
15574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15581 if test -z "$ac_cpp_err"; then
15582 ac_header_preproc=yes
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 ac_header_preproc=no
15590 rm -f conftest.err conftest.$ac_ext
15591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15592 echo "${ECHO_T}$ac_header_preproc" >&6; }
15594 # So? What about this header?
15595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15601 ac_header_preproc=yes
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15617 ## ------------------------------------ ##
15618 ## Report this to http://llvm.org/bugs/ ##
15619 ## ------------------------------------ ##
15621 ) | sed "s/^/$as_me: WARNING: /" >&2
15624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 eval "$as_ac_Header=\$ac_header_preproc"
15631 ac_res=`eval echo '${'$as_ac_Header'}'`
15632 { echo "$as_me:$LINENO: result: $ac_res" >&5
15633 echo "${ECHO_T}$ac_res" >&6; }
15636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15637 cat >>confdefs.h <<_ACEOF
15638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15646 for ac_header in fenv.h
15648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 ac_res=`eval echo '${'$as_ac_Header'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15659 # Is the header compilable?
15660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15662 cat >conftest.$ac_ext <<_ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 $ac_includes_default
15669 #include <$ac_header>
15671 rm -f conftest.$ac_objext
15672 if { (ac_try="$ac_compile"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_compile") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_header_compiler=yes
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 ac_header_compiler=no
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15715 echo "${ECHO_T}$ac_header_compiler" >&6; }
15717 # Is the header present?
15718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 #include <$ac_header>
15728 if { (ac_try="$ac_cpp conftest.$ac_ext"
15729 case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15736 grep -v '^ *+' conftest.er1 >conftest.err
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } >/dev/null; then
15741 if test -s conftest.err; then
15742 ac_cpp_err=$ac_c_preproc_warn_flag
15743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15750 if test -z "$ac_cpp_err"; then
15751 ac_header_preproc=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_header_preproc=no
15759 rm -f conftest.err conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15761 echo "${ECHO_T}$ac_header_preproc" >&6; }
15763 # So? What about this header?
15764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15770 ac_header_preproc=yes
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15786 ## ------------------------------------ ##
15787 ## Report this to http://llvm.org/bugs/ ##
15788 ## ------------------------------------ ##
15790 ) | sed "s/^/$as_me: WARNING: /" >&2
15793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 eval "$as_ac_Header=\$ac_header_preproc"
15800 ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802 echo "${ECHO_T}$ac_res" >&6; }
15805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15806 cat >>confdefs.h <<_ACEOF
15807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15814 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15816 for ac_header in pthread.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
15993 if test "$llvm_cv_enable_libffi" = "yes" ; then
15996 for ac_header in ffi.h ffi/ffi.h
15998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 ac_res=`eval echo '${'$as_ac_Header'}'`
16006 { echo "$as_me:$LINENO: result: $ac_res" >&5
16007 echo "${ECHO_T}$ac_res" >&6; }
16009 # Is the header compilable?
16010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16019 #include <$ac_header>
16021 rm -f conftest.$ac_objext
16022 if { (ac_try="$ac_compile"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_compile") 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_try") 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_header_compiler=yes
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 ac_header_compiler=no
16063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16065 echo "${ECHO_T}$ac_header_compiler" >&6; }
16067 # Is the header present?
16068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16070 cat >conftest.$ac_ext <<_ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 #include <$ac_header>
16078 if { (ac_try="$ac_cpp conftest.$ac_ext"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } >/dev/null; then
16091 if test -s conftest.err; then
16092 ac_cpp_err=$ac_c_preproc_warn_flag
16093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16100 if test -z "$ac_cpp_err"; then
16101 ac_header_preproc=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_preproc=no
16109 rm -f conftest.err conftest.$ac_ext
16110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6; }
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16136 ## ------------------------------------ ##
16137 ## Report this to http://llvm.org/bugs/ ##
16138 ## ------------------------------------ ##
16140 ) | sed "s/^/$as_me: WARNING: /" >&2
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 eval "$as_ac_Header=\$ac_header_preproc"
16150 ac_res=`eval echo '${'$as_ac_Header'}'`
16151 { echo "$as_me:$LINENO: result: $ac_res" >&5
16152 echo "${ECHO_T}$ac_res" >&6; }
16155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16156 cat >>confdefs.h <<_ACEOF
16157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 for ac_header in CrashReporterClient.h
16169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 ac_res=`eval echo '${'$as_ac_Header'}'`
16177 { echo "$as_me:$LINENO: result: $ac_res" >&5
16178 echo "${ECHO_T}$ac_res" >&6; }
16180 # Is the header compilable?
16181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 #include <$ac_header>
16192 rm -f conftest.$ac_objext
16193 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_try") 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_header_compiler=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_header_compiler=no
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16236 echo "${ECHO_T}$ac_header_compiler" >&6; }
16238 # Is the header present?
16239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <$ac_header>
16249 if { (ac_try="$ac_cpp conftest.$ac_ext"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } >/dev/null; then
16262 if test -s conftest.err; then
16263 ac_cpp_err=$ac_c_preproc_warn_flag
16264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16271 if test -z "$ac_cpp_err"; then
16272 ac_header_preproc=yes
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_preproc=no
16280 rm -f conftest.err conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16282 echo "${ECHO_T}$ac_header_preproc" >&6; }
16284 # So? What about this header?
16285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16291 ac_header_preproc=yes
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307 ## ------------------------------------ ##
16308 ## Report this to http://llvm.org/bugs/ ##
16309 ## ------------------------------------ ##
16311 ) | sed "s/^/$as_me: WARNING: /" >&2
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 eval "$as_ac_Header=\$ac_header_preproc"
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16336 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16337 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 extern const char *__crashreporter_info__;
16346 __crashreporter_info__ = "test";
16351 rm -f conftest.$ac_objext conftest$ac_exeext
16352 if { (ac_try="$ac_link"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_link") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 { echo "$as_me:$LINENO: result: yes" >&5
16386 echo "${ECHO_T}yes" >&6; }
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_CRASHREPORTER_INFO 1
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16399 cat >>confdefs.h <<\_ACEOF
16400 #define HAVE_CRASHREPORTER_INFO 0
16405 rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16412 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16413 if test "${ac_cv_huge_val_sanity+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 ac_cpp='$CXXCPP $CPPFLAGS'
16419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16423 ac_save_CXXFLAGS=$CXXFLAGS
16424 CXXFLAGS="$CXXFLAGS -pedantic"
16425 if test "$cross_compiling" = yes; then
16426 ac_cv_huge_val_sanity=yes
16428 cat >conftest.$ac_ext <<_ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16438 double x = HUGE_VAL; return x != x;
16443 rm -f conftest$ac_exeext
16444 if { (ac_try="$ac_link"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_link") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_huge_val_sanity=yes
16465 echo "$as_me: program exited with status $ac_status" >&5
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 ( exit $ac_status )
16470 ac_cv_huge_val_sanity=no
16472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16476 CXXFLAGS=$ac_save_CXXFLAGS
16478 ac_cpp='$CPP $CPPFLAGS'
16479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16485 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16486 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16487 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16490 { echo "$as_me:$LINENO: checking for pid_t" >&5
16491 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16492 if test "${ac_cv_type_pid_t+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 $ac_includes_default
16502 typedef pid_t ac__type_new_;
16506 if ((ac__type_new_ *) 0)
16508 if (sizeof (ac__type_new_))
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_type_pid_t=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_type_pid_t=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16559 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16560 if test $ac_cv_type_pid_t = yes; then
16564 cat >>confdefs.h <<_ACEOF
16570 { echo "$as_me:$LINENO: checking for size_t" >&5
16571 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16572 if test "${ac_cv_type_size_t+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 $ac_includes_default
16582 typedef size_t ac__type_new_;
16586 if ((ac__type_new_ *) 0)
16588 if (sizeof (ac__type_new_))
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_compile") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_type_size_t=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_type_size_t=no
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16639 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16640 if test $ac_cv_type_size_t = yes; then
16644 cat >>confdefs.h <<_ACEOF
16645 #define size_t unsigned int
16651 cat >>confdefs.h <<_ACEOF
16652 #define RETSIGTYPE void
16655 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16656 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16657 if test "${ac_cv_struct_tm+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <sys/types.h>
16672 struct tm *tp; tp->tm_sec;
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16686 grep -v '^ *+' conftest.er1 >conftest.err
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_struct_tm=time.h
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_cv_struct_tm=sys/time.h
16719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16722 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16723 if test $ac_cv_struct_tm = sys/time.h; then
16725 cat >>confdefs.h <<\_ACEOF
16726 #define TM_IN_SYS_TIME 1
16731 { echo "$as_me:$LINENO: checking for int64_t" >&5
16732 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16733 if test "${ac_cv_type_int64_t+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16743 typedef int64_t ac__type_new_;
16747 if ((ac__type_new_ *) 0)
16749 if (sizeof (ac__type_new_))
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_type_int64_t=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_cv_type_int64_t=no
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16800 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16801 if test $ac_cv_type_int64_t = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_INT64_T 1
16809 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16810 echo "$as_me: error: Type int64_t required but not found" >&2;}
16811 { (exit 1); exit 1; }; }
16814 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16815 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16816 if test "${ac_cv_type_uint64_t+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 typedef uint64_t ac__type_new_;
16830 if ((ac__type_new_ *) 0)
16832 if (sizeof (ac__type_new_))
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_type_uint64_t=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_type_uint64_t=no
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16883 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16884 if test $ac_cv_type_uint64_t = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define HAVE_UINT64_T 1
16892 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16893 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16894 if test "${ac_cv_type_u_int64_t+set}" = set; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 $ac_includes_default
16904 typedef u_int64_t ac__type_new_;
16908 if ((ac__type_new_ *) 0)
16910 if (sizeof (ac__type_new_))
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_type_u_int64_t=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_cv_type_u_int64_t=no
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16961 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16962 if test $ac_cv_type_u_int64_t = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define HAVE_U_INT64_T 1
16970 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16971 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16972 { (exit 1); exit 1; }; }
16986 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17002 #define $ac_func innocuous_$ac_func
17004 /* System header to define __stub macros and hopefully few prototypes,
17005 which can conflict with char $ac_func (); below.
17006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17007 <limits.h> exists even on freestanding compilers. */
17010 # include <limits.h>
17012 # include <assert.h>
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17024 /* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027 #if defined __stub_$ac_func || defined __stub___$ac_func
17034 return $ac_func ();
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest$ac_exeext'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 eval "$as_ac_var=yes"
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 eval "$as_ac_var=no"
17081 rm -f core conftest.err conftest.$ac_objext \
17082 conftest$ac_exeext conftest.$ac_ext
17084 ac_res=`eval echo '${'$as_ac_var'}'`
17085 { echo "$as_me:$LINENO: result: $ac_res" >&5
17086 echo "${ECHO_T}$ac_res" >&6; }
17087 if test `eval echo '${'$as_ac_var'}'` = yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17099 for ac_func in powf fmodf strtof round
17101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17115 #define $ac_func innocuous_$ac_func
17117 /* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char $ac_func (); below.
17119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120 <limits.h> exists even on freestanding compilers. */
17123 # include <limits.h>
17125 # include <assert.h>
17130 /* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17137 /* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140 #if defined __stub_$ac_func || defined __stub___$ac_func
17147 return $ac_func ();
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17161 grep -v '^ *+' conftest.er1 >conftest.err
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 eval "$as_ac_var=no"
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17197 ac_res=`eval echo '${'$as_ac_var'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199 echo "${ECHO_T}$ac_res" >&6; }
17200 if test `eval echo '${'$as_ac_var'}'` = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17213 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229 #define $ac_func innocuous_$ac_func
17231 /* System header to define __stub macros and hopefully few prototypes,
17232 which can conflict with char $ac_func (); below.
17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234 <limits.h> exists even on freestanding compilers. */
17237 # include <limits.h>
17239 # include <assert.h>
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17251 /* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254 #if defined __stub_$ac_func || defined __stub___$ac_func
17261 return $ac_func ();
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_try") 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_try") 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 eval "$as_ac_var=yes"
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 eval "$as_ac_var=no"
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 ac_res=`eval echo '${'$as_ac_var'}'`
17312 { echo "$as_me:$LINENO: result: $ac_res" >&5
17313 echo "${ECHO_T}$ac_res" >&6; }
17314 if test `eval echo '${'$as_ac_var'}'` = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17325 for ac_func in isatty mkdtemp mkstemp
17327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 cat >conftest.$ac_ext <<_ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17341 #define $ac_func innocuous_$ac_func
17343 /* System header to define __stub macros and hopefully few prototypes,
17344 which can conflict with char $ac_func (); below.
17345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17346 <limits.h> exists even on freestanding compilers. */
17349 # include <limits.h>
17351 # include <assert.h>
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17363 /* The GNU C library defines this for functions which it implements
17364 to always fail with ENOSYS. Some functions are actually named
17365 something starting with __ and the normal name is an alias. */
17366 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 return $ac_func ();
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 eval "$as_ac_var=no"
17420 rm -f core conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17423 ac_res=`eval echo '${'$as_ac_var'}'`
17424 { echo "$as_me:$LINENO: result: $ac_res" >&5
17425 echo "${ECHO_T}$ac_res" >&6; }
17426 if test `eval echo '${'$as_ac_var'}'` = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17441 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17457 #define $ac_func innocuous_$ac_func
17459 /* System header to define __stub macros and hopefully few prototypes,
17460 which can conflict with char $ac_func (); below.
17461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462 <limits.h> exists even on freestanding compilers. */
17465 # include <limits.h>
17467 # include <assert.h>
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17479 /* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
17482 #if defined __stub_$ac_func || defined __stub___$ac_func
17489 return $ac_func ();
17494 rm -f conftest.$ac_objext conftest$ac_exeext
17495 if { (ac_try="$ac_link"
17496 case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_link") 2>conftest.er1
17503 grep -v '^ *+' conftest.er1 >conftest.err
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17509 { (case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_try") 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest$ac_exeext'
17519 { (case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_try") 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 eval "$as_ac_var=yes"
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 eval "$as_ac_var=no"
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17539 ac_res=`eval echo '${'$as_ac_var'}'`
17540 { echo "$as_me:$LINENO: result: $ac_res" >&5
17541 echo "${ECHO_T}$ac_res" >&6; }
17542 if test `eval echo '${'$as_ac_var'}'` = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17554 for ac_func in strerror strerror_r setenv arc4random
17556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17570 #define $ac_func innocuous_$ac_func
17572 /* System header to define __stub macros and hopefully few prototypes,
17573 which can conflict with char $ac_func (); below.
17574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17575 <limits.h> exists even on freestanding compilers. */
17578 # include <limits.h>
17580 # include <assert.h>
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined __stub_$ac_func || defined __stub___$ac_func
17602 return $ac_func ();
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 eval "$as_ac_var=yes"
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 eval "$as_ac_var=no"
17649 rm -f core conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
17652 ac_res=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654 echo "${ECHO_T}$ac_res" >&6; }
17655 if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17667 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17683 #define $ac_func innocuous_$ac_func
17685 /* System header to define __stub macros and hopefully few prototypes,
17686 which can conflict with char $ac_func (); below.
17687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17688 <limits.h> exists even on freestanding compilers. */
17691 # include <limits.h>
17693 # include <assert.h>
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17705 /* The GNU C library defines this for functions which it implements
17706 to always fail with ENOSYS. Some functions are actually named
17707 something starting with __ and the normal name is an alias. */
17708 #if defined __stub_$ac_func || defined __stub___$ac_func
17715 return $ac_func ();
17720 rm -f conftest.$ac_objext conftest$ac_exeext
17721 if { (ac_try="$ac_link"
17722 case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_link") 2>conftest.er1
17729 grep -v '^ *+' conftest.er1 >conftest.err
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735 { (case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_try") 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "$as_ac_var=yes"
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 eval "$as_ac_var=no"
17762 rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17765 ac_res=`eval echo '${'$as_ac_var'}'`
17766 { echo "$as_me:$LINENO: result: $ac_res" >&5
17767 echo "${ECHO_T}$ac_res" >&6; }
17768 if test `eval echo '${'$as_ac_var'}'` = yes; then
17769 cat >>confdefs.h <<_ACEOF
17770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17781 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 cat >conftest.$ac_ext <<_ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17797 #define $ac_func innocuous_$ac_func
17799 /* System header to define __stub macros and hopefully few prototypes,
17800 which can conflict with char $ac_func (); below.
17801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17802 <limits.h> exists even on freestanding compilers. */
17805 # include <limits.h>
17807 # include <assert.h>
17812 /* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
17819 /* The GNU C library defines this for functions which it implements
17820 to always fail with ENOSYS. Some functions are actually named
17821 something starting with __ and the normal name is an alias. */
17822 #if defined __stub_$ac_func || defined __stub___$ac_func
17829 return $ac_func ();
17834 rm -f conftest.$ac_objext conftest$ac_exeext
17835 if { (ac_try="$ac_link"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_link") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest$ac_exeext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 eval "$as_ac_var=yes"
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 eval "$as_ac_var=no"
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17879 ac_res=`eval echo '${'$as_ac_var'}'`
17880 { echo "$as_me:$LINENO: result: $ac_res" >&5
17881 echo "${ECHO_T}$ac_res" >&6; }
17882 if test `eval echo '${'$as_ac_var'}'` = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17890 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17891 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17892 if test "${llvm_cv_c_printf_a+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 ac_cpp='$CPP $CPPFLAGS'
17897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901 if test "$cross_compiling" = yes; then
17902 llvmac_cv_c_printf_a=no
17904 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17913 #include <stdlib.h>
17919 volatile double A, B;
17923 sprintf(Buffer, "%a", A);
17927 if (A != 0x1.999999999999ap-4)
17934 rm -f conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 llvm_cv_c_printf_a=yes
17956 echo "$as_me: program exited with status $ac_status" >&5
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ( exit $ac_status )
17961 llvmac_cv_c_printf_a=no
17963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17968 ac_cpp='$CPP $CPPFLAGS'
17969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17975 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17976 if test "$llvm_cv_c_printf_a" = "yes"; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define HAVE_PRINTF_A 1
17985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17987 if test "${ac_cv_func_rand48+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 ac_cpp='$CXXCPP $CPPFLAGS'
17992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #include <stdlib.h>
18006 srand48(0);lrand48();drand48();
18011 rm -f conftest.$ac_objext
18012 if { (ac_try="$ac_compile"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest.$ac_objext'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_func_rand48=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_func_rand48=no
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 ac_cpp='$CPP $CPPFLAGS'
18056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18062 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18064 if test "$ac_cv_func_rand48" = "yes" ; then
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE_RAND48 1
18073 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18074 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18075 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18089 char *p = (char *) strerror_s;
18097 rm -f conftest.$ac_objext
18098 if { (ac_try="$ac_compile"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_have_decl_strerror_s=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_have_decl_strerror_s=no
18139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18142 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18143 if test $ac_cv_have_decl_strerror_s = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define HAVE_DECL_STRERROR_S 1
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_DECL_STRERROR_S 0
18160 if test "$llvm_cv_os_type" = "MingW" ; then
18161 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18162 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 ac_check_lib_save_LIBS=$LIBS
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc__alloca=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_lib_gcc__alloca=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18237 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18238 if test $ac_cv_lib_gcc__alloca = yes; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE__ALLOCA 1
18246 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18247 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18270 return __alloca ();
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___alloca=yes
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_lib_gcc___alloca=no
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18322 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18323 if test $ac_cv_lib_gcc___alloca = yes; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE___ALLOCA 1
18331 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18332 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18333 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18345 /* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18355 return __chkstk ();
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc___chkstk=yes
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ac_cv_lib_gcc___chkstk=no
18402 rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404 LIBS=$ac_check_lib_save_LIBS
18406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18407 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18408 if test $ac_cv_lib_gcc___chkstk = yes; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE___CHKSTK 1
18416 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18417 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18418 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_check_lib_save_LIBS=$LIBS
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18430 /* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18440 return ___chkstk ();
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_lib_gcc____chkstk=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_cv_lib_gcc____chkstk=no
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18492 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18493 if test $ac_cv_lib_gcc____chkstk = yes; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE____CHKSTK 1
18502 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18503 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS=$LIBS
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18526 return __ashldi3 ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___ashldi3=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_gcc___ashldi3=no
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18579 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___ASHLDI3 1
18587 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18588 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS=$LIBS
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return __ashrdi3 ();
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___ashrdi3=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_gcc___ashrdi3=no
18658 rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18664 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___ASHRDI3 1
18672 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18673 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 ac_check_lib_save_LIBS=$LIBS
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18696 return __divdi3 ();
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___divdi3=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_lib_gcc___divdi3=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18749 if test $ac_cv_lib_gcc___divdi3 = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE___DIVDI3 1
18757 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18758 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18759 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS=$LIBS
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18781 return __fixdfdi ();
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___fixdfdi=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_lib_gcc___fixdfdi=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18833 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18834 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE___FIXDFDI 1
18842 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18843 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 ac_check_lib_save_LIBS=$LIBS
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18866 return __fixsfdi ();
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___fixsfdi=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_gcc___fixsfdi=no
18913 rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18918 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18919 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE___FIXSFDI 1
18927 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18928 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 ac_check_lib_save_LIBS=$LIBS
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18947 char __floatdidf ();
18951 return __floatdidf ();
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___floatdidf=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_lib_gcc___floatdidf=no
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19003 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19004 if test $ac_cv_lib_gcc___floatdidf = yes; then
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE___FLOATDIDF 1
19012 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19013 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19014 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 ac_check_lib_save_LIBS=$LIBS
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19036 return __lshrdi3 ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___lshrdi3=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_cv_lib_gcc___lshrdi3=no
19083 rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19088 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19089 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE___LSHRDI3 1
19097 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19098 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19099 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 ac_check_lib_save_LIBS=$LIBS
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 /* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19121 return __moddi3 ();
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___moddi3=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_lib_gcc___moddi3=no
19168 rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19173 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19174 if test $ac_cv_lib_gcc___moddi3 = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE___MODDI3 1
19182 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19183 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19184 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 ac_check_lib_save_LIBS=$LIBS
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19206 return __udivdi3 ();
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___udivdi3=yes
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_cv_lib_gcc___udivdi3=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19258 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19259 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE___UDIVDI3 1
19267 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19268 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19269 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 ac_check_lib_save_LIBS=$LIBS
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19281 /* Override any GCC internal prototype to avoid an error.
19282 Use char because int might match the return type of a GCC
19283 builtin and then its argument prototype would still apply. */
19291 return __umoddi3 ();
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (ac_try="$ac_link"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_link") 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_try") 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 ac_cv_lib_gcc___umoddi3=yes
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19335 ac_cv_lib_gcc___umoddi3=no
19338 rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19340 LIBS=$ac_check_lib_save_LIBS
19342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19343 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19344 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE___UMODDI3 1
19353 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19354 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19355 if test "${ac_cv_lib_gcc___main+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 ac_check_lib_save_LIBS=$LIBS
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_lib_gcc___main=yes
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_lib_gcc___main=no
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19429 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19430 if test $ac_cv_lib_gcc___main = yes; then
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE___MAIN 1
19438 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19439 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19440 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 ac_check_lib_save_LIBS=$LIBS
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19462 return __cmpdi2 ();
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (ac_try="$ac_link"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_link") 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19482 { (case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_try") 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest$ac_exeext'
19492 { (case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_try") 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501 ac_cv_lib_gcc___cmpdi2=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ac_cv_lib_gcc___cmpdi2=no
19509 rm -f core conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19514 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19515 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE___CMPDI2 1
19525 if test "$llvm_cv_os_type" = "MingW" ; then
19526 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19527 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19528 cat >conftest.$ac_ext <<_ACEOF
19529 #include <windows.h>
19530 #include <imagehlp.h>
19531 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19532 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19569 { echo "$as_me:$LINENO: result: yes" >&5
19570 echo "${ECHO_T}yes" >&6; }
19571 llvm_cv_win32_elmcb_pcstr="PCSTR"
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19578 { echo "$as_me:$LINENO: result: no" >&5
19579 echo "${ECHO_T}no" >&6; }
19580 llvm_cv_win32_elmcb_pcstr="PSTR"
19584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 cat >>confdefs.h <<_ACEOF
19587 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19593 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19594 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_func_isnan_in_math_h=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_func_isnan_in_math_h=no
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 ac_cpp='$CPP $CPPFLAGS'
19664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19670 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19673 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_ISNAN_IN_MATH_H 1
19681 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19682 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19683 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 ac_cpp='$CXXCPP $CPPFLAGS'
19688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_cv_func_isnan_in_cmath=yes
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_cv_func_isnan_in_cmath=no
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 ac_cpp='$CPP $CPPFLAGS'
19752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19758 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19760 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_ISNAN_IN_CMATH 1
19768 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19769 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 ac_cpp='$CXXCPP $CPPFLAGS'
19775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19789 float f; std::isnan(f);
19794 rm -f conftest.$ac_objext
19795 if { (ac_try="$ac_compile"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_compile") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_try") 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_func_std_isnan_in_cmath=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_func_std_isnan_in_cmath=no
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 ac_cpp='$CPP $CPPFLAGS'
19839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19845 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19847 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_STD_ISNAN_IN_CMATH 1
19856 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19857 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 ac_cpp='$CXXCPP $CPPFLAGS'
19863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_func_isinf_in_math_h=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_func_isinf_in_math_h=no
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19933 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19935 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_ISINF_IN_MATH_H 1
19943 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19944 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19945 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 ac_cpp='$CXXCPP $CPPFLAGS'
19950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_compile") 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_cv_func_isinf_in_cmath=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_func_isinf_in_cmath=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20020 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20022 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20024 cat >>confdefs.h <<\_ACEOF
20025 #define HAVE_ISINF_IN_CMATH 1
20030 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20031 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20051 float f; std::isinf(f);
20056 rm -f conftest.$ac_objext
20057 if { (ac_try="$ac_compile"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest.$ac_objext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_func_std_isinf_in_cmath=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_cv_func_std_isinf_in_cmath=no
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20107 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20109 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_STD_ISINF_IN_CMATH 1
20117 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20118 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20119 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 ac_cpp='$CXXCPP $CPPFLAGS'
20124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 #include <ieeefp.h>
20138 float f; finite(f);
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 ac_cv_func_finite_in_ieeefp_h=yes
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 ac_cv_func_finite_in_ieeefp_h=no
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187 ac_cpp='$CPP $CPPFLAGS'
20188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20194 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20196 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_FINITE_IN_IEEEFP_H 1
20206 if test "$llvm_cv_platform_type" = "Unix" ; then
20209 for ac_header in stdlib.h unistd.h
20211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 ac_res=`eval echo '${'$as_ac_Header'}'`
20219 { echo "$as_me:$LINENO: result: $ac_res" >&5
20220 echo "${ECHO_T}$ac_res" >&6; }
20222 # Is the header compilable?
20223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 $ac_includes_default
20232 #include <$ac_header>
20234 rm -f conftest.$ac_objext
20235 if { (ac_try="$ac_compile"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_compile") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1 >conftest.err
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
20248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; } &&
20258 { ac_try='test -s conftest.$ac_objext'
20259 { (case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_try") 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 ac_header_compiler=yes
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_header_compiler=no
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 echo "${ECHO_T}$ac_header_compiler" >&6; }
20280 # Is the header present?
20281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <$ac_header>
20291 if { (ac_try="$ac_cpp conftest.$ac_ext"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20299 grep -v '^ *+' conftest.er1 >conftest.err
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } >/dev/null; then
20304 if test -s conftest.err; then
20305 ac_cpp_err=$ac_c_preproc_warn_flag
20306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20313 if test -z "$ac_cpp_err"; then
20314 ac_header_preproc=yes
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_header_preproc=no
20322 rm -f conftest.err conftest.$ac_ext
20323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20324 echo "${ECHO_T}$ac_header_preproc" >&6; }
20326 # So? What about this header?
20327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20333 ac_header_preproc=yes
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20349 ## ------------------------------------ ##
20350 ## Report this to http://llvm.org/bugs/ ##
20351 ## ------------------------------------ ##
20353 ) | sed "s/^/$as_me: WARNING: /" >&2
20356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 eval "$as_ac_Header=\$ac_header_preproc"
20363 ac_res=`eval echo '${'$as_ac_Header'}'`
20364 { echo "$as_me:$LINENO: result: $ac_res" >&5
20365 echo "${ECHO_T}$ac_res" >&6; }
20368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20369 cat >>confdefs.h <<_ACEOF
20370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20378 for ac_func in getpagesize
20380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20394 #define $ac_func innocuous_$ac_func
20396 /* System header to define __stub macros and hopefully few prototypes,
20397 which can conflict with char $ac_func (); below.
20398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20399 <limits.h> exists even on freestanding compilers. */
20402 # include <limits.h>
20404 # include <assert.h>
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20416 /* The GNU C library defines this for functions which it implements
20417 to always fail with ENOSYS. Some functions are actually named
20418 something starting with __ and the normal name is an alias. */
20419 #if defined __stub_$ac_func || defined __stub___$ac_func
20426 return $ac_func ();
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (ac_try="$ac_link"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_link") 2>conftest.er1
20440 grep -v '^ *+' conftest.er1 >conftest.err
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest$ac_exeext'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 eval "$as_ac_var=yes"
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 eval "$as_ac_var=no"
20473 rm -f core conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20476 ac_res=`eval echo '${'$as_ac_var'}'`
20477 { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20479 if test `eval echo '${'$as_ac_var'}'` = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 { echo "$as_me:$LINENO: checking for working mmap" >&5
20488 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20489 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 if test "$cross_compiling" = yes; then
20493 ac_cv_func_mmap_fixed_mapped=no
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 $ac_includes_default
20502 /* malloc might have been renamed as rpl_malloc. */
20505 /* Thanks to Mike Haertel and Jim Avera for this test.
20506 Here is a matrix of mmap possibilities:
20507 mmap private not fixed
20508 mmap private fixed at somewhere currently unmapped
20509 mmap private fixed at somewhere already mapped
20510 mmap shared not fixed
20511 mmap shared fixed at somewhere currently unmapped
20512 mmap shared fixed at somewhere already mapped
20513 For private mappings, we should verify that changes cannot be read()
20514 back from the file, nor mmap's back from the file at a different
20515 address. (There have been systems where private was not correctly
20516 implemented like the infamous i386 svr4.0, and systems where the
20517 VM page cache was not coherent with the file system buffer cache
20518 like early versions of FreeBSD and possibly contemporary NetBSD.)
20519 For shared mappings, we should conversely verify that changes get
20520 propagated back to all the places they're supposed to be.
20522 Grep wants private fixed already mapped.
20523 The main things grep needs to know about mmap are:
20524 * does it exist and is it safe to write into the mmap'd area
20525 * how to use it (BSD variants) */
20528 #include <sys/mman.h>
20530 #if !STDC_HEADERS && !HAVE_STDLIB_H
20534 /* This mess was copied from the GNU getpagesize.h. */
20535 #if !HAVE_GETPAGESIZE
20536 /* Assume that all systems that can run configure have sys/param.h. */
20537 # if !HAVE_SYS_PARAM_H
20538 # define HAVE_SYS_PARAM_H 1
20541 # ifdef _SC_PAGESIZE
20542 # define getpagesize() sysconf(_SC_PAGESIZE)
20543 # else /* no _SC_PAGESIZE */
20544 # if HAVE_SYS_PARAM_H
20545 # include <sys/param.h>
20546 # ifdef EXEC_PAGESIZE
20547 # define getpagesize() EXEC_PAGESIZE
20548 # else /* no EXEC_PAGESIZE */
20550 # define getpagesize() NBPG * CLSIZE
20553 # endif /* no CLSIZE */
20554 # else /* no NBPG */
20556 # define getpagesize() NBPC
20557 # else /* no NBPC */
20559 # define getpagesize() PAGESIZE
20560 # endif /* PAGESIZE */
20561 # endif /* no NBPC */
20562 # endif /* no NBPG */
20563 # endif /* no EXEC_PAGESIZE */
20564 # else /* no HAVE_SYS_PARAM_H */
20565 # define getpagesize() 8192 /* punt totally */
20566 # endif /* no HAVE_SYS_PARAM_H */
20567 # endif /* no _SC_PAGESIZE */
20569 #endif /* no HAVE_GETPAGESIZE */
20574 char *data, *data2, *data3;
20578 pagesize = getpagesize ();
20580 /* First, make a file with some known garbage in it. */
20581 data = (char *) malloc (pagesize);
20584 for (i = 0; i < pagesize; ++i)
20585 *(data + i) = rand ();
20587 fd = creat ("conftest.mmap", 0600);
20590 if (write (fd, data, pagesize) != pagesize)
20594 /* Next, try to mmap the file at a fixed address which already has
20595 something else allocated at it. If we can, also make sure that
20596 we see the same garbage. */
20597 fd = open ("conftest.mmap", O_RDWR);
20600 data2 = (char *) malloc (2 * pagesize);
20603 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20607 for (i = 0; i < pagesize; ++i)
20608 if (*(data + i) != *(data2 + i))
20611 /* Finally, make sure that changes to the mapped area do not
20612 percolate back to the file as seen by read(). (This is a bug on
20613 some variants of i386 svr4.0.) */
20614 for (i = 0; i < pagesize; ++i)
20615 *(data2 + i) = *(data2 + i) + 1;
20616 data3 = (char *) malloc (pagesize);
20619 if (read (fd, data3, pagesize) != pagesize)
20621 for (i = 0; i < pagesize; ++i)
20622 if (*(data + i) != *(data3 + i))
20628 rm -f conftest$ac_exeext
20629 if { (ac_try="$ac_link"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_link") 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_cv_func_mmap_fixed_mapped=yes
20650 echo "$as_me: program exited with status $ac_status" >&5
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ( exit $ac_status )
20655 ac_cv_func_mmap_fixed_mapped=no
20657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20662 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20663 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20664 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_MMAP 1
20671 rm -f conftest.mmap
20673 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20674 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20675 if test "${ac_cv_func_mmap_file+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 ac_cpp='$CPP $CPPFLAGS'
20680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20684 if test "$cross_compiling" = yes; then
20685 ac_cv_func_mmap_file=no
20687 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20695 #include <sys/types.h>
20696 #include <sys/mman.h>
20704 fd = creat ("foo",0777);
20705 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20707 return (fd != (int) MAP_FAILED);
20712 rm -f conftest$ac_exeext
20713 if { (ac_try="$ac_link"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_link") 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20723 { (case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_try") 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ac_cv_func_mmap_file=yes
20734 echo "$as_me: program exited with status $ac_status" >&5
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ( exit $ac_status )
20739 ac_cv_func_mmap_file=no
20741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20746 ac_cpp='$CPP $CPPFLAGS'
20747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20753 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20754 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20755 if test "$ac_cv_func_mmap_file" = yes; then
20757 cat >>confdefs.h <<\_ACEOF
20758 #define HAVE_MMAP_FILE
20765 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20766 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20767 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 if test "$llvm_cv_os_type" = "Interix" ; then
20771 ac_cv_need_dev_zero_for_mmap=yes
20773 ac_cv_need_dev_zero_for_mmap=no
20777 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20778 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20779 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20781 cat >>confdefs.h <<\_ACEOF
20782 #define NEED_DEV_ZERO_FOR_MMAP 1
20787 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20789 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20790 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20792 if test "$ac_cv_func_mmap_file" = "no"
20794 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20795 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20799 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20800 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20802 ac_cpp='$CXXCPP $CPPFLAGS'
20803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20807 cat >conftest.$ac_ext <<_ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20814 volatile unsigned long val = 1;
20815 __sync_synchronize();
20816 __sync_val_compare_and_swap(&val, 1, 0);
20817 __sync_add_and_fetch(&val, 1);
20818 __sync_sub_and_fetch(&val, 1);
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_link") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20838 { (case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_try") 2>&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest$ac_exeext'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20858 ac_cpp='$CPP $CPPFLAGS'
20859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863 { echo "$as_me:$LINENO: result: yes" >&5
20864 echo "${ECHO_T}yes" >&6; }
20866 cat >>confdefs.h <<\_ACEOF
20867 #define LLVM_HAS_ATOMICS 1
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 { echo "$as_me:$LINENO: result: no" >&5
20875 echo "${ECHO_T}no" >&6; }
20877 cat >>confdefs.h <<\_ACEOF
20878 #define LLVM_HAS_ATOMICS 0
20881 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20882 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20885 rm -f core conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20889 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20890 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20891 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20892 if test "${llvm_cv_linux_mixed+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 ac_cpp='$CPP $CPPFLAGS'
20897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20908 error: Not x86-64 even if uname says so!
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 llvm_cv_linux_mixed=no
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 llvm_cv_linux_mixed=yes
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 ac_cpp='$CPP $CPPFLAGS'
20964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20970 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20971 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20973 if test "$llvm_cv_linux_mixed" = "yes"; then
20974 llvm_cv_target_arch="x86"
20980 for ac_func in __dso_handle
20982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20996 #define $ac_func innocuous_$ac_func
20998 /* System header to define __stub macros and hopefully few prototypes,
20999 which can conflict with char $ac_func (); below.
21000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21001 <limits.h> exists even on freestanding compilers. */
21004 # include <limits.h>
21006 # include <assert.h>
21011 /* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21018 /* The GNU C library defines this for functions which it implements
21019 to always fail with ENOSYS. Some functions are actually named
21020 something starting with __ and the normal name is an alias. */
21021 #if defined __stub_$ac_func || defined __stub___$ac_func
21028 return $ac_func ();
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21048 { (case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_try") 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest$ac_exeext'
21058 { (case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_try") 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 eval "$as_ac_var=yes"
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 eval "$as_ac_var=no"
21075 rm -f core conftest.err conftest.$ac_objext \
21076 conftest$ac_exeext conftest.$ac_ext
21078 ac_res=`eval echo '${'$as_ac_var'}'`
21079 { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21081 if test `eval echo '${'$as_ac_var'}'` = yes; then
21082 cat >>confdefs.h <<_ACEOF
21083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21090 SHLIBEXT=$libltdl_cv_shlibext
21093 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21096 if test "${prefix}" = "NONE" ; then
21097 prefix="/usr/local"
21099 eval LLVM_PREFIX="${prefix}";
21100 eval LLVM_BINDIR="${prefix}/bin";
21101 eval LLVM_LIBDIR="${prefix}/lib";
21102 eval LLVM_DATADIR="${prefix}/share/llvm";
21103 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21104 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21105 eval LLVM_INCLUDEDIR="${prefix}/include";
21106 eval LLVM_INFODIR="${prefix}/info";
21107 eval LLVM_MANDIR="${prefix}/man";
21108 LLVM_CONFIGTIME=`date`
21120 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21121 LLVM_CONFIGTIME="(timestamp not enabled)"
21125 cat >>confdefs.h <<_ACEOF
21126 #define LLVM_PREFIX "$LLVM_PREFIX"
21130 cat >>confdefs.h <<_ACEOF
21131 #define LLVM_BINDIR "$LLVM_BINDIR"
21135 cat >>confdefs.h <<_ACEOF
21136 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21140 cat >>confdefs.h <<_ACEOF
21141 #define LLVM_DATADIR "$LLVM_DATADIR"
21145 cat >>confdefs.h <<_ACEOF
21146 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21150 cat >>confdefs.h <<_ACEOF
21151 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21155 cat >>confdefs.h <<_ACEOF
21156 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21160 cat >>confdefs.h <<_ACEOF
21161 #define LLVM_INFODIR "$LLVM_INFODIR"
21165 cat >>confdefs.h <<_ACEOF
21166 #define LLVM_MANDIR "$LLVM_MANDIR"
21170 cat >>confdefs.h <<_ACEOF
21171 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21175 cat >>confdefs.h <<_ACEOF
21176 #define LLVM_HOSTTRIPLE "$host"
21180 cat >>confdefs.h <<_ACEOF
21181 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21185 if test "$BINDINGS_TO_BUILD" = auto ; then
21186 BINDINGS_TO_BUILD=""
21187 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21188 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21191 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21197 binding_prereqs_failed=0
21198 for a_binding in $BINDINGS_TO_BUILD ; do
21199 case "$a_binding" in
21201 if test "x$OCAMLC" = x ; then
21202 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21203 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21204 binding_prereqs_failed=1
21206 if test "x$OCAMLDEP" = x ; then
21207 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21208 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21209 binding_prereqs_failed=1
21211 if test "x$OCAMLOPT" = x ; then
21212 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21213 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21215 if test "x$with_ocaml_libdir" != xauto ; then
21216 OCAML_LIBDIR=$with_ocaml_libdir
21219 ocaml_stdlib="`"$OCAMLC" -where`"
21220 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21222 # ocaml stdlib is beneath our prefix; use stdlib
21223 OCAML_LIBDIR=$ocaml_stdlib
21226 # ocaml stdlib is outside our prefix; use libdir/ocaml
21227 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21234 if test "$binding_prereqs_failed" = 1 ; then
21235 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21236 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21237 { (exit 1); exit 1; }; }
21240 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21241 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21242 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 ac_cpp='$CXXCPP $CPPFLAGS'
21247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21251 oldcxxflags="$CXXFLAGS"
21252 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21283 { (case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_try") 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_try") 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 llvm_cv_cxx_visibility_inlines_hidden=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 llvm_cv_cxx_visibility_inlines_hidden=no
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 CXXFLAGS="$oldcxxflags"
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21321 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21322 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21323 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21326 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21331 if test "$llvm_cv_link_use_r" = "yes" ; then
21338 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21339 RDYNAMIC="-Wl,-export-dynamic"
21346 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21353 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21355 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21357 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21359 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21361 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21364 ac_config_files="$ac_config_files Makefile.config"
21367 ac_config_files="$ac_config_files llvm.spec"
21370 ac_config_files="$ac_config_files docs/doxygen.cfg"
21373 if test "${clang_src_root}" = ""; then
21374 clang_src_root="$srcdir/tools/clang"
21376 if test -f ${clang_src_root}/README.txt; then
21377 configh="include/clang/Config/config.h"
21378 doxy="docs/doxygen.cfg"
21379 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21381 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21385 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21388 ac_config_commands="$ac_config_commands setup"
21390 ac_config_commands="$ac_config_commands Makefile"
21393 ac_config_commands="$ac_config_commands Makefile.common"
21396 ac_config_commands="$ac_config_commands examples/Makefile"
21399 ac_config_commands="$ac_config_commands lib/Makefile"
21402 ac_config_commands="$ac_config_commands runtime/Makefile"
21405 ac_config_commands="$ac_config_commands test/Makefile"
21408 ac_config_commands="$ac_config_commands test/Makefile.tests"
21411 ac_config_commands="$ac_config_commands unittests/Makefile"
21414 ac_config_commands="$ac_config_commands tools/Makefile"
21417 ac_config_commands="$ac_config_commands utils/Makefile"
21420 ac_config_commands="$ac_config_commands projects/Makefile"
21423 ac_config_commands="$ac_config_commands bindings/Makefile"
21426 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21430 cat >confcache <<\_ACEOF
21431 # This file is a shell script that caches the results of configure
21432 # tests run on this system so they can be shared between configure
21433 # scripts and configure runs, see configure's option --config-cache.
21434 # It is not useful on other systems. If it contains results you don't
21435 # want to keep, you may remove or edit it.
21437 # config.status only pays attention to the cache file if you give it
21438 # the --recheck option to rerun configure.
21440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21442 # following values.
21446 # The following way of writing the cache mishandles newlines in values,
21447 # but we know of no workaround that is simple, portable, and efficient.
21448 # So, we kill variables containing newlines.
21449 # Ultrix sh set writes to stderr and can't be redirected directly,
21450 # and sets the high bit in the cache file unless we assign to the vars.
21452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21453 eval ac_val=\$$ac_var
21457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21461 _ | IFS | as_nl) ;; #(
21462 *) $as_unset $ac_var ;;
21468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21469 *${as_nl}ac_space=\ *)
21470 # `set' does not quote correctly, so add quotes (double-quote
21471 # substitution turns \\\\ into \\, and sed turns \\ into \).
21474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21477 # `set' quotes correctly as required by POSIX, so do not add quotes.
21478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21492 if test -w "$cache_file"; then
21493 test "x$cache_file" != "x/dev/null" &&
21494 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21495 echo "$as_me: updating cache $cache_file" >&6;}
21496 cat confcache >$cache_file
21498 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21499 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21505 # Let make expand exec_prefix.
21506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21508 DEFS=-DHAVE_CONFIG_H
21512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21513 # 1. Remove the extension, and $U if already installed.
21514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21515 ac_i=`echo "$ac_i" | sed "$ac_script"`
21516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21517 # will be set to the directory where LIBOBJS objects are built.
21518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21521 LIBOBJS=$ac_libobjs
21523 LTLIBOBJS=$ac_ltlibobjs
21526 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21527 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21528 Usually this means the macro was only invoked conditionally." >&5
21529 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21530 Usually this means the macro was only invoked conditionally." >&2;}
21531 { (exit 1); exit 1; }; }
21533 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21534 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21535 Usually this means the macro was only invoked conditionally." >&5
21536 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21537 Usually this means the macro was only invoked conditionally." >&2;}
21538 { (exit 1); exit 1; }; }
21541 : ${CONFIG_STATUS=./config.status}
21542 ac_clean_files_save=$ac_clean_files
21543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21544 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21545 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21546 cat >$CONFIG_STATUS <<_ACEOF
21548 # Generated by $as_me.
21549 # Run this file to recreate the current configuration.
21550 # Compiler output produced by configure, useful for debugging
21551 # configure, is in config.log if it exists.
21554 ac_cs_recheck=false
21556 SHELL=\${CONFIG_SHELL-$SHELL}
21559 cat >>$CONFIG_STATUS <<\_ACEOF
21560 ## --------------------- ##
21561 ## M4sh Initialization. ##
21562 ## --------------------- ##
21564 # Be Bourne compatible
21565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21569 # is contrary to our usage. Disable this feature.
21570 alias -g '${1+"$@"}'='"$@"'
21571 setopt NO_GLOB_SUBST
21573 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21575 BIN_SH=xpg4; export BIN_SH # for Tru64
21576 DUALCASE=1; export DUALCASE # for MKS sh
21580 # Avoid depending upon Character Ranges.
21581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21584 as_cr_digits='0123456789'
21585 as_cr_alnum=$as_cr_Letters$as_cr_digits
21587 # The user is always right.
21588 if test "${PATH_SEPARATOR+set}" != set; then
21589 echo "#! /bin/sh" >conf$$.sh
21590 echo "exit 0" >>conf$$.sh
21592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21600 # Support unset when possible.
21601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21609 # We need space, tab and new line, in precisely that order. Quoting is
21610 # there to prevent editors from complaining about space-tab.
21611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21612 # splitting by setting IFS to empty value.)
21617 # Find who we are. Look in the path if we contain no directory separator.
21619 *[\\/]* ) as_myself=$0 ;;
21620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21621 for as_dir in $PATH
21624 test -z "$as_dir" && as_dir=.
21625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21631 # We did not find ourselves, most probably we were run as `sh COMMAND'
21632 # in which case we are not to be found in the path.
21633 if test "x$as_myself" = x; then
21636 if test ! -f "$as_myself"; then
21637 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21638 { (exit 1); exit 1; }
21641 # Work around bugs in pre-3.0 UWIN ksh.
21642 for as_var in ENV MAIL MAILPATH
21643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21651 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21652 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21653 LC_TELEPHONE LC_TIME
21655 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21656 eval $as_var=C; export $as_var
21658 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21662 # Required to use basename.
21663 if expr a : '\(a\)' >/dev/null 2>&1 &&
21664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21671 as_basename=basename
21677 # Name of the executable.
21678 as_me=`$as_basename -- "$0" ||
21679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21680 X"$0" : 'X\(//\)$' \| \
21681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21683 sed '/^.*\/\([^/][^/]*\)\/*$/{
21702 as_lineno_1=$LINENO
21703 as_lineno_2=$LINENO
21704 test "x$as_lineno_1" != "x$as_lineno_2" &&
21705 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21708 # uniformly replaced by the line number. The first 'sed' inserts a
21709 # line-number line after each line using $LINENO; the second 'sed'
21710 # does the real work. The second script uses 'N' to pair each
21711 # line-number line with the line containing $LINENO, and appends
21712 # trailing '-' during substitution so that $LINENO is not a special
21713 # case at line end.
21714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21715 # scripts with optimization help from Paolo Bonzini. Blame Lee
21716 # E. McMahon (1931-1989) for sed's syntax. :-)
21728 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21731 ' >$as_me.lineno &&
21732 chmod +x "$as_me.lineno" ||
21733 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21734 { (exit 1); exit 1; }; }
21736 # Don't try to exec as it changes $[0], causing all sort of problems
21737 # (the dirname of $[0] is not the place where we might find the
21738 # original and so on. Autoconf is especially sensitive to this).
21739 . "./$as_me.lineno"
21740 # Exit status is that of the last command.
21745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21751 ECHO_C= ECHO_N= ECHO_T=
21752 case `echo -n x` in
21754 case `echo 'x\c'` in
21755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21762 if expr a : '\(a\)' >/dev/null 2>&1 &&
21763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21769 rm -f conf$$ conf$$.exe conf$$.file
21770 if test -d conf$$.dir; then
21771 rm -f conf$$.dir/conf$$.file
21777 if ln -s conf$$.file conf$$ 2>/dev/null; then
21779 # ... but there are two gotchas:
21780 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21781 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21782 # In both cases, we have to default to `cp -p'.
21783 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21785 elif ln conf$$.file conf$$ 2>/dev/null; then
21790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21791 rmdir conf$$.dir 2>/dev/null
21793 if mkdir -p . 2>/dev/null; then
21796 test -d ./-p && rmdir ./-p
21800 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21801 # systems may use methods other than mode bits to determine executability.
21802 cat >conf$$.file <<_ASEOF
21806 chmod +x conf$$.file
21807 if test -x conf$$.file >/dev/null 2>&1; then
21808 as_executable_p="test -x"
21814 # Sed expression to map a string onto a valid CPP name.
21815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21817 # Sed expression to map a string onto a valid variable name.
21818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21823 # Save the log message, to keep $[0] and so on meaningful, and to
21824 # report actual input values of CONFIG_FILES etc. instead of their
21825 # values after options handling.
21827 This file was extended by LLVM $as_me 3.2svn, which was
21828 generated by GNU Autoconf 2.60. Invocation command line was
21830 CONFIG_FILES = $CONFIG_FILES
21831 CONFIG_HEADERS = $CONFIG_HEADERS
21832 CONFIG_LINKS = $CONFIG_LINKS
21833 CONFIG_COMMANDS = $CONFIG_COMMANDS
21836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 # Files that config.status was made for.
21843 config_files="$ac_config_files"
21844 config_headers="$ac_config_headers"
21845 config_commands="$ac_config_commands"
21849 cat >>$CONFIG_STATUS <<\_ACEOF
21851 \`$as_me' instantiates files from templates according to the
21852 current configuration.
21854 Usage: $0 [OPTIONS] [FILE]...
21856 -h, --help print this help, then exit
21857 -V, --version print version number, then exit
21858 -q, --quiet do not print progress messages
21859 -d, --debug don't remove temporary files
21860 --recheck update $as_me by reconfiguring in the same conditions
21861 --file=FILE[:TEMPLATE]
21862 instantiate the configuration file FILE
21863 --header=FILE[:TEMPLATE]
21864 instantiate the configuration header FILE
21866 Configuration files:
21869 Configuration headers:
21872 Configuration commands:
21875 Report bugs to <bug-autoconf@gnu.org>."
21878 cat >>$CONFIG_STATUS <<_ACEOF
21880 LLVM config.status 3.2svn
21881 configured by $0, generated by GNU Autoconf 2.60,
21882 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21884 Copyright (C) 2006 Free Software Foundation, Inc.
21885 This config.status script is free software; the Free Software Foundation
21886 gives unlimited permission to copy, distribute and modify it."
21893 cat >>$CONFIG_STATUS <<\_ACEOF
21894 # If no file are specified by the user, then we need to provide default
21895 # value. By we need to know if files were specified by the user.
21901 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21913 # Handling of the options.
21914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21916 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21917 echo "$ac_cs_version"; exit ;;
21918 --debug | --debu | --deb | --de | --d | -d )
21920 --file | --fil | --fi | --f )
21922 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21923 ac_need_defaults=false;;
21924 --header | --heade | --head | --hea )
21926 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21927 ac_need_defaults=false;;
21929 # Conflict between --help and --header
21930 { echo "$as_me: error: ambiguous option: $1
21931 Try \`$0 --help' for more information." >&2
21932 { (exit 1); exit 1; }; };;
21933 --help | --hel | -h )
21934 echo "$ac_cs_usage"; exit ;;
21935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21939 # This is an error.
21940 -*) { echo "$as_me: error: unrecognized option: $1
21941 Try \`$0 --help' for more information." >&2
21942 { (exit 1); exit 1; }; } ;;
21944 *) ac_config_targets="$ac_config_targets $1"
21945 ac_need_defaults=false ;;
21951 ac_configure_extra_args=
21953 if $ac_cs_silent; then
21955 ac_configure_extra_args="$ac_configure_extra_args --silent"
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 if \$ac_cs_recheck; then
21961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21962 CONFIG_SHELL=$SHELL
21963 export CONFIG_SHELL
21964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21973 ## Running $as_me. ##
21979 cat >>$CONFIG_STATUS <<_ACEOF
21983 llvm_src="${srcdir}"
21987 cat >>$CONFIG_STATUS <<\_ACEOF
21989 # Handling of arguments.
21990 for ac_config_target in $ac_config_targets
21992 case $ac_config_target in
21993 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21994 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21995 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21996 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21997 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21998 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21999 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22000 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22001 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22002 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22003 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22004 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22005 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22006 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22007 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22008 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22009 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22010 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22011 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22012 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22013 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22014 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22015 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22016 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22017 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22018 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22019 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22023 { (exit 1); exit 1; }; };;
22028 # If the user did not use the arguments to specify the items to instantiate,
22029 # then the envvar interface is used. Set only those that are not.
22030 # We use the long form for the default assignment because of an extremely
22031 # bizarre bug on SunOS 4.1.3.
22032 if $ac_need_defaults; then
22033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22038 # Have a temporary directory for convenience. Make it in the build tree
22039 # simply because there is no reason against having it here, and in addition,
22040 # creating and moving files from /tmp can sometimes cause problems.
22041 # Hook for its removal unless debugging.
22042 # Note that there is a small window in which the directory will not be cleaned:
22043 # after its creation but before its name has been assigned to `$tmp'.
22047 trap 'exit_status=$?
22048 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22050 trap '{ (exit 1); exit 1; }' 1 2 13 15
22052 # Create a (secure) tmp directory for tmp files.
22055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22056 test -n "$tmp" && test -d "$tmp"
22059 tmp=./conf$$-$RANDOM
22060 (umask 077 && mkdir "$tmp")
22063 echo "$me: cannot create a temporary directory in ." >&2
22064 { (exit 1); exit 1; }
22068 # Set up the sed scripts for CONFIG_FILES section.
22071 # No need to generate the scripts if there are no CONFIG_FILES.
22072 # This happens for instance when ./config.status config.h
22073 if test -n "$CONFIG_FILES"; then
22080 for ac_last_try in false false false false false :; do
22081 cat >conf$$subs.sed <<_ACEOF
22082 SHELL!$SHELL$ac_delim
22083 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22084 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22085 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22086 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22087 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22088 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22089 exec_prefix!$exec_prefix$ac_delim
22090 prefix!$prefix$ac_delim
22091 program_transform_name!$program_transform_name$ac_delim
22092 bindir!$bindir$ac_delim
22093 sbindir!$sbindir$ac_delim
22094 libexecdir!$libexecdir$ac_delim
22095 datarootdir!$datarootdir$ac_delim
22096 datadir!$datadir$ac_delim
22097 sysconfdir!$sysconfdir$ac_delim
22098 sharedstatedir!$sharedstatedir$ac_delim
22099 localstatedir!$localstatedir$ac_delim
22100 includedir!$includedir$ac_delim
22101 oldincludedir!$oldincludedir$ac_delim
22102 docdir!$docdir$ac_delim
22103 infodir!$infodir$ac_delim
22104 htmldir!$htmldir$ac_delim
22105 dvidir!$dvidir$ac_delim
22106 pdfdir!$pdfdir$ac_delim
22107 psdir!$psdir$ac_delim
22108 libdir!$libdir$ac_delim
22109 localedir!$localedir$ac_delim
22110 mandir!$mandir$ac_delim
22111 DEFS!$DEFS$ac_delim
22112 ECHO_C!$ECHO_C$ac_delim
22113 ECHO_N!$ECHO_N$ac_delim
22114 ECHO_T!$ECHO_T$ac_delim
22115 LIBS!$LIBS$ac_delim
22116 build_alias!$build_alias$ac_delim
22117 host_alias!$host_alias$ac_delim
22118 target_alias!$target_alias$ac_delim
22119 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22120 program_prefix!$program_prefix$ac_delim
22122 CFLAGS!$CFLAGS$ac_delim
22123 LDFLAGS!$LDFLAGS$ac_delim
22124 CPPFLAGS!$CPPFLAGS$ac_delim
22125 ac_ct_CC!$ac_ct_CC$ac_delim
22126 EXEEXT!$EXEEXT$ac_delim
22127 OBJEXT!$OBJEXT$ac_delim
22129 CXXFLAGS!$CXXFLAGS$ac_delim
22130 ac_ct_CXX!$ac_ct_CXX$ac_delim
22132 subdirs!$subdirs$ac_delim
22133 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22134 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22135 build!$build$ac_delim
22136 build_cpu!$build_cpu$ac_delim
22137 build_vendor!$build_vendor$ac_delim
22138 build_os!$build_os$ac_delim
22139 host!$host$ac_delim
22140 host_cpu!$host_cpu$ac_delim
22141 host_vendor!$host_vendor$ac_delim
22142 host_os!$host_os$ac_delim
22143 target!$target$ac_delim
22144 target_cpu!$target_cpu$ac_delim
22145 target_vendor!$target_vendor$ac_delim
22146 target_os!$target_os$ac_delim
22148 HOST_OS!$HOST_OS$ac_delim
22149 TARGET_OS!$TARGET_OS$ac_delim
22150 LINKALL!$LINKALL$ac_delim
22151 NOLINKALL!$NOLINKALL$ac_delim
22152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22154 ARCH!$ARCH$ac_delim
22155 HOST_ARCH!$HOST_ARCH$ac_delim
22156 ENDIAN!$ENDIAN$ac_delim
22157 GREP!$GREP$ac_delim
22158 EGREP!$EGREP$ac_delim
22159 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22160 BUILD_CC!$BUILD_CC$ac_delim
22161 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22162 BUILD_CXX!$BUILD_CXX$ac_delim
22163 CVSBUILD!$CVSBUILD$ac_delim
22164 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22165 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22166 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22167 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22168 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22169 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22170 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22171 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22173 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22174 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22176 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22177 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22178 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22183 elif $ac_last_try; then
22184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22186 { (exit 1); exit 1; }; }
22188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22193 if test -n "$ac_eof"; then
22194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22195 ac_eof=`expr $ac_eof + 1`
22198 cat >>$CONFIG_STATUS <<_ACEOF
22199 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22204 s/^/s,@/; s/!/@,|#_!!_#|/
22207 s/'"$ac_delim"'$/,g/; t
22209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22210 ' >>$CONFIG_STATUS <conf$$subs.sed
22211 rm -f conf$$subs.sed
22212 cat >>$CONFIG_STATUS <<_ACEOF
22218 for ac_last_try in false false false false false :; do
22219 cat >conf$$subs.sed <<_ACEOF
22220 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22221 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22222 ENABLE_PIC!$ENABLE_PIC$ac_delim
22223 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22224 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22225 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22226 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22227 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22228 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22229 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22230 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22231 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22232 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22233 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22234 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22235 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22236 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22238 ifGNUmake!$ifGNUmake$ac_delim
22239 LN_S!$LN_S$ac_delim
22242 DATE!$DATE$ac_delim
22243 FIND!$FIND$ac_delim
22244 MKDIR!$MKDIR$ac_delim
22246 RANLIB!$RANLIB$ac_delim
22251 BINPWD!$BINPWD$ac_delim
22252 GRAPHVIZ!$GRAPHVIZ$ac_delim
22255 NEATO!$NEATO$ac_delim
22256 TWOPI!$TWOPI$ac_delim
22257 CIRCO!$CIRCO$ac_delim
22259 DOTTY!$DOTTY$ac_delim
22260 XDOT_PY!$XDOT_PY$ac_delim
22261 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22262 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22263 INSTALL_DATA!$INSTALL_DATA$ac_delim
22264 BZIP2!$BZIP2$ac_delim
22266 DOXYGEN!$DOXYGEN$ac_delim
22267 GROFF!$GROFF$ac_delim
22268 GZIPBIN!$GZIPBIN$ac_delim
22269 PDFROFF!$PDFROFF$ac_delim
22271 OCAMLC!$OCAMLC$ac_delim
22272 OCAMLOPT!$OCAMLOPT$ac_delim
22273 OCAMLDEP!$OCAMLDEP$ac_delim
22274 OCAMLDOC!$OCAMLDOC$ac_delim
22276 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22277 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22278 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22279 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22280 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22281 LIBADD_DL!$LIBADD_DL$ac_delim
22282 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22283 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22284 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22285 USE_UDIS86!$USE_UDIS86$ac_delim
22286 USE_OPROFILE!$USE_OPROFILE$ac_delim
22287 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22288 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22289 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22290 XML2CONFIG!$XML2CONFIG$ac_delim
22291 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22292 LIBXML2_INC!$LIBXML2_INC$ac_delim
22293 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22294 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22295 MMAP_FILE!$MMAP_FILE$ac_delim
22296 SHLIBEXT!$SHLIBEXT$ac_delim
22297 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22298 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22299 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22300 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22301 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22302 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22303 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22304 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22305 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22306 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22307 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22308 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22309 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22310 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22311 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22312 RPATH!$RPATH$ac_delim
22313 RDYNAMIC!$RDYNAMIC$ac_delim
22314 LIBOBJS!$LIBOBJS$ac_delim
22315 LTLIBOBJS!$LTLIBOBJS$ac_delim
22318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
22320 elif $ac_last_try; then
22321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22323 { (exit 1); exit 1; }; }
22325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22330 if test -n "$ac_eof"; then
22331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22332 ac_eof=`expr $ac_eof + 1`
22335 cat >>$CONFIG_STATUS <<_ACEOF
22336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22341 s/^/s,@/; s/!/@,|#_!!_#|/
22344 s/'"$ac_delim"'$/,g/; t
22346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22347 ' >>$CONFIG_STATUS <conf$$subs.sed
22348 rm -f conf$$subs.sed
22349 cat >>$CONFIG_STATUS <<_ACEOF
22354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22356 # trailing colons and then remove the whole line if VPATH becomes empty
22357 # (actually we leave an empty line to preserve line numbers).
22358 if test "x$srcdir" = x.; then
22359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22360 s/:*\$(srcdir):*/:/
22361 s/:*\${srcdir}:*/:/
22363 s/^\([^=]*=[ ]*\):*/\1/
22369 cat >>$CONFIG_STATUS <<\_ACEOF
22370 fi # test -n "$CONFIG_FILES"
22373 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22376 :[FHLC]) ac_mode=$ac_tag; continue;;
22378 case $ac_mode$ac_tag in
22380 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22381 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22382 { (exit 1); exit 1; }; };;
22383 :[FH]-) ac_tag=-:-;;
22384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22401 -) ac_f="$tmp/stdin";;
22402 *) # Look for the file first in the build tree, then in the source tree
22403 # (if the path is not absolute). The absolute path cannot be DOS-style,
22404 # because $ac_f cannot contain `:'.
22408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22410 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22411 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22412 { (exit 1); exit 1; }; };;
22414 ac_file_inputs="$ac_file_inputs $ac_f"
22417 # Let's still pretend it is `configure' which instantiates (i.e., don't
22418 # use $as_me), people would be surprised to read:
22419 # /* config.h. Generated by config.status. */
22420 configure_input="Generated from "`IFS=:
22421 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22422 if test x"$ac_file" != x-; then
22423 configure_input="$ac_file. $configure_input"
22424 { echo "$as_me:$LINENO: creating $ac_file" >&5
22425 echo "$as_me: creating $ac_file" >&6;}
22429 *:-:* | *:-) cat >"$tmp/stdin";;
22434 ac_dir=`$as_dirname -- "$ac_file" ||
22435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22436 X"$ac_file" : 'X\(//\)[^/]' \| \
22437 X"$ac_file" : 'X\(//\)$' \| \
22438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22444 /^X\(\/\/\)[^/].*/{
22459 -*) as_dir=./$as_dir;;
22461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22466 *) as_qdir=$as_dir;;
22468 as_dirs="'$as_qdir' $as_dirs"
22469 as_dir=`$as_dirname -- "$as_dir" ||
22470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22471 X"$as_dir" : 'X\(//\)[^/]' \| \
22472 X"$as_dir" : 'X\(//\)$' \| \
22473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22479 /^X\(\/\/\)[^/].*/{
22492 test -d "$as_dir" && break
22494 test -z "$as_dirs" || eval "mkdir $as_dirs"
22495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22497 { (exit 1); exit 1; }; }; }
22501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22504 # A ".." for each directory in $ac_dir_suffix.
22505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22506 case $ac_top_builddir_sub in
22507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22511 ac_abs_top_builddir=$ac_pwd
22512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22513 # for backward compatibility:
22514 ac_top_builddir=$ac_top_build_prefix
22517 .) # We are building in place.
22519 ac_top_srcdir=$ac_top_builddir_sub
22520 ac_abs_top_srcdir=$ac_pwd ;;
22521 [\\/]* | ?:[\\/]* ) # Absolute name.
22522 ac_srcdir=$srcdir$ac_dir_suffix;
22523 ac_top_srcdir=$srcdir
22524 ac_abs_top_srcdir=$srcdir ;;
22525 *) # Relative name.
22526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22527 ac_top_srcdir=$ac_top_build_prefix$srcdir
22528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22545 cat >>$CONFIG_STATUS <<\_ACEOF
22546 # If the template does not know about datarootdir, expand it.
22547 # FIXME: This hack should be removed a few years after 2.60.
22548 ac_datarootdir_hack=; ac_datarootdir_seen=
22550 case `sed -n '/datarootdir/ {
22559 ' $ac_file_inputs` in
22560 *datarootdir*) ac_datarootdir_seen=yes;;
22561 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22562 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22563 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22565 cat >>$CONFIG_STATUS <<_ACEOF
22566 ac_datarootdir_hack='
22567 s&@datadir@&$datadir&g
22568 s&@docdir@&$docdir&g
22569 s&@infodir@&$infodir&g
22570 s&@localedir@&$localedir&g
22571 s&@mandir@&$mandir&g
22572 s&\\\${datarootdir}&$datarootdir&g' ;;
22576 # Neutralize VPATH when `$srcdir' = `.'.
22577 # Shell code in configure.ac might set extrasub.
22578 # FIXME: do we really want to maintain this feature?
22579 cat >>$CONFIG_STATUS <<_ACEOF
22583 cat >>$CONFIG_STATUS <<\_ACEOF
22585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22586 s&@configure_input@&$configure_input&;t t
22587 s&@top_builddir@&$ac_top_builddir_sub&;t t
22588 s&@srcdir@&$ac_srcdir&;t t
22589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22590 s&@top_srcdir@&$ac_top_srcdir&;t t
22591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22592 s&@builddir@&$ac_builddir&;t t
22593 s&@abs_builddir@&$ac_abs_builddir&;t t
22594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22595 s&@INSTALL@&$ac_INSTALL&;t t
22596 $ac_datarootdir_hack
22597 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
22599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22602 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22603 which seems to be undefined. Please make sure it is defined." >&5
22604 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22605 which seems to be undefined. Please make sure it is defined." >&2;}
22609 -) cat "$tmp/out"; rm -f "$tmp/out";;
22610 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22619 # Transform confdefs.h into a sed script `conftest.defines', that
22620 # substitutes the proper values into config.h.in to produce config.h.
22621 rm -f conftest.defines conftest.tail
22622 # First, append a space to every undef/define line, to ease matching.
22623 echo 's/$/ /' >conftest.defines
22624 # Then, protect against being on the right side of a sed subst, or in
22625 # an unquoted here document, in config.status. If some macros were
22626 # called several times there might be several #defines for the same
22627 # symbol, which is useless. But do not sort them, since the last
22628 # AC_DEFINE must be honored.
22629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22630 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22631 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22632 # PARAMS is the parameter list in the macro definition--in most cases, it's
22633 # just an empty string.
22634 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22635 ac_dB='\\)[ (].*,\\1define\\2'
22643 s/^[ ]*#[ ]*define[ ][ ]*//
22648 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22649 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22650 ' >>conftest.defines
22652 # Remove the space that was appended to ease matching.
22653 # Then replace #undef with comments. This is necessary, for
22654 # example, in the case of _POSIX_SOURCE, which is predefined and required
22655 # on some systems where configure will not decide to define it.
22656 # (The regexp can be short, since the line contains either #define or #undef.)
22658 s,^[ #]*u.*,/* & */,' >>conftest.defines
22660 # Break up conftest.defines:
22661 ac_max_sed_lines=50
22663 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22664 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22665 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22667 ac_in='$ac_file_inputs'
22668 ac_out='"$tmp/out1"'
22669 ac_nxt='"$tmp/out2"'
22673 # Write a here document:
22674 cat >>$CONFIG_STATUS <<_ACEOF
22675 # First, check the format of the line:
22676 cat >"\$tmp/defines.sed" <<\\CEOF
22677 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22678 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22682 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22684 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22685 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22686 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22687 grep . conftest.tail >/dev/null || break
22688 rm -f conftest.defines
22689 mv conftest.tail conftest.defines
22691 rm -f conftest.defines conftest.tail
22693 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22694 cat >>$CONFIG_STATUS <<\_ACEOF
22695 if test x"$ac_file" != x-; then
22696 echo "/* $configure_input */" >"$tmp/config.h"
22697 cat "$ac_result" >>"$tmp/config.h"
22698 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22700 echo "$as_me: $ac_file is unchanged" >&6;}
22703 mv "$tmp/config.h" $ac_file
22706 echo "/* $configure_input */"
22712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22713 echo "$as_me: executing $ac_file commands" >&6;}
22718 case $ac_file$ac_mode in
22719 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22721 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22723 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22725 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22727 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22729 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22731 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22733 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22735 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22737 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22739 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22741 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22743 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22750 { (exit 0); exit 0; }
22752 chmod +x $CONFIG_STATUS
22753 ac_clean_files=$ac_clean_files_save
22756 # configure is writing to config.log, and then calls config.status.
22757 # config.status does its own redirection, appending to config.log.
22758 # Unfortunately, on DOS this fails, as config.log is still kept open
22759 # by configure, so config.status won't be able to write to it; its
22760 # output is simply discarded. So we exec the FD to /dev/null,
22761 # effectively closing config.log, so it can be properly (re)opened and
22762 # appended to by config.status. When coming back to configure, we
22763 # need to make the FD available again.
22764 if test "$no_create" != yes; then
22766 ac_config_status_args=
22767 test "$silent" = yes &&
22768 ac_config_status_args="$ac_config_status_args --quiet"
22770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22773 # would make configure fail if this is the last instruction.
22774 $ac_cs_success || { (exit 1); exit 1; }
22778 # CONFIG_SUBDIRS section.
22780 if test "$no_recursion" != yes; then
22782 # Remove --cache-file and --srcdir arguments so they do not pile up.
22783 ac_sub_configure_args=
22785 eval "set x $ac_configure_args"
22789 if test -n "$ac_prev"; then
22794 -cache-file | --cache-file | --cache-fil | --cache-fi \
22795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22796 ac_prev=cache_file ;;
22797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22801 --config-cache | -C)
22803 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22805 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22807 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22809 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22813 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22815 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22819 # Always prepend --prefix to ensure using the same prefix
22820 # in subdir configurations.
22821 ac_arg="--prefix=$prefix"
22823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22825 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22828 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22830 # Do not complain, so a configure script can configure whichever
22831 # parts of a large source tree are present.
22832 test -d "$srcdir/$ac_dir" || continue
22834 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22835 echo "$as_me:$LINENO: $ac_msg" >&5
22839 -*) as_dir=./$as_dir;;
22841 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22845 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22846 *) as_qdir=$as_dir;;
22848 as_dirs="'$as_qdir' $as_dirs"
22849 as_dir=`$as_dirname -- "$as_dir" ||
22850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22851 X"$as_dir" : 'X\(//\)[^/]' \| \
22852 X"$as_dir" : 'X\(//\)$' \| \
22853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22859 /^X\(\/\/\)[^/].*/{
22872 test -d "$as_dir" && break
22874 test -z "$as_dirs" || eval "mkdir $as_dirs"
22875 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22876 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22877 { (exit 1); exit 1; }; }; }
22881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22884 # A ".." for each directory in $ac_dir_suffix.
22885 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22886 case $ac_top_builddir_sub in
22887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22891 ac_abs_top_builddir=$ac_pwd
22892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22893 # for backward compatibility:
22894 ac_top_builddir=$ac_top_build_prefix
22897 .) # We are building in place.
22899 ac_top_srcdir=$ac_top_builddir_sub
22900 ac_abs_top_srcdir=$ac_pwd ;;
22901 [\\/]* | ?:[\\/]* ) # Absolute name.
22902 ac_srcdir=$srcdir$ac_dir_suffix;
22903 ac_top_srcdir=$srcdir
22904 ac_abs_top_srcdir=$srcdir ;;
22905 *) # Relative name.
22906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22907 ac_top_srcdir=$ac_top_build_prefix$srcdir
22908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22915 # Check for guested configure; otherwise get Cygnus style configure.
22916 if test -f "$ac_srcdir/configure.gnu"; then
22917 ac_sub_configure=$ac_srcdir/configure.gnu
22918 elif test -f "$ac_srcdir/configure"; then
22919 ac_sub_configure=$ac_srcdir/configure
22920 elif test -f "$ac_srcdir/configure.in"; then
22921 # This should be Cygnus configure.
22922 ac_sub_configure=$ac_aux_dir/configure
22924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22929 # The recursion is here.
22930 if test -n "$ac_sub_configure"; then
22931 # Make the cache file name correct relative to the subdirectory.
22932 case $cache_file in
22933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22934 *) # Relative name.
22935 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22940 # The eval makes quoting arguments work.
22941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22945 { (exit 1); exit 1; }; }