2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-polly Use polly if available (default is YES)
1395 --enable-libcpp Use libc++ if available (default is NO)
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-docs Build documents (default is YES)
1409 --enable-doxygen Build doxygen documentation (default is NO)
1410 --enable-threads Use threads if available (default is YES)
1411 --enable-pthreads Use pthreads if available (default is YES)
1412 --enable-pic Build LLVM with Position Independent Code (default
1414 --enable-shared Build a shared library and link tools against it
1416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1417 Win32 DLL (default is NO)
1418 --enable-timestamps Enable embedding timestamp information in build
1420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
1422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, and cpp (default=all)
1424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
1426 --enable-libffi Check for the presence of libffi (default is NO)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-extra-ld-options Specify additional options to link LLVM with
1436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 --with-clang-srcdir Directory to the out-of-tree Clang source
1439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-gcc-toolchain Directory where gcc is installed.
1445 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1446 --with-binutils-include Specify path to binutils/include/ containing
1447 plugin-api.h file for gold plugin.
1448 --with-bug-report-url Specify the URL where bug reports should be
1449 submitted (default=http://llvm.org/bugs/)
1450 --with-internal-prefix Installation directory for internal files
1451 --with-tclinclude directory where tcl headers are
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1455 --with-intel-jitevents=<vtune-amplifier-dir>
1456 Specify location of run-time support library for
1458 (default=/opt/intel/vtune_amplifier_xe_2011)
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to <http://llvm.org/bugs/>.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" || continue
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 LLVM configure 3.1svn
1536 generated by GNU Autoconf 2.60
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1543 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1551 It was created by LLVM $as_me 3.1svn, which was
1552 generated by GNU Autoconf 2.60. Invocation command line was
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1577 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 echo "PATH: $as_dir"
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_must_keep_next=false
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629 if test $ac_must_keep_next = true; then
1630 ac_must_keep_next=false # Got value, back to normal.
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 -* ) ac_must_keep_next=true ;;
1644 ac_configure_args="$ac_configure_args '$ac_arg'"
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log. We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1668 # The following way of writing the cache mishandles newlines in values,
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679 _ | IFS | as_nl) ;; #(
1680 *) $as_unset $ac_var ;;
1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
1688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1705 for ac_var in $ac_subst_vars
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1715 if test -n "$ac_subst_files"; then
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1722 for ac_var in $ac_subst_files
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 echo "$ac_var='\''$ac_val'\''"
1733 if test -s confdefs.h; then
1743 test "$ac_signal" != 0 &&
1744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
1747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 for ac_signal in 1 2 13 15; do
1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1759 # Predefined preprocessor variables.
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789 set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
1799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802 sed 's/^/| /' "$ac_site_file" >&5
1807 if test -r "$cache_file"; then
1808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
1819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1824 # Check that the precious variables saved in the cache have kept the same
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
1830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
1832 case $ac_old_set,$ac_new_set in
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
1844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847 echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849 echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857 *) ac_arg=$ac_var=$ac_new_val ;;
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865 if $ac_cache_corrupted; then
1866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MAJOR 3
1910 cat >>confdefs.h <<\_ACEOF
1911 #define LLVM_VERSION_MINOR 1
1915 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1924 for ac_dir in autoconf "$srcdir"/autoconf; do
1925 if test -f "$ac_dir/install-sh"; then
1927 ac_install_sh="$ac_aux_dir/install-sh -c"
1929 elif test -f "$ac_dir/install.sh"; then
1931 ac_install_sh="$ac_aux_dir/install.sh -c"
1933 elif test -f "$ac_dir/shtool"; then
1935 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 if test -z "$ac_aux_dir"; then
1940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1942 { (exit 1); exit 1; }; }
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955 if test ${srcdir} != "." ; then
1956 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1957 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1958 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1959 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 if test -n "$ac_tool_prefix"; then
1969 for ac_prog in clang llvm-gcc gcc
1971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2003 { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2008 test -n "$CC" && break
2011 if test -z "$CC"; then
2013 for ac_prog in clang llvm-gcc gcc
2015 # Extract the first word of "$ac_prog", so it can be a program name with args.
2016 set dummy $ac_prog; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_ac_ct_CC="$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6; }
2047 { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2052 test -n "$ac_ct_CC" && break
2055 if test "x$ac_ct_CC" = x; then
2058 case $cross_compiling:$ac_tool_warned in
2060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet. If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&5
2063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet. If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2066 ac_tool_warned=yes ;;
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO: checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (ac_try="$ac_compiler --version >&5"
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2088 (eval "$ac_compiler --version >&5") 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (ac_try="$ac_compiler -v >&5"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler -v >&5") 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (ac_try="$ac_compiler -V >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -V >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2113 cat >conftest.$ac_ext <<_ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h. */
2128 ac_clean_files_save=$ac_clean_files
2129 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130 # Try to create an executable without -o first, disregard a.out.
2131 # It will help us diagnose broken compilers, and finding out an intuition
2133 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2135 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 # List of possible output files, starting from the most likely.
2138 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2139 # only as a last resort. b.out is created by i960 compilers.
2140 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142 # The IRIX 6 linker writes into existing files which may not be
2143 # executable, retaining their permissions. Remove them first so a
2144 # subsequent execution test works.
2146 for ac_file in $ac_files
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2150 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155 if { (ac_try="$ac_link_default"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_link_default") 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2167 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2168 # so that the user can short-circuit this test for compilers unknown to
2170 for ac_file in $ac_files
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2177 # We found the default executable, but exeext='' is most
2181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 # We set ac_cv_exeext here because the later test for it is not
2186 # safe: cross compilers may not add the suffix if given an `-o'
2187 # argument, so we may need to know it at that point already.
2188 # Even if this section looks crufty: it has the advantage of
2195 test "$ac_cv_exeext" = no && ac_cv_exeext=
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205 { (exit 77); exit 77; }; }
2208 ac_exeext=$ac_cv_exeext
2209 { echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6; }
2212 # Check that the compiler produces executables we can run. If not, either
2213 # the compiler is broken, or we cross compile.
2214 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219 if { ac_try='./$ac_file'
2220 { (case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225 (eval "$ac_try") 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 if test "$cross_compiling" = maybe; then
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check that the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6; }
2256 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258 if { (ac_try="$ac_link"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_link") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2296 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.o conftest.obj
2317 if { (ac_try="$ac_compile"
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_compile") 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; then
2327 for ac_file in conftest.o conftest.obj conftest.*; do
2328 test -f "$ac_file" || continue;
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6; }
2350 OBJEXT=$ac_cv_objext
2352 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2375 rm -f conftest.$ac_objext
2376 if { (ac_try="$ac_compile"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_compile") 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2390 { (case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_try") 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_save_c_werror_flag=$ac_c_werror_flag
2432 ac_c_werror_flag=yes
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2450 rm -f conftest.$ac_objext
2451 if { (ac_try="$ac_compile"
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_compile") 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465 { (case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_try") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 rm -f conftest.$ac_objext
2506 if { (ac_try="$ac_compile"
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>conftest.er1
2514 grep -v '^ *+' conftest.er1 >conftest.err
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2520 { (case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_try") 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 ac_c_werror_flag=$ac_save_c_werror_flag
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_try") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_c_werror_flag=$ac_save_c_werror_flag
2612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2614 if test "$ac_test_CFLAGS" = set; then
2615 CFLAGS=$ac_save_CFLAGS
2616 elif test $ac_cv_prog_cc_g = yes; then
2617 if test "$GCC" = yes; then
2623 if test "$GCC" = yes; then
2629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_cc_c89+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 ac_cv_prog_cc_c89=no
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2644 #include <sys/types.h>
2645 #include <sys/stat.h>
2646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2647 struct buf { int x; };
2648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649 static char *e (p, i)
2655 static char *f (char * (*g) (char **, int), char **p, ...)
2660 s = g (p, va_arg (v,int));
2665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2666 function prototypes and stuff, but not '\xHH' hex character constants.
2667 These don't provoke an error unfortunately, instead are silently treated
2668 as 'x'. The following induces an error, until -std is added to get
2669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2670 array size at least. It's necessary to write '\x00'==0 to get something
2671 that's true only with -std. */
2672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675 inside strings and character constants. */
2677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2696 CC="$ac_save_CC $ac_arg"
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712 { (case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_try") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_prog_cc_c89=$ac_arg
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f core conftest.err conftest.$ac_objext
2740 test "x$ac_cv_prog_cc_c89" != "xno" && break
2742 rm -f conftest.$ac_ext
2747 case "x$ac_cv_prog_cc_c89" in
2749 { echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6; } ;;
2752 { echo "$as_me:$LINENO: result: unsupported" >&5
2753 echo "${ECHO_T}unsupported" >&6; } ;;
2755 CC="$CC $ac_cv_prog_cc_c89"
2756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 if test -z "$CXX"; then
2773 if test -n "$CCC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in clang++ llvm-g++ g++
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CXX+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$CXX"; then
2787 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CXX"; then
2808 { echo "$as_me:$LINENO: result: $CXX" >&5
2809 echo "${ECHO_T}$CXX" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2816 test -n "$CXX" && break
2819 if test -z "$CXX"; then
2821 for ac_prog in clang++ llvm-g++ g++
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CXX"; then
2831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CXX="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2851 if test -n "$ac_ct_CXX"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2853 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2860 test -n "$ac_ct_CXX" && break
2863 if test "x$ac_ct_CXX" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (ac_try="$ac_compiler --version >&5"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler --version >&5") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895 { (ac_try="$ac_compiler -v >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -v >&5") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -V >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2954 { (case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_try") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2987 GXX=`test $ac_compiler_gnu = yes && echo yes`
2988 ac_test_CXXFLAGS=${CXXFLAGS+set}
2989 ac_save_CXXFLAGS=$CXXFLAGS
2990 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2991 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2992 if test "${ac_cv_prog_cxx_g+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2996 ac_cxx_werror_flag=yes
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_prog_cxx_g=yes
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cxx_g=yes
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3178 if test "$ac_test_CXXFLAGS" = set; then
3179 CXXFLAGS=$ac_save_CXXFLAGS
3180 elif test $ac_cv_prog_cxx_g = yes; then
3181 if test "$GXX" = yes; then
3187 if test "$GXX" = yes; then
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3206 # On Suns, sometimes $CPP names a directory.
3207 if test -n "$CPP" && test -d "$CPP"; then
3210 if test -z "$CPP"; then
3211 if test "${ac_cv_prog_CPP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 # Double quotes because CPP needs to be expanded
3215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218 for ac_c_preproc_warn_flag in '' yes
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 # include <limits.h>
3235 # include <assert.h>
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 # Broken: fails on valid input.
3271 rm -f conftest.err conftest.$ac_ext
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <ac_nonexistent.h>
3283 if { (ac_try="$ac_cpp conftest.$ac_ext"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305 if test -z "$ac_cpp_err"; then
3306 # Broken: success on invalid input.
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 # Passes both tests.
3317 rm -f conftest.err conftest.$ac_ext
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3334 { echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6; }
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if { (ac_try="$ac_cpp conftest.$ac_ext"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } >/dev/null; then
3371 if test -s conftest.err; then
3372 ac_cpp_err=$ac_c_preproc_warn_flag
3373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 if test -z "$ac_cpp_err"; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 # Broken: fails on valid input.
3390 rm -f conftest.err conftest.$ac_ext
3392 # OK, works on sane cases. Now check whether nonexistent headers
3393 # can be detected and how.
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #include <ac_nonexistent.h>
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 if test -z "$ac_cpp_err"; then
3425 # Broken: success on invalid input.
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 # Passes both tests.
3436 rm -f conftest.err conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 if test -d ${srcdir}/projects/llvm-gcc ; then
3461 subdirs="$subdirs projects/llvm-gcc"
3465 if test -d ${srcdir}/projects/test-suite ; then
3466 subdirs="$subdirs projects/test-suite"
3470 if test -d ${srcdir}/projects/llvm-test ; then
3471 subdirs="$subdirs projects/llvm-test"
3475 if test -d ${srcdir}/projects/poolalloc ; then
3476 subdirs="$subdirs projects/poolalloc"
3480 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3481 subdirs="$subdirs projects/llvm-poolalloc"
3485 for i in `ls ${srcdir}/projects`
3487 if test -d ${srcdir}/projects/${i} ; then
3489 sample) subdirs="$subdirs projects/sample"
3491 privbracket) subdirs="$subdirs projects/privbracket"
3493 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3495 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3497 llvm-java) subdirs="$subdirs projects/llvm-java"
3499 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3501 safecode) subdirs="$subdirs projects/safecode"
3503 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3512 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3513 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3519 # Check whether --enable-polly was given.
3520 if test "${enable_polly+set}" = set; then
3521 enableval=$enable_polly;
3526 case "$enableval" in
3531 default) ENABLE_POLLY=1
3533 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3534 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3535 { (exit 1); exit 1; }; } ;;
3539 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3542 subdirs="$subdirs tools/polly"
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3550 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3551 { (exit 1); exit 1; }; }
3553 { echo "$as_me:$LINENO: checking build system type" >&5
3554 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3555 if test "${ac_cv_build+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_build_alias=$build_alias
3559 test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561 test "x$ac_build_alias" = x &&
3562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564 { (exit 1); exit 1; }; }
3565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3566 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3567 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3568 { (exit 1); exit 1; }; }
3571 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572 echo "${ECHO_T}$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3575 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3576 echo "$as_me: error: invalid value of canonical build" >&2;}
3577 { (exit 1); exit 1; }; };;
3580 ac_save_IFS=$IFS; IFS='-'
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593 { echo "$as_me:$LINENO: checking host system type" >&5
3594 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3595 if test "${ac_cv_host+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3604 { (exit 1); exit 1; }; }
3608 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3609 echo "${ECHO_T}$ac_cv_host" >&6; }
3612 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3613 echo "$as_me: error: invalid value of canonical host" >&2;}
3614 { (exit 1); exit 1; }; };;
3617 ac_save_IFS=$IFS; IFS='-'
3623 # Remember, the first character of IFS is used to create $*,
3624 # except with old shells:
3627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630 { echo "$as_me:$LINENO: checking target system type" >&5
3631 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_target+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 if test "x$target_alias" = x; then
3636 ac_cv_target=$ac_cv_host
3638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3640 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3641 { (exit 1); exit 1; }; }
3645 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3646 echo "${ECHO_T}$ac_cv_target" >&6; }
3647 case $ac_cv_target in
3649 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3650 echo "$as_me: error: invalid value of canonical target" >&2;}
3651 { (exit 1); exit 1; }; };;
3653 target=$ac_cv_target
3654 ac_save_IFS=$IFS; IFS='-'
3660 # Remember, the first character of IFS is used to create $*,
3661 # except with old shells:
3664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3667 # The aliases save the names the user supplied, while $host etc.
3668 # will get canonicalized.
3669 test -n "$target_alias" &&
3670 test "$program_prefix$program_suffix$program_transform_name" = \
3672 program_prefix=${target_alias}-
3674 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3675 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3676 if test "${llvm_cv_os_type+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="AIX"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="IRIX"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="Cygwin"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Darwin"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,-all_load"
3702 llvm_cv_no_link_all_option="-Wl,-noall_load"
3703 llvm_cv_os_type="Minix"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-freebsd* | *-*-kfreebsd-gnu)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="FreeBSD"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="OpenBSD"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="NetBSD"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="DragonFly"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="HP-UX"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Interix"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="Linux"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="GNU"
3744 llvm_cv_platform_type="Unix" ;;
3746 llvm_cv_link_all_option="-Wl,-z,allextract"
3747 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3748 llvm_cv_os_type="SunOS"
3749 llvm_cv_platform_type="Unix" ;;
3751 llvm_cv_link_all_option="-Wl,-z,allextract"
3752 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3753 llvm_cv_os_type="AuroraUX"
3754 llvm_cv_platform_type="Unix" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Win32"
3759 llvm_cv_platform_type="Win32" ;;
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="MingW"
3764 llvm_cv_platform_type="Win32" ;;
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Haiku"
3769 llvm_cv_platform_type="Unix" ;;
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="Freestanding"
3774 llvm_cv_platform_type="Unix" ;;
3776 llvm_cv_link_all_option="-Wl,--whole-archive"
3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778 llvm_cv_os_type="Freestanding"
3779 llvm_cv_platform_type="Unix" ;;
3781 llvm_cv_link_all_option=""
3782 llvm_cv_no_link_all_option=""
3783 llvm_cv_os_type="Unknown"
3784 llvm_cv_platform_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3790 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3791 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3792 if test "${llvm_cv_target_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 llvm_cv_target_os_type="AIX" ;;
3799 llvm_cv_target_os_type="IRIX" ;;
3801 llvm_cv_target_os_type="Cygwin" ;;
3803 llvm_cv_target_os_type="Darwin" ;;
3805 llvm_cv_target_os_type="Minix" ;;
3806 *-*-freebsd* | *-*-kfreebsd-gnu)
3807 llvm_cv_target_os_type="FreeBSD" ;;
3809 llvm_cv_target_os_type="OpenBSD" ;;
3811 llvm_cv_target_os_type="NetBSD" ;;
3813 llvm_cv_target_os_type="DragonFly" ;;
3815 llvm_cv_target_os_type="HP-UX" ;;
3817 llvm_cv_target_os_type="Interix" ;;
3819 llvm_cv_target_os_type="Linux" ;;
3821 llvm_cv_target_os_type="GNU" ;;
3823 llvm_cv_target_os_type="SunOS" ;;
3825 llvm_cv_target_os_type="AuroraUX" ;;
3827 llvm_cv_target_os_type="Win32" ;;
3829 llvm_cv_target_os_type="MingW" ;;
3831 llvm_cv_target_os_type="Haiku" ;;
3833 llvm_cv_target_os_type="RTEMS" ;;
3835 llvm_cv_target_os_type="NativeClient" ;;
3837 llvm_cv_target_os_type="Freestanding" ;;
3839 llvm_cv_target_os_type="Unknown" ;;
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848 { (exit 1); exit 1; }; }
3853 HOST_OS=$llvm_cv_os_type
3855 TARGET_OS=$llvm_cv_target_os_type
3858 LINKALL=$llvm_cv_link_all_option
3860 NOLINKALL=$llvm_cv_no_link_all_option
3863 case $llvm_cv_platform_type in
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 i?86-*) llvm_cv_target_arch="x86" ;;
3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3896 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3898 arm*-*) llvm_cv_target_arch="ARM" ;;
3899 mips-*) llvm_cv_target_arch="Mips" ;;
3900 mipsel-*) llvm_cv_target_arch="Mips" ;;
3901 xcore-*) llvm_cv_target_arch="XCore" ;;
3902 msp430-*) llvm_cv_target_arch="MSP430" ;;
3903 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3904 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3905 ptx-*) llvm_cv_target_arch="PTX" ;;
3906 *) llvm_cv_target_arch="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912 if test "$llvm_cv_target_arch" = "Unknown" ; then
3913 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3917 case "$llvm_cv_target_arch" in
3918 x86) LLVM_NATIVE_ARCH="X86" ;;
3919 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3920 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3923 ARCH=$llvm_cv_target_arch
3928 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3929 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 # Extract the first word of "grep ggrep" to use in msg output
3934 if test -z "$GREP"; then
3935 set dummy grep ggrep; ac_prog_name=$2
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_path_GREP_found=false
3940 # Loop through the user's path and test for each of PROGNAME-LIST
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in grep ggrep; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3950 # Check for GNU ac_path_GREP and select it if it is found.
3951 # Check for GNU $ac_path_GREP
3952 case `"$ac_path_GREP" --version 2>&1` in
3954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3960 cat "conftest.in" "conftest.in" >"conftest.tmp"
3961 mv "conftest.tmp" "conftest.in"
3962 cp "conftest.in" "conftest.nl"
3963 echo 'GREP' >> "conftest.nl"
3964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966 ac_count=`expr $ac_count + 1`
3967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968 # Best one so far, save it but keep looking for a better one
3969 ac_cv_path_GREP="$ac_path_GREP"
3970 ac_path_GREP_max=$ac_count
3972 # 10*(2^10) chars as input seems more than enough
3973 test $ac_count -gt 10 && break
3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 $ac_path_GREP_found && break 3
3989 GREP="$ac_cv_path_GREP"
3990 if test -z "$GREP"; then
3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993 { (exit 1); exit 1; }; }
3997 ac_cv_path_GREP=$GREP
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4004 GREP="$ac_cv_path_GREP"
4007 { echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_EGREP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4015 # Extract the first word of "egrep" to use in msg output
4016 if test -z "$EGREP"; then
4017 set dummy egrep; ac_prog_name=$2
4018 if test "${ac_cv_path_EGREP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 ac_count=`expr $ac_count + 1`
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 $ac_path_EGREP_found && break 3
4071 EGREP="$ac_cv_path_EGREP"
4072 if test -z "$EGREP"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4079 ac_cv_path_EGREP=$EGREP
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4092 if test "${ac_cv_header_stdc+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_cv_header_stdc=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 if test $ac_cv_header_stdc = yes; then
4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "memchr" >/dev/null 2>&1; then
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "free" >/dev/null 2>&1; then
4194 ac_cv_header_stdc=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4202 if test "$cross_compiling" = yes; then
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4213 #if ((' ' & 0x0FF) == 0x020)
4214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217 # define ISLOWER(c) \
4218 (('a' <= (c) && (c) <= 'i') \
4219 || ('j' <= (c) && (c) <= 'r') \
4220 || ('s' <= (c) && (c) <= 'z'))
4221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 for (i = 0; i < 256; i++)
4230 if (XOR (islower (i), ISLOWER (i))
4231 || toupper (i) != TOUPPER (i))
4236 rm -f conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_link") 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4258 echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4263 ac_cv_header_stdc=no
4265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4273 if test $ac_cv_header_stdc = yes; then
4275 cat >>confdefs.h <<\_ACEOF
4276 #define STDC_HEADERS 1
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292 inttypes.h stdint.h unistd.h
4294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4308 #include <$ac_header>
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_try") 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_Header=yes"
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 eval "$as_ac_Header=no"
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_res=`eval echo '${'$as_ac_Header'}'`
4355 { echo "$as_me:$LINENO: result: $ac_res" >&5
4356 echo "${ECHO_T}$ac_res" >&6; }
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4368 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4369 if test "${ac_cv_c_bigendian+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 # See if sys/param.h defines the BYTE_ORDER macro.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4385 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 # It does; now see whether it defined to BIG_ENDIAN or not.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #include <sys/types.h>
4435 #include <sys/param.h>
4440 #if BYTE_ORDER != BIG_ENDIAN
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_c_bigendian=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_c_bigendian=no
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 # It does not; compile a test program.
4496 if test "$cross_compiling" = yes; then
4497 # try to guess the endianness by grepping values into an object file
4498 ac_cv_c_bigendian=unknown
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4506 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4507 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4508 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4509 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4510 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4514 _ascii (); _ebcdic ();
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4554 ac_cv_c_bigendian=yes
4556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557 if test "$ac_cv_c_bigendian" = unknown; then
4558 ac_cv_c_bigendian=no
4560 # finding both strings is unlikely to happen, but who knows?
4561 ac_cv_c_bigendian=unknown
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4584 /* Are we little or big endian? From Harbison&Steele. */
4588 char c[sizeof (long int)];
4591 return u.c[sizeof (long int) - 1] == 1;
4597 rm -f conftest$ac_exeext
4598 if { (ac_try="$ac_link"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_link") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_c_bigendian=no
4619 echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_c_bigendian=yes
4626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636 case $ac_cv_c_bigendian in
4644 { { echo "$as_me:$LINENO: error: unknown endianness
4645 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4646 echo "$as_me: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4648 { (exit 1); exit 1; }; } ;;
4652 if test "$cross_compiling" = yes; then
4653 LLVM_CROSS_COMPILING=1
4656 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4657 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4658 if test "${ac_cv_build_exeext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4662 ac_cv_build_exeext=.exe
4664 ac_build_prefix=${build_alias}-
4666 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4667 set dummy ${ac_build_prefix}gcc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$BUILD_CC"; then
4674 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 BUILD_CC=$ac_cv_prog_BUILD_CC
4694 if test -n "$BUILD_CC"; then
4695 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4696 echo "${ECHO_T}$BUILD_CC" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 if test -z "$BUILD_CC"; then
4704 # Extract the first word of "gcc", so it can be a program name with args.
4705 set dummy gcc; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$BUILD_CC"; then
4712 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_BUILD_CC="gcc"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 if test -z "$BUILD_CC"; then
4742 # Extract the first word of "cc", so it can be a program name with args.
4743 set dummy cc; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$BUILD_CC"; then
4750 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4761 ac_prog_rejected=yes
4764 ac_cv_prog_BUILD_CC="cc"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 if test $ac_prog_rejected = yes; then
4773 # We found a bogon in the path, so make sure we never use it.
4774 set dummy $ac_cv_prog_BUILD_CC
4776 if test $# != 0; then
4777 # We chose a different compiler from the bogus one.
4778 # However, it has the same basename, so the bogon will be chosen
4779 # first if we set BUILD_CC to just the basename; use the full file name.
4781 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4786 BUILD_CC=$ac_cv_prog_BUILD_CC
4787 if test -n "$BUILD_CC"; then
4788 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4789 echo "${ECHO_T}$BUILD_CC" >&6; }
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4798 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4799 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4800 { (exit 1); exit 1; }; }
4801 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4803 echo 'int main () { return 0; }' > conftest.$ac_ext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4806 (eval $ac_build_link) 2>&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
4810 for file in conftest.*; do
4812 *.c | *.o | *.obj | *.dSYM) ;;
4813 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4817 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4818 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4819 { (exit 1); exit 1; }; }
4822 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4827 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4828 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4829 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4830 ac_build_exeext=$BUILD_EXEEXT
4832 ac_build_prefix=${build_alias}-
4833 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4834 set dummy ${ac_build_prefix}g++; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 if test -n "$BUILD_CXX"; then
4841 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4861 if test -n "$BUILD_CXX"; then
4862 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4863 echo "${ECHO_T}$BUILD_CXX" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 if test -z "$BUILD_CXX"; then
4871 # Extract the first word of "g++", so it can be a program name with args.
4872 set dummy g++; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$BUILD_CXX"; then
4879 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_BUILD_CXX="g++"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4908 if test -z "$BUILD_CXX"; then
4909 # Extract the first word of "c++", so it can be a program name with args.
4910 set dummy c++; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 if test -n "$BUILD_CXX"; then
4917 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4928 ac_prog_rejected=yes
4931 ac_cv_prog_BUILD_CXX="c++"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 if test $ac_prog_rejected = yes; then
4940 # We found a bogon in the path, so make sure we never use it.
4941 set dummy $ac_cv_prog_BUILD_CXX
4943 if test $# != 0; then
4944 # We chose a different compiler from the bogus one.
4945 # However, it has the same basename, so the bogon will be chosen
4946 # first if we set BUILD_CXX to just the basename; use the full file name.
4948 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4953 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4954 if test -n "$BUILD_CXX"; then
4955 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4956 echo "${ECHO_T}$BUILD_CXX" >&6; }
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4966 LLVM_CROSS_COMPILING=0
4970 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4981 # Check whether --enable-libcpp was given.
4982 if test "${enable_libcpp+set}" = set; then
4983 enableval=$enable_libcpp;
4988 case "$enableval" in
4989 yes) ENABLE_LIBCPP=1
4993 default) ENABLE_LIBCPP=0
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4996 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
5000 # Check whether --enable-optimized was given.
5001 if test "${enable_optimized+set}" = set; then
5002 enableval=$enable_optimized;
5007 if test ${enableval} = "no" ; then
5011 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5015 # Check whether --enable-profiling was given.
5016 if test "${enable_profiling+set}" = set; then
5017 enableval=$enable_profiling;
5022 if test ${enableval} = "no" ; then
5026 ENABLE_PROFILING=ENABLE_PROFILING=1
5030 # Check whether --enable-assertions was given.
5031 if test "${enable_assertions+set}" = set; then
5032 enableval=$enable_assertions;
5037 if test ${enableval} = "yes" ; then
5041 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5045 # Check whether --enable-expensive-checks was given.
5046 if test "${enable_expensive_checks+set}" = set; then
5047 enableval=$enable_expensive_checks;
5052 if test ${enableval} = "yes" ; then
5053 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5055 EXPENSIVE_CHECKS=yes
5058 ENABLE_EXPENSIVE_CHECKS=
5064 # Check whether --enable-debug-runtime was given.
5065 if test "${enable_debug_runtime+set}" = set; then
5066 enableval=$enable_debug_runtime;
5071 if test ${enableval} = "no" ; then
5075 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5079 # Check whether --enable-debug-symbols was given.
5080 if test "${enable_debug_symbols+set}" = set; then
5081 enableval=$enable_debug_symbols;
5086 if test ${enableval} = "no" ; then
5090 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5094 # Check whether --enable-jit was given.
5095 if test "${enable_jit+set}" = set; then
5096 enableval=$enable_jit;
5101 if test ${enableval} = "no"
5106 case "$llvm_cv_target_arch" in
5107 x86) TARGET_HAS_JIT=1
5109 Sparc) TARGET_HAS_JIT=0
5111 PowerPC) TARGET_HAS_JIT=1
5113 x86_64) TARGET_HAS_JIT=1
5115 ARM) TARGET_HAS_JIT=1
5117 Mips) TARGET_HAS_JIT=1
5119 XCore) TARGET_HAS_JIT=0
5121 MSP430) TARGET_HAS_JIT=0
5123 Hexagon) TARGET_HAS_JIT=0
5125 MBlaze) TARGET_HAS_JIT=0
5127 PTX) TARGET_HAS_JIT=0
5134 # Check whether --enable-docs was given.
5135 if test "${enable_docs+set}" = set; then
5136 enableval=$enable_docs;
5141 case "$enableval" in
5146 default) ENABLE_DOCS=1
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5153 # Check whether --enable-doxygen was given.
5154 if test "${enable_doxygen+set}" = set; then
5155 enableval=$enable_doxygen;
5160 case "$enableval" in
5161 yes) ENABLE_DOXYGEN=1
5163 no) ENABLE_DOXYGEN=0
5165 default) ENABLE_DOXYGEN=0
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 # Check whether --enable-threads was given.
5173 if test "${enable_threads+set}" = set; then
5174 enableval=$enable_threads;
5179 case "$enableval" in
5180 yes) LLVM_ENABLE_THREADS=1
5182 no) LLVM_ENABLE_THREADS=0
5184 default) LLVM_ENABLE_THREADS=1
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5191 cat >>confdefs.h <<_ACEOF
5192 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5196 # Check whether --enable-pthreads was given.
5197 if test "${enable_pthreads+set}" = set; then
5198 enableval=$enable_pthreads;
5203 case "$enableval" in
5204 yes) ENABLE_PTHREADS=1
5206 no) ENABLE_PTHREADS=0
5208 default) ENABLE_PTHREADS=1
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 # Check whether --enable-pic was given.
5216 if test "${enable_pic+set}" = set; then
5217 enableval=$enable_pic;
5222 case "$enableval" in
5227 default) ENABLE_PIC=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 cat >>confdefs.h <<_ACEOF
5235 #define ENABLE_PIC $ENABLE_PIC
5239 # Check whether --enable-shared was given.
5240 if test "${enable_shared+set}" = set; then
5241 enableval=$enable_shared;
5246 case "$enableval" in
5247 yes) ENABLE_SHARED=1
5251 default) ENABLE_SHARED=0
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 # Check whether --enable-embed-stdcxx was given.
5259 if test "${enable_embed_stdcxx+set}" = set; then
5260 enableval=$enable_embed_stdcxx;
5265 case "$enableval" in
5266 yes) ENABLE_EMBED_STDCXX=1
5268 no) ENABLE_EMBED_STDCXX=0
5270 default) ENABLE_EMBED_STDCXX=0
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 # Check whether --enable-timestamps was given.
5278 if test "${enable_timestamps+set}" = set; then
5279 enableval=$enable_timestamps;
5284 case "$enableval" in
5285 yes) ENABLE_TIMESTAMPS=1
5287 no) ENABLE_TIMESTAMPS=0
5289 default) ENABLE_TIMESTAMPS=1
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 cat >>confdefs.h <<_ACEOF
5297 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5302 # Check whether --enable-targets was given.
5303 if test "${enable_targets+set}" = set; then
5304 enableval=$enable_targets;
5309 if test "$enableval" = host-only ; then
5312 case "$enableval" in
5313 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
5314 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5320 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5324 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5325 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5326 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5327 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5328 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5329 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5330 host) case "$llvm_cv_target_arch" in
5331 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5334 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5335 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5338 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5339 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5342 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5343 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5344 echo "$as_me: error: Can not set target to build" >&2;}
5345 { (exit 1); exit 1; }; } ;;
5347 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5348 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5349 { (exit 1); exit 1; }; } ;;
5354 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5357 for a_target in $TARGETS_TO_BUILD; do
5358 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5364 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5365 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5366 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5367 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5368 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5372 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5394 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5411 LLVM_ENUM_TARGETS=""
5412 LLVM_ENUM_ASM_PRINTERS=""
5413 LLVM_ENUM_ASM_PARSERS=""
5414 LLVM_ENUM_DISASSEMBLERS=""
5415 for target_to_build in $TARGETS_TO_BUILD; do
5416 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5417 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5418 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5420 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5421 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5423 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5424 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5433 # Check whether --with-optimize-option was given.
5434 if test "${with_optimize_option+set}" = set; then
5435 withval=$with_optimize_option;
5440 { echo "$as_me:$LINENO: checking optimization flags" >&5
5441 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5444 case "$llvm_cv_os_type" in
5445 FreeBSD) optimize_option=-O2 ;;
5446 MingW) optimize_option=-O2 ;;
5447 *) optimize_option=-O3 ;;
5449 *) optimize_option="$withval" ;;
5451 OPTIMIZE_OPTION=$optimize_option
5453 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5454 echo "${ECHO_T}$optimize_option" >&6; }
5457 # Check whether --with-extra-options was given.
5458 if test "${with_extra_options+set}" = set; then
5459 withval=$with_extra_options;
5465 default) EXTRA_OPTIONS= ;;
5466 *) EXTRA_OPTIONS=$withval ;;
5468 EXTRA_OPTIONS=$EXTRA_OPTIONS
5472 # Check whether --with-extra-ld-options was given.
5473 if test "${with_extra_ld_options+set}" = set; then
5474 withval=$with_extra_ld_options;
5480 default) EXTRA_LD_OPTIONS= ;;
5481 *) EXTRA_LD_OPTIONS=$withval ;;
5483 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5486 # Check whether --enable-bindings was given.
5487 if test "${enable_bindings+set}" = set; then
5488 enableval=$enable_bindings;
5493 BINDINGS_TO_BUILD=""
5494 case "$enableval" in
5495 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5496 all ) BINDINGS_TO_BUILD="ocaml" ;;
5497 none | no) BINDINGS_TO_BUILD="" ;;
5498 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5499 case "$a_binding" in
5500 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5501 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5502 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5503 { (exit 1); exit 1; }; } ;;
5510 # Check whether --with-ocaml-libdir was given.
5511 if test "${with_ocaml_libdir+set}" = set; then
5512 withval=$with_ocaml_libdir;
5518 auto) with_ocaml_libdir="$withval" ;;
5519 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5521 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5526 # Check whether --with-clang-srcdir was given.
5527 if test "${with_clang_srcdir+set}" = set; then
5528 withval=$with_clang_srcdir;
5534 -) clang_src_root="" ;;
5535 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5536 *) clang_src_root="$ac_pwd/$withval" ;;
5538 CLANG_SRC_ROOT=$clang_src_root
5542 # Check whether --with-clang-resource-dir was given.
5543 if test "${with_clang_resource_dir+set}" = set; then
5544 withval=$with_clang_resource_dir;
5550 cat >>confdefs.h <<_ACEOF
5551 #define CLANG_RESOURCE_DIR "$withval"
5556 # Check whether --with-c-include-dirs was given.
5557 if test "${with_c_include_dirs+set}" = set; then
5558 withval=$with_c_include_dirs;
5564 cat >>confdefs.h <<_ACEOF
5565 #define C_INCLUDE_DIRS "$withval"
5569 # Clang normally uses the system c++ headers and libraries. With this option,
5570 # clang will use the ones provided by a gcc installation instead. This option should
5571 # be passed the same value that was used with --prefix when configuring gcc.
5573 # Check whether --with-gcc-toolchain was given.
5574 if test "${with_gcc_toolchain+set}" = set; then
5575 withval=$with_gcc_toolchain;
5581 cat >>confdefs.h <<_ACEOF
5582 #define GCC_INSTALL_PREFIX "$withval"
5587 # Check whether --with-sysroot was given.
5588 if test "${with_sysroot+set}" = set; then
5589 withval=$with_sysroot;
5595 cat >>confdefs.h <<_ACEOF
5596 #define DEFAULT_SYSROOT "$withval"
5601 # Check whether --with-binutils-include was given.
5602 if test "${with_binutils_include+set}" = set; then
5603 withval=$with_binutils_include;
5609 default) WITH_BINUTILS_INCDIR=default ;;
5610 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5611 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5612 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5613 { (exit 1); exit 1; }; } ;;
5615 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5616 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5618 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5619 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5620 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5621 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5622 { (exit 1); exit 1; }; };
5627 # Check whether --with-bug-report-url was given.
5628 if test "${with_bug_report_url+set}" = set; then
5629 withval=$with_bug_report_url;
5631 withval="http://llvm.org/bugs/"
5635 cat >>confdefs.h <<_ACEOF
5636 #define BUG_REPORT_URL "$withval"
5640 # Check whether --enable-libffi was given.
5641 if test "${enable_libffi+set}" = set; then
5642 enableval=$enable_libffi; case "$enableval" in
5643 yes) llvm_cv_enable_libffi="yes" ;;
5644 no) llvm_cv_enable_libffi="no" ;;
5645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5646 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5650 llvm_cv_enable_libffi=no
5655 # Check whether --with-internal-prefix was given.
5656 if test "${with_internal_prefix+set}" = set; then
5657 withval=$with_internal_prefix;
5662 INTERNAL_PREFIX=$withval
5666 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5667 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5668 if test "${lt_cv_path_NM+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -n "$NM"; then
5672 # Let the user override the test.
5675 lt_nm_to_check="${ac_tool_prefix}nm"
5676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5677 lt_nm_to_check="$lt_nm_to_check nm"
5679 for lt_tmp_nm in $lt_nm_to_check; do
5680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5683 test -z "$ac_dir" && ac_dir=.
5684 tmp_nm="$ac_dir/$lt_tmp_nm"
5685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5686 # Check to see if the nm accepts a BSD-compat flag.
5687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5688 # nm: unknown option "B" ignored
5689 # Tru64's nm complains that /dev/null is an invalid object file
5690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5691 */dev/null* | *'Invalid file or object type'*)
5692 lt_cv_path_NM="$tmp_nm -B"
5696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5698 lt_cv_path_NM="$tmp_nm -p"
5702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5703 continue # so that we can try to find one that supports BSD flags
5712 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5715 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5716 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5721 { echo "$as_me:$LINENO: checking for GNU make" >&5
5722 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5723 if test "${llvm_cv_gnu_make_command+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 llvm_cv_gnu_make_command=''
5727 for a in "$MAKE" make gmake gnumake ; do
5728 if test -z "$a" ; then continue ; fi ;
5729 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5731 llvm_cv_gnu_make_command=$a ;
5736 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5737 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5738 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5742 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5743 echo "${ECHO_T}\"Not found\"" >&6; };
5747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5750 if test "$LN_S" = "ln -s"; then
5751 { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5754 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5755 echo "${ECHO_T}no, using $LN_S" >&6; }
5758 # Extract the first word of "cmp", so it can be a program name with args.
5759 set dummy cmp; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_path_CMP+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5790 if test -n "$CMP"; then
5791 { echo "$as_me:$LINENO: result: $CMP" >&5
5792 echo "${ECHO_T}$CMP" >&6; }
5794 { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5799 # Extract the first word of "cp", so it can be a program name with args.
5800 set dummy cp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CP+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5831 if test -n "$CP"; then
5832 { echo "$as_me:$LINENO: result: $CP" >&5
5833 echo "${ECHO_T}$CP" >&6; }
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5840 # Extract the first word of "date", so it can be a program name with args.
5841 set dummy date; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_DATE+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5871 DATE=$ac_cv_path_DATE
5872 if test -n "$DATE"; then
5873 { echo "$as_me:$LINENO: result: $DATE" >&5
5874 echo "${ECHO_T}$DATE" >&6; }
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5881 # Extract the first word of "find", so it can be a program name with args.
5882 set dummy find; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_FIND+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5912 FIND=$ac_cv_path_FIND
5913 if test -n "$FIND"; then
5914 { echo "$as_me:$LINENO: result: $FIND" >&5
5915 echo "${ECHO_T}$FIND" >&6; }
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5922 # Extract the first word of "grep", so it can be a program name with args.
5923 set dummy grep; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_GREP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5953 GREP=$ac_cv_path_GREP
5954 if test -n "$GREP"; then
5955 { echo "$as_me:$LINENO: result: $GREP" >&5
5956 echo "${ECHO_T}$GREP" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5963 # Extract the first word of "mkdir", so it can be a program name with args.
5964 set dummy mkdir; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_MKDIR+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5994 MKDIR=$ac_cv_path_MKDIR
5995 if test -n "$MKDIR"; then
5996 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5997 echo "${ECHO_T}$MKDIR" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 # Extract the first word of "mv", so it can be a program name with args.
6005 set dummy mv; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MV+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6036 if test -n "$MV"; then
6037 { echo "$as_me:$LINENO: result: $MV" >&5
6038 echo "${ECHO_T}$MV" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_RANLIB+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test -n "$RANLIB"; then
6054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 RANLIB=$ac_cv_prog_RANLIB
6074 if test -n "$RANLIB"; then
6075 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6076 echo "${ECHO_T}$RANLIB" >&6; }
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6084 if test -z "$ac_cv_prog_RANLIB"; then
6085 ac_ct_RANLIB=$RANLIB
6086 # Extract the first word of "ranlib", so it can be a program name with args.
6087 set dummy ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 if test -n "$ac_ct_RANLIB"; then
6094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_RANLIB="ranlib"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6114 if test -n "$ac_ct_RANLIB"; then
6115 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6116 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6118 { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6122 if test "x$ac_ct_RANLIB" = x; then
6125 case $cross_compiling:$ac_tool_warned in
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet. If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6135 RANLIB=$ac_ct_RANLIB
6138 RANLIB="$ac_cv_prog_RANLIB"
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ar; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_AR+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 if test -n "$AR"; then
6150 ac_cv_prog_AR="$AR" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_AR="${ac_tool_prefix}ar"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 if test -n "$AR"; then
6171 { echo "$as_me:$LINENO: result: $AR" >&5
6172 echo "${ECHO_T}$AR" >&6; }
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6180 if test -z "$ac_cv_prog_AR"; then
6182 # Extract the first word of "ar", so it can be a program name with args.
6183 set dummy ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$ac_ct_AR"; then
6190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_AR="ar"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6210 if test -n "$ac_ct_AR"; then
6211 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6212 echo "${ECHO_T}$ac_ct_AR" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6218 if test "x$ac_ct_AR" = x; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet. If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet. If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6237 # Extract the first word of "rm", so it can be a program name with args.
6238 set dummy rm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_RM+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6269 if test -n "$RM"; then
6270 { echo "$as_me:$LINENO: result: $RM" >&5
6271 echo "${ECHO_T}$RM" >&6; }
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6278 # Extract the first word of "sed", so it can be a program name with args.
6279 set dummy sed; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_SED+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6310 if test -n "$SED"; then
6311 { echo "$as_me:$LINENO: result: $SED" >&5
6312 echo "${ECHO_T}$SED" >&6; }
6314 { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6319 # Extract the first word of "tar", so it can be a program name with args.
6320 set dummy tar; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_TAR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6351 if test -n "$TAR"; then
6352 { echo "$as_me:$LINENO: result: $TAR" >&5
6353 echo "${ECHO_T}$TAR" >&6; }
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6360 # Extract the first word of "pwd", so it can be a program name with args.
6361 set dummy pwd; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_BINPWD+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6391 BINPWD=$ac_cv_path_BINPWD
6392 if test -n "$BINPWD"; then
6393 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6394 echo "${ECHO_T}$BINPWD" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6402 # Extract the first word of "Graphviz", so it can be a program name with args.
6403 set dummy Graphviz; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6433 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6434 if test -n "$GRAPHVIZ"; then
6435 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6436 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6438 { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6443 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_GRAPHVIZ 1
6449 if test "$llvm_cv_os_type" = "MingW" ; then
6450 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458 # Extract the first word of "dot", so it can be a program name with args.
6459 set dummy dot; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOT+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6490 if test -n "$DOT"; then
6491 { echo "$as_me:$LINENO: result: $DOT" >&5
6492 echo "${ECHO_T}$DOT" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6499 if test "$DOT" != "echo dot" ; then
6501 cat >>confdefs.h <<\_ACEOF
6505 if test "$llvm_cv_os_type" = "MingW" ; then
6506 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514 # Extract the first word of "fdp", so it can be a program name with args.
6515 set dummy fdp; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_path_FDP+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6546 if test -n "$FDP"; then
6547 { echo "$as_me:$LINENO: result: $FDP" >&5
6548 echo "${ECHO_T}$FDP" >&6; }
6550 { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6555 if test "$FDP" != "echo fdp" ; then
6557 cat >>confdefs.h <<\_ACEOF
6561 if test "$llvm_cv_os_type" = "MingW" ; then
6562 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6565 cat >>confdefs.h <<_ACEOF
6566 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570 # Extract the first word of "neato", so it can be a program name with args.
6571 set dummy neato; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_NEATO+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6601 NEATO=$ac_cv_path_NEATO
6602 if test -n "$NEATO"; then
6603 { echo "$as_me:$LINENO: result: $NEATO" >&5
6604 echo "${ECHO_T}$NEATO" >&6; }
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6611 if test "$NEATO" != "echo neato" ; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_NEATO 1
6617 if test "$llvm_cv_os_type" = "MingW" ; then
6618 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6621 cat >>confdefs.h <<_ACEOF
6622 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626 # Extract the first word of "twopi", so it can be a program name with args.
6627 set dummy twopi; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TWOPI+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6657 TWOPI=$ac_cv_path_TWOPI
6658 if test -n "$TWOPI"; then
6659 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6660 echo "${ECHO_T}$TWOPI" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 if test "$TWOPI" != "echo twopi" ; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_TWOPI 1
6673 if test "$llvm_cv_os_type" = "MingW" ; then
6674 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6677 cat >>confdefs.h <<_ACEOF
6678 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682 # Extract the first word of "circo", so it can be a program name with args.
6683 set dummy circo; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_CIRCO+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6713 CIRCO=$ac_cv_path_CIRCO
6714 if test -n "$CIRCO"; then
6715 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6716 echo "${ECHO_T}$CIRCO" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 if test "$CIRCO" != "echo circo" ; then
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_CIRCO 1
6729 if test "$llvm_cv_os_type" = "MingW" ; then
6730 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733 cat >>confdefs.h <<_ACEOF
6734 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738 for ac_prog in gv gsview32
6740 # Extract the first word of "$ac_prog", so it can be a program name with args.
6741 set dummy $ac_prog; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GV+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 if test -n "$GV"; then
6772 { echo "$as_me:$LINENO: result: $GV" >&5
6773 echo "${ECHO_T}$GV" >&6; }
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6780 test -n "$GV" && break
6782 test -n "$GV" || GV="echo gv"
6784 if test "$GV" != "echo gv" ; then
6786 cat >>confdefs.h <<\_ACEOF
6790 if test "$llvm_cv_os_type" = "MingW" ; then
6791 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6794 cat >>confdefs.h <<_ACEOF
6795 #define LLVM_PATH_GV "$GV${EXEEXT}"
6799 # Extract the first word of "dotty", so it can be a program name with args.
6800 set dummy dotty; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_DOTTY+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6830 DOTTY=$ac_cv_path_DOTTY
6831 if test -n "$DOTTY"; then
6832 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6833 echo "${ECHO_T}$DOTTY" >&6; }
6835 { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6840 if test "$DOTTY" != "echo dotty" ; then
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DOTTY 1
6846 if test "$llvm_cv_os_type" = "MingW" ; then
6847 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6850 cat >>confdefs.h <<_ACEOF
6851 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855 # Extract the first word of "xdot.py", so it can be a program name with args.
6856 set dummy xdot.py; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6886 XDOT_PY=$ac_cv_path_XDOT_PY
6887 if test -n "$XDOT_PY"; then
6888 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6889 echo "${ECHO_T}$XDOT_PY" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 if test "$XDOT_PY" != "echo xdot.py" ; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_XDOT_PY 1
6902 if test "$llvm_cv_os_type" = "MingW" ; then
6903 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6906 cat >>confdefs.h <<_ACEOF
6907 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6912 # Find a good install program. We prefer a C program (faster),
6913 # so one script is as good as another. But avoid the broken or
6914 # incompatible versions:
6915 # SysV /etc/install, /usr/sbin/install
6916 # SunOS /usr/etc/install
6917 # IRIX /sbin/install
6919 # AmigaOS /C/install, which installs bootblocks on floppy discs
6920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6923 # OS/2's system install, which has a completely different semantic
6924 # ./install, which can be erroneously created by make from ./install.sh.
6925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6927 if test -z "$INSTALL"; then
6928 if test "${ac_cv_path_install+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 # Account for people who put trailing slashes in PATH elements.
6938 ./ | .// | /cC/* | \
6939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6943 # OSF1 and SCO ODT 3.0 have their own names for install.
6944 # Don't use installbsd from OSF since it installs stuff as root
6946 for ac_prog in ginstall scoinst install; do
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6949 if test $ac_prog = install &&
6950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6951 # AIX install. It has an incompatible calling convention.
6953 elif test $ac_prog = install &&
6954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955 # program-specific install script used by HP pwplus--don't use.
6958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6971 if test "${ac_cv_path_install+set}" = set; then
6972 INSTALL=$ac_cv_path_install
6974 # As a last resort, use the slow shell script. Don't cache a
6975 # value for INSTALL within a source directory, because that will
6976 # break other packages using the cache if that directory is
6977 # removed, or if the value is a relative name.
6978 INSTALL=$ac_install_sh
6981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6982 echo "${ECHO_T}$INSTALL" >&6; }
6984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6985 # It thinks the first close brace ends the variable substitution.
6986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6993 [\\/$]* | ?:[\\/]* ) ;;
6994 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6997 # Extract the first word of "bzip2", so it can be a program name with args.
6998 set dummy bzip2; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_BZIP2+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 BZIP2=$ac_cv_path_BZIP2
7028 if test -n "$BZIP2"; then
7029 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7030 echo "${ECHO_T}$BZIP2" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 # Extract the first word of "cat", so it can be a program name with args.
7038 set dummy cat; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_CAT+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 if test -n "$CAT"; then
7069 { echo "$as_me:$LINENO: result: $CAT" >&5
7070 echo "${ECHO_T}$CAT" >&6; }
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "doxygen", so it can be a program name with args.
7078 set dummy doxygen; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 DOXYGEN=$ac_cv_path_DOXYGEN
7108 if test -n "$DOXYGEN"; then
7109 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7110 echo "${ECHO_T}$DOXYGEN" >&6; }
7112 { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7117 # Extract the first word of "groff", so it can be a program name with args.
7118 set dummy groff; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_GROFF+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 GROFF=$ac_cv_path_GROFF
7148 if test -n "$GROFF"; then
7149 { echo "$as_me:$LINENO: result: $GROFF" >&5
7150 echo "${ECHO_T}$GROFF" >&6; }
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7157 # Extract the first word of "gzip", so it can be a program name with args.
7158 set dummy gzip; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 GZIPBIN=$ac_cv_path_GZIPBIN
7188 if test -n "$GZIPBIN"; then
7189 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7190 echo "${ECHO_T}$GZIPBIN" >&6; }
7192 { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7197 # Extract the first word of "pod2html", so it can be a program name with args.
7198 set dummy pod2html; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_POD2HTML+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 POD2HTML=$ac_cv_path_POD2HTML
7228 if test -n "$POD2HTML"; then
7229 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7230 echo "${ECHO_T}$POD2HTML" >&6; }
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7237 # Extract the first word of "pod2man", so it can be a program name with args.
7238 set dummy pod2man; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_POD2MAN+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 POD2MAN=$ac_cv_path_POD2MAN
7268 if test -n "$POD2MAN"; then
7269 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7270 echo "${ECHO_T}$POD2MAN" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "pdfroff", so it can be a program name with args.
7278 set dummy pdfroff; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PDFROFF+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 PDFROFF=$ac_cv_path_PDFROFF
7308 if test -n "$PDFROFF"; then
7309 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7310 echo "${ECHO_T}$PDFROFF" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 # Extract the first word of "runtest", so it can be a program name with args.
7318 set dummy runtest; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_RUNTEST+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 RUNTEST=$ac_cv_path_RUNTEST
7348 if test -n "$RUNTEST"; then
7349 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7350 echo "${ECHO_T}$RUNTEST" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7359 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7360 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7362 # Check whether --with-tclinclude was given.
7363 if test "${with_tclinclude+set}" = set; then
7364 withval=$with_tclinclude; with_tclinclude=${withval}
7369 if test "${ac_cv_path_tclsh+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 if test x"${with_tclinclude}" != x ; then
7374 if test -f ${with_tclinclude}/tclsh ; then
7375 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7376 elif test -f ${with_tclinclude}/src/tclsh ; then
7377 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7379 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7380 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7381 { (exit 1); exit 1; }; }
7387 if test x"${ac_cv_path_tclsh}" = x ; then
7388 { echo "$as_me:$LINENO: result: none" >&5
7389 echo "${ECHO_T}none" >&6; }
7390 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7392 # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_TCLSH+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 TCLSH=$ac_cv_path_TCLSH
7423 if test -n "$TCLSH"; then
7424 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7425 echo "${ECHO_T}$TCLSH" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 test -n "$TCLSH" && break
7435 if test x"${TCLSH}" = x ; then
7436 ac_cv_path_tclsh='';
7438 ac_cv_path_tclsh="${TCLSH}";
7441 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7442 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7443 TCLSH="${ac_cv_path_tclsh}"
7447 # Extract the first word of "zip", so it can be a program name with args.
7448 set dummy zip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_ZIP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 if test -n "$ZIP"; then
7479 { echo "$as_me:$LINENO: result: $ZIP" >&5
7480 echo "${ECHO_T}$ZIP" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 for ac_prog in ocamlc
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLC+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 OCAMLC=$ac_cv_path_OCAMLC
7520 if test -n "$OCAMLC"; then
7521 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7522 echo "${ECHO_T}$OCAMLC" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 test -n "$OCAMLC" && break
7532 for ac_prog in ocamlopt
7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 OCAMLOPT=$ac_cv_path_OCAMLOPT
7565 if test -n "$OCAMLOPT"; then
7566 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7567 echo "${ECHO_T}$OCAMLOPT" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 test -n "$OCAMLOPT" && break
7577 for ac_prog in ocamldep
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 OCAMLDEP=$ac_cv_path_OCAMLDEP
7610 if test -n "$OCAMLDEP"; then
7611 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7612 echo "${ECHO_T}$OCAMLDEP" >&6; }
7614 { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7619 test -n "$OCAMLDEP" && break
7622 for ac_prog in ocamldoc
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 OCAMLDOC=$ac_cv_path_OCAMLDOC
7655 if test -n "$OCAMLDOC"; then
7656 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7657 echo "${ECHO_T}$OCAMLDOC" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7664 test -n "$OCAMLDOC" && break
7667 for ac_prog in gas as
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_GAS+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 if test -n "$GAS"; then
7701 { echo "$as_me:$LINENO: result: $GAS" >&5
7702 echo "${ECHO_T}$GAS" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$GAS" && break
7713 { echo "$as_me:$LINENO: checking for linker version" >&5
7714 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7715 if test "${llvm_cv_link_version+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 version_string="$(ld -v 2>&1 | head -1)"
7722 if (echo "$version_string" | grep -q "ld64"); then
7723 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7725 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7729 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7730 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7732 cat >>confdefs.h <<_ACEOF
7733 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7738 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7739 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7740 if test "${llvm_cv_link_use_r+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 CFLAGS="$CFLAGS -Wl,-R."
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_link") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1 >conftest.err
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7781 { (case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_try") 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 llvm_cv_link_use_r=yes
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 llvm_cv_link_use_r=no
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7820 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7821 if test "$llvm_cv_link_use_r" = yes ; then
7823 cat >>confdefs.h <<\_ACEOF
7824 #define HAVE_LINK_R 1
7830 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7831 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_link") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 llvm_cv_link_use_export_dynamic=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 llvm_cv_link_use_export_dynamic=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7913 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_EXPORT_DYNAMIC 1
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_version_script+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 # The following code is from the autoconf manual,
7936 # "11.13: Limitations of Usual Tools".
7937 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7938 # Use mktemp if possible; otherwise fall back on mkdir,
7939 # with $RANDOM to make collisions less likely.
7943 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7945 test -n "$tmp" && test -d "$tmp"
7947 tmp=$TMPDIR/foo$$-$RANDOM
7948 (umask 077 && mkdir "$tmp")
7951 echo "{" > "$tmp/export.map"
7952 echo " global: main;" >> "$tmp/export.map"
7953 echo " local: *;" >> "$tmp/export.map"
7954 echo "};" >> "$tmp/export.map"
7956 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_link") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_try") 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try='test -s conftest$ac_exeext'
7997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 llvm_cv_link_use_version_script=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 llvm_cv_link_use_version_script=no
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 rm "$tmp/export.map"
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8028 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8029 if test "$llvm_cv_link_use_version_script" = yes ; then
8030 HAVE_LINK_VERSION_SCRIPT=1
8037 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8039 if test "${ac_cv_c_const+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8052 /* FIXME: Include the comments suggested by Paul. */
8054 /* Ultrix mips cc rejects this. */
8055 typedef int charset[2];
8057 /* SunOS 4.1.1 cc rejects this. */
8058 char const *const *ccp;
8060 /* NEC SVR4.0.2 mips cc rejects this. */
8061 struct point {int x, y;};
8062 static struct point const zero = {0,0};
8063 /* AIX XL C 1.02.0.0 rejects this.
8064 It does not let you subtract one const X* pointer from another in
8065 an arm of an if-expression whose if-part is not a constant
8067 const char *g = "string";
8068 ccp = &g + (g ? g-g : 0);
8069 /* HPUX 7.0 cc rejects these. */
8072 ccp = (char const *const *) p;
8073 { /* SCO 3.2v4 cc rejects this. */
8075 char const *s = 0 ? (char *) 0 : (char const *) 0;
8080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8082 const int *foo = &x[0];
8085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8086 typedef const int *iptr;
8090 { /* AIX XL C 1.02.0.0 rejects this saying
8091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8092 struct s { int j; const int *ap[3]; };
8093 struct s *b; b->j = 5;
8095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8099 return !x[0] && !zero.x;
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8151 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8152 if test $ac_cv_c_const = no; then
8154 cat >>confdefs.h <<\_ACEOF
8166 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8167 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8169 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_try") 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 eval "$as_ac_Header=yes"
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 eval "$as_ac_Header=no"
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 ac_res=`eval echo '${'$as_ac_Header'}'`
8236 { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8243 ac_header_dirent=$ac_hdr; break
8247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8248 if test $ac_header_dirent = dirent.h; then
8249 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8251 if test "${ac_cv_search_opendir+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 ac_func_search_save_LIBS=$LIBS
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8262 /* Override any GCC internal prototype to avoid an error.
8263 Use char because int might match the return type of a GCC
8264 builtin and then its argument prototype would still apply. */
8277 for ac_lib in '' dir; do
8278 if test -z "$ac_lib"; then
8279 ac_res="none required"
8282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (ac_try="$ac_link"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_link") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_search_opendir=$ac_res
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f core conftest.err conftest.$ac_objext \
8328 if test "${ac_cv_search_opendir+set}" = set; then
8332 if test "${ac_cv_search_opendir+set}" = set; then
8335 ac_cv_search_opendir=no
8338 LIBS=$ac_func_search_save_LIBS
8340 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8341 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8342 ac_res=$ac_cv_search_opendir
8343 if test "$ac_res" != no; then
8344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8349 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8351 if test "${ac_cv_search_opendir+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 ac_func_search_save_LIBS=$LIBS
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8362 /* Override any GCC internal prototype to avoid an error.
8363 Use char because int might match the return type of a GCC
8364 builtin and then its argument prototype would still apply. */
8377 for ac_lib in '' x; do
8378 if test -z "$ac_lib"; then
8379 ac_res="none required"
8382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_search_opendir=$ac_res
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8426 rm -f core conftest.err conftest.$ac_objext \
8428 if test "${ac_cv_search_opendir+set}" = set; then
8432 if test "${ac_cv_search_opendir+set}" = set; then
8435 ac_cv_search_opendir=no
8438 LIBS=$ac_func_search_save_LIBS
8440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8442 ac_res=$ac_cv_search_opendir
8443 if test "$ac_res" != no; then
8444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8451 for ac_header in dlfcn.h
8453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_res=`eval echo '${'$as_ac_Header'}'`
8461 { echo "$as_me:$LINENO: result: $ac_res" >&5
8462 echo "${ECHO_T}$ac_res" >&6; }
8464 # Is the header compilable?
8465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <$ac_header>
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null; then
8546 if test -s conftest.err; then
8547 ac_cpp_err=$ac_c_preproc_warn_flag
8548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8555 if test -z "$ac_cpp_err"; then
8556 ac_header_preproc=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_header_preproc=no
8564 rm -f conftest.err conftest.$ac_ext
8565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6; }
8568 # So? What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575 ac_header_preproc=yes
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8591 ## ------------------------------------ ##
8592 ## Report this to http://llvm.org/bugs/ ##
8593 ## ------------------------------------ ##
8595 ) | sed "s/^/$as_me: WARNING: /" >&2
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 eval "$as_ac_Header=\$ac_header_preproc"
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606 { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 # Check whether --enable-ltdl-install was given.
8620 if test "${enable_ltdl_install+set}" = set; then
8621 enableval=$enable_ltdl_install;
8627 if test x"${enable_ltdl_install-no}" != xno; then
8629 INSTALL_LTDL_FALSE='#'
8631 INSTALL_LTDL_TRUE='#'
8637 if test x"${enable_ltdl_convenience-no}" != xno; then
8638 CONVENIENCE_LTDL_TRUE=
8639 CONVENIENCE_LTDL_FALSE='#'
8641 CONVENIENCE_LTDL_TRUE='#'
8642 CONVENIENCE_LTDL_FALSE=
8646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8649 libname_spec='lib$name'
8657 shlibpath_overrides_runpath=unknown
8659 dynamic_linker="$host_os ld.so"
8660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8661 if test "$GCC" = yes; then
8662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8664 # if the path contains ";" then we assume it to be the separator
8665 # otherwise default to the standard path separator (i.e. ":") - it is
8666 # assumed that no part of a normal pathname contains ";" but that should
8667 # okay in the real world where ";" in dirpaths is itself problematic.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675 need_lib_prefix=unknown
8676 hardcode_into_libs=no
8678 # when you set need_version to no, make sure it does not cause -set_version
8679 # flags to be left without arguments
8680 need_version=unknown
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8686 shlibpath_var=LIBPATH
8688 # AIX 3 has no versioning support, so we append a major version to the name.
8689 soname_spec='${libname}${release}${shared_ext}$major'
8696 hardcode_into_libs=yes
8697 if test "$host_cpu" = ia64; then
8698 # AIX 5 supports IA64
8699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8700 shlibpath_var=LD_LIBRARY_PATH
8702 # With GCC up to 2.95.x, collect2 would create an import file
8703 # for dependence libraries. The import file would start with
8704 # the line `#! .'. This would cause the generated library to
8705 # depend on `.', always an invalid library. This was fixed in
8706 # development snapshots of GCC prior to 3.0.
8708 aix4 | aix4.[01] | aix4.[01].*)
8709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8719 # soname into executable. Probably we can add versioning support to
8720 # collect2, so additional links can be useful in future.
8721 if test "$aix_use_runtimelinking" = yes; then
8722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8723 # instead of lib<name>.a to let people know that these are not
8724 # typical AIX shared libraries.
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 # We preserve .a as extension for shared libraries through AIX4.2
8728 # and later when we are not doing run time linking.
8729 library_names_spec='${libname}${release}.a $libname.a'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8732 shlibpath_var=LIBPATH
8737 library_names_spec='$libname.ixlibrary $libname.a'
8738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8739 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'
8743 library_names_spec='${libname}${shared_ext}'
8744 dynamic_linker="$host_os ld.so"
8745 shlibpath_var=LIBRARY_PATH
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8757 # the default ld.so.conf also contains /usr/contrib/lib and
8758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8759 # libtool to hard-code these into programs
8762 cygwin* | mingw* | pw32*)
8763 version_type=windows
8768 case $GCC,$host_os in
8769 yes,cygwin* | yes,mingw* | yes,pw32*)
8770 library_names_spec='$libname.dll.a'
8771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8772 postinstall_cmds='base_file=`basename \${file}`~
8773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8774 dldir=$destdir/`dirname \$dlpath`~
8775 test -d \$dldir || mkdir -p \$dldir~
8776 $install_prog $dir/$dlname \$dldir/$dlname~
8777 chmod a+x \$dldir/$dlname'
8778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8779 dlpath=$dir/\$dldll~
8781 shlibpath_overrides_runpath=yes
8785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8790 # MinGW DLLs use traditional 'lib' prefix
8791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8794 # It is most probably a Windows format PATH printed by
8795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8796 # path with ; separators, and with drive letters. We can handle the
8797 # drive letters (cygwin fileutils understands them), so leave them,
8798 # especially as we might pass files found there to a mingw objdump,
8799 # which wouldn't understand a cygwinified path. Ahh.
8800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8806 # pw32 DLLs use 'pw' prefix rather than 'lib'
8807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8816 dynamic_linker='Win32 ld.exe'
8817 # FIXME: first we should search . and the directory the executable is in
8821 darwin* | rhapsody*)
8822 dynamic_linker="$host_os dyld"
8826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8827 soname_spec='${libname}${release}${major}$shared_ext'
8828 shlibpath_overrides_runpath=yes
8829 shlibpath_var=DYLD_LIBRARY_PATH
8830 shrext_cmds='.dylib'
8831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8832 if test "$GCC" = yes; then
8833 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"`
8835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 shlibpath_overrides_runpath=no
8861 hardcode_into_libs=yes
8862 dynamic_linker='GNU ld.so'
8865 freebsd* | dragonfly*)
8866 # DragonFly does not have aout. When/if they implement a new
8867 # versioning mechanism, adjust this.
8868 if test -x /usr/bin/objformat; then
8869 objformat=`/usr/bin/objformat`
8872 freebsd[123].*) objformat=aout ;;
8876 version_type=freebsd-$objformat
8877 case $version_type in
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8888 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=yes
8893 freebsd3.[01]* | freebsdelf3.[01]*)
8894 shlibpath_overrides_runpath=yes
8895 hardcode_into_libs=yes
8897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8899 shlibpath_overrides_runpath=no
8900 hardcode_into_libs=yes
8902 freebsd*) # from 4.6 on
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 hardcode_into_libs=yes
8919 hpux9* | hpux10* | hpux11*)
8920 # Give a soname corresponding to the major version so that dld.sl refuses to
8921 # link against other versions.
8928 hardcode_into_libs=yes
8929 dynamic_linker="$host_os dld.so"
8930 shlibpath_var=LD_LIBRARY_PATH
8931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 if test "X$HPUX_IA64_MODE" = X32; then
8935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8943 hardcode_into_libs=yes
8944 dynamic_linker="$host_os dld.sl"
8945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954 dynamic_linker="$host_os dld.sl"
8955 shlibpath_var=SHLIB_PATH
8956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8962 postinstall_cmds='chmod 555 $lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=no
8974 hardcode_into_libs=yes
8977 irix5* | irix6* | nonstopux*)
8979 nonstopux*) version_type=nonstopux ;;
8981 if test "$lt_cv_prog_gnu_ld" = yes; then
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8992 irix5* | nonstopux*)
8996 case $LD in # libtool.m4 will add one of these switches to LD
8997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8998 libsuff= shlibsuff= libmagic=32-bit;;
8999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9000 libsuff=32 shlibsuff=N32 libmagic=N32;;
9001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9003 *) libsuff= shlibsuff= libmagic=never-match;;
9007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9008 shlibpath_overrides_runpath=no
9009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9011 hardcode_into_libs=yes
9014 # No shared lib support for Linux oldld, aout, or coff.
9015 linux*oldld* | linux*aout* | linux*coff*)
9019 # This must be Linux ELF.
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=no
9029 # This implies no fast_install, which is unacceptable.
9030 # Some rework will be needed to allow for fast_install
9031 # before this can be enabled.
9032 hardcode_into_libs=yes
9034 # Append ld.so.conf contents to the search path
9035 if test -f /etc/ld.so.conf; then
9036 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' ' '`
9037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9040 # We used to test for /lib/ld.so.1 and disable shared libraries on
9041 # powerpc, because MkLinux only supported shared libraries with the
9042 # GNU dynamic linker. Since this was broken with cross compilers,
9043 # most powerpc-linux boxes support dynamic linking these days and
9044 # people can always --disable-shared, the test was removed, and we
9045 # assume the GNU/Linux dynamic linker is in use.
9046 dynamic_linker='GNU/Linux ld.so'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=no
9057 hardcode_into_libs=yes
9058 dynamic_linker='GNU ld.so'
9065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 dynamic_linker='NetBSD (a.out) ld.so'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 dynamic_linker='NetBSD ld.elf_so'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 hardcode_into_libs=yes
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9098 sys_lib_dlsearch_path_spec="/usr/lib"
9100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9103 *) need_version=no ;;
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9110 openbsd2.[89] | openbsd2.[89].*)
9111 shlibpath_overrides_runpath=no
9114 shlibpath_overrides_runpath=yes
9118 shlibpath_overrides_runpath=yes
9123 libname_spec='$name'
9126 library_names_spec='$libname${shared_ext} $libname.a'
9127 dynamic_linker='OS/2 ld.exe'
9128 shlibpath_var=LIBPATH
9131 osf3* | osf4* | osf5*)
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=yes
9150 hardcode_into_libs=yes
9151 # ldd complains unless libraries are executable
9152 postinstall_cmds='chmod +x $lib'
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 if test "$with_gnu_ld" = yes; then
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 case $host_vendor in
9174 shlibpath_overrides_runpath=no
9176 export_dynamic_flag_spec='${wl}-Blargedynsym'
9177 runpath_var=LD_RUN_PATH
9185 shlibpath_overrides_runpath=no
9186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9192 if test -d /usr/nec ;then
9194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9195 soname_spec='$libname${shared_ext}.$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9201 version_type=freebsd-elf
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 hardcode_into_libs=yes
9208 if test "$with_gnu_ld" = yes; then
9209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9210 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9213 shlibpath_overrides_runpath=yes
9216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9220 sys_lib_dlsearch_path_spec='/usr/lib'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9235 echo "${ECHO_T}$dynamic_linker" >&6; }
9236 test "$dynamic_linker" = no && can_build_shared=no
9238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9239 if test "$GCC" = yes; then
9240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9244 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9245 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_shlibext+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 eval libltdl_cv_shlibext=$shrext_cmds
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9255 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9256 if test -n "$libltdl_cv_shlibext"; then
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9265 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9266 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 libltdl_cv_shlibpath_var="$shlibpath_var"
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9273 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9274 if test -n "$libltdl_cv_shlibpath_var"; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9283 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9284 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9285 if test "${libltdl_cv_sys_search_path+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9290 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9291 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9292 if test -n "$libltdl_cv_sys_search_path"; then
9294 for dir in $libltdl_cv_sys_search_path; do
9295 if test -z "$sys_search_path"; then
9296 sys_search_path="$dir"
9298 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9302 cat >>confdefs.h <<_ACEOF
9303 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9308 { echo "$as_me:$LINENO: checking for objdir" >&5
9309 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9310 if test "${libltdl_cv_objdir+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 libltdl_cv_objdir="$objdir"
9314 if test -n "$objdir"; then
9317 rm -f .libs 2>/dev/null
9318 mkdir .libs 2>/dev/null
9319 if test -d .libs; then
9320 libltdl_cv_objdir=.libs
9322 # MS-DOS does not allow filenames that begin with a dot.
9323 libltdl_cv_objdir=_libs
9325 rmdir .libs 2>/dev/null
9329 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9330 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9332 cat >>confdefs.h <<_ACEOF
9333 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9341 # Check for command to grab the raw symbol name followed by C symbol from nm.
9342 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9343 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9344 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 # These are sane defaults that work on at least a few old systems.
9349 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9351 # Character class describing NM global symbol codes.
9352 symcode='[BCDEGRST]'
9354 # Regexp to match symbols that can be accessed directly from C.
9355 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9357 # Transform an extracted symbol line into a proper C declaration
9358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9360 # Transform an extracted symbol line into symbol name and symbol address
9361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9363 # Define system-specific variables.
9368 cygwin* | mingw* | pw32*)
9369 symcode='[ABCDGISTW]'
9371 hpux*) # Its linker distinguishes data from code symbols
9372 if test "$host_cpu" = ia64; then
9373 symcode='[ABCDEGRST]'
9375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9376 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'"
9379 if test "$host_cpu" = ia64; then
9380 symcode='[ABCDGIRSTW]'
9381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9382 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'"
9386 symcode='[BCDEGRST]'
9389 symcode='[BCDEGQRST]'
9400 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9408 # Handle CRLF in mingw tool chain
9412 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9416 # If we're using GNU nm, then use its standard symbol codes.
9417 case `$NM -V 2>&1` in
9418 *GNU* | *'with BFD'*)
9419 symcode='[ABCDGIRSTW]' ;;
9422 # Try without a prefix undercore, then with it.
9423 for ac_symprfx in "" "_"; do
9425 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9426 symxfrm="\\1 $ac_symprfx\\2 \\2"
9428 # Write the raw and C identifiers.
9429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9431 # Check to see that the pipe works correctly.
9435 cat > conftest.$ac_ext <<EOF
9440 void nm_test_func(){}
9444 int main(){nm_test_var='a';nm_test_func();return(0);}
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; then
9452 # Now try to grab the symbols.
9454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && test -s "$nlist"; then
9459 # Try sorting and uniquifying the output.
9460 if sort "$nlist" | uniq > "$nlist"T; then
9461 mv -f "$nlist"T "$nlist"
9466 # Make sure that we snagged all the symbols we need.
9467 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9468 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9469 cat <<EOF > conftest.$ac_ext
9475 # Now generate the symbol file.
9476 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9478 cat <<EOF >> conftest.$ac_ext
9479 #if defined (__STDC__) && __STDC__
9480 # define lt_ptr_t void *
9482 # define lt_ptr_t char *
9486 /* The mapping between symbol names and symbols. */
9491 lt_preloaded_symbols[] =
9494 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9495 cat <<\EOF >> conftest.$ac_ext
9503 # Now try linking the two files.
9504 mv conftest.$ac_objext conftstm.$ac_objext
9505 lt_save_LIBS="$LIBS"
9506 lt_save_CFLAGS="$CFLAGS"
9507 LIBS="conftstm.$ac_objext"
9508 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510 (eval $ac_link) 2>&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9516 LIBS="$lt_save_LIBS"
9517 CFLAGS="$lt_save_CFLAGS"
9519 echo "cannot find nm_test_func in $nlist" >&5
9522 echo "cannot find nm_test_var in $nlist" >&5
9525 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9528 echo "$progname: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9531 rm -f conftest* conftst*
9533 # Do not use the global_symbol_pipe unless it works.
9534 if test "$pipe_works" = yes; then
9537 lt_cv_sys_global_symbol_pipe=
9543 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9544 lt_cv_sys_global_symbol_to_cdecl=
9546 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9547 { echo "$as_me:$LINENO: result: failed" >&5
9548 echo "${ECHO_T}failed" >&6; }
9550 { echo "$as_me:$LINENO: result: ok" >&5
9551 echo "${ECHO_T}ok" >&6; }
9555 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9556 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9557 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9561 libltdl_cv_preloaded_symbols=yes
9563 libltdl_cv_preloaded_symbols=no
9567 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9568 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9569 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_PRELOADED_SYMBOLS 1
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586 { echo "$as_me:$LINENO: checking for shl_load" >&5
9587 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9588 if test "${ac_cv_func_shl_load+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9599 #define shl_load innocuous_shl_load
9601 /* System header to define __stub macros and hopefully few prototypes,
9602 which can conflict with char shl_load (); below.
9603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9604 <limits.h> exists even on freestanding compilers. */
9607 # include <limits.h>
9609 # include <assert.h>
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9621 /* The GNU C library defines this for functions which it implements
9622 to always fail with ENOSYS. Some functions are actually named
9623 something starting with __ and the normal name is an alias. */
9624 #if defined __stub_shl_load || defined __stub___shl_load
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest$ac_exeext'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_func_shl_load=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_func_shl_load=no
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9683 if test $ac_cv_func_shl_load = yes; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_SHL_LOAD 1
9690 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9691 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_check_lib_save_LIBS=$LIBS
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_try") 2>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_dld_shl_load=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_dld_shl_load=no
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9766 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9767 if test $ac_cv_lib_dld_shl_load = yes; then
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_SHL_LOAD 1
9773 LIBADD_DL="$LIBADD_DL -ldld"
9775 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9776 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_check_lib_save_LIBS=$LIBS
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_lib_dl_dlopen=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_dl_dlopen=no
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852 if test $ac_cv_lib_dl_dlopen = yes; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_LIBDL 1
9858 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_LIBDL 1
9916 libltdl_cv_func_dlopen="yes"
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9922 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9923 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 ac_check_lib_save_LIBS=$LIBS
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_lib_svld_dlopen=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_cv_lib_svld_dlopen=no
9992 rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_lib_save_LIBS
9996 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9997 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9998 if test $ac_cv_lib_svld_dlopen = yes; then
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_LIBDL 1
10004 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10006 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10007 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10008 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 ac_check_lib_save_LIBS=$LIBS
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10030 return dld_link ();
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_link") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10050 { (case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_try") 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; } &&
10059 { ac_try='test -s conftest$ac_exeext'
10060 { (case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_try") 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 ac_cv_lib_dld_dld_link=yes
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 ac_cv_lib_dld_dld_link=no
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10082 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10083 if test $ac_cv_lib_dld_dld_link = yes; then
10085 cat >>confdefs.h <<\_ACEOF
10089 LIBADD_DL="$LIBADD_DL -ldld"
10091 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10092 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10093 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10104 #define _dyld_func_lookup innocuous__dyld_func_lookup
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char _dyld_func_lookup (); below.
10108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10109 <limits.h> exists even on freestanding compilers. */
10112 # include <limits.h>
10114 # include <assert.h>
10117 #undef _dyld_func_lookup
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10125 char _dyld_func_lookup ();
10126 /* The GNU C library defines this for functions which it implements
10127 to always fail with ENOSYS. Some functions are actually named
10128 something starting with __ and the normal name is an alias. */
10129 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10136 return _dyld_func_lookup ();
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_link") 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest$ac_exeext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_func__dyld_func_lookup=yes
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_func__dyld_func_lookup=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10186 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10187 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10188 if test $ac_cv_func__dyld_func_lookup = yes; then
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_DYLD 1
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10217 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10219 lt_save_LIBS="$LIBS"
10220 LIBS="$LIBS $LIBADD_DL"
10222 for ac_func in dlerror
10224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10238 #define $ac_func innocuous_$ac_func
10240 /* System header to define __stub macros and hopefully few prototypes,
10241 which can conflict with char $ac_func (); below.
10242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10243 <limits.h> exists even on freestanding compilers. */
10246 # include <limits.h>
10248 # include <assert.h>
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10260 /* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263 #if defined __stub_$ac_func || defined __stub___$ac_func
10270 return $ac_func ();
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_link") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 eval "$as_ac_var=yes"
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 eval "$as_ac_var=no"
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10320 ac_res=`eval echo '${'$as_ac_var'}'`
10321 { echo "$as_me:$LINENO: result: $ac_res" >&5
10322 echo "${ECHO_T}$ac_res" >&6; }
10323 if test `eval echo '${'$as_ac_var'}'` = yes; then
10324 cat >>confdefs.h <<_ACEOF
10325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10331 LIBS="$lt_save_LIBS"
10334 ac_cpp='$CPP $CPPFLAGS'
10335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10342 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10343 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 ac_cv_sys_symbol_underscore=no
10347 cat > conftest.$ac_ext <<EOF
10348 void nm_test_func(){}
10349 int main(){nm_test_func;return 0;}
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; then
10356 # Now try to grab the symbols.
10357 ac_nlist=conftest.nm
10358 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10359 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && test -s "$ac_nlist"; then
10363 # See whether the symbols have a leading underscore.
10364 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10365 ac_cv_sys_symbol_underscore=yes
10367 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10370 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10374 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10377 echo "configure: failed program was:" >&5
10383 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10384 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10387 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10388 if test x"$libltdl_cv_func_dlopen" = xyes ||
10389 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10390 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10391 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10392 if test "${libltdl_cv_need_uscore+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 libltdl_cv_need_uscore=unknown
10397 LIBS="$LIBS $LIBADD_DL"
10398 if test "$cross_compiling" = yes; then :
10399 libltdl_cv_need_uscore=cross
10401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10402 lt_status=$lt_dlunknown
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10404 "configure"
10405 #include "confdefs.h"
10414 # define LT_DLGLOBAL RTLD_GLOBAL
10417 # define LT_DLGLOBAL DL_GLOBAL
10419 # define LT_DLGLOBAL 0
10423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10424 find out it does not work in some platform. */
10425 #ifndef LT_DLLAZY_OR_NOW
10427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10430 # define LT_DLLAZY_OR_NOW DL_LAZY
10433 # define LT_DLLAZY_OR_NOW RTLD_NOW
10436 # define LT_DLLAZY_OR_NOW DL_NOW
10438 # define LT_DLLAZY_OR_NOW 0
10446 extern "C" void exit (int);
10449 void fnord() { int i=42;}
10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453 int status = $lt_dlunknown;
10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10459 /* dlclose (self); */
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10472 (./conftest; exit; ) >&5 2>/dev/null
10474 case x$lt_status in
10475 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10476 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10477 x$lt_dlunknown|x*) ;;
10480 # compilation failed
10489 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10490 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10494 if test x"$libltdl_cv_need_uscore" = xyes; then
10496 cat >>confdefs.h <<\_ACEOF
10497 #define NEED_USCORE 1
10503 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10504 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10505 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 # PORTME does your system automatically load deplibs for dlopen?
10509 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10510 # For now, we just catch OSes we know something about -- in the
10511 # future, we'll try test this programmatically.
10512 libltdl_cv_sys_dlopen_deplibs=unknown
10514 aix3*|aix4.1.*|aix4.2.*)
10515 # Unknown whether this is true for these versions of AIX, but
10516 # we want this `case' here to explicitly catch those versions.
10517 libltdl_cv_sys_dlopen_deplibs=unknown
10520 libltdl_cv_sys_dlopen_deplibs=yes
10523 # Assuming the user has installed a libdl from somewhere, this is true
10524 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10525 libltdl_cv_sys_dlopen_deplibs=yes
10527 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10528 # GNU and its variants, using gnu ld.so (Glibc)
10529 libltdl_cv_sys_dlopen_deplibs=yes
10532 libltdl_cv_sys_dlopen_deplibs=yes
10535 libltdl_cv_sys_dlopen_deplibs=yes
10537 irix[12345]*|irix6.[01]*)
10538 # Catch all versions of IRIX before 6.2, and indicate that we don't
10539 # know how it worked for any of those versions.
10540 libltdl_cv_sys_dlopen_deplibs=unknown
10543 # The case above catches anything before 6.2, and it's known that
10544 # at 6.2 and later dlopen does load deplibs.
10545 libltdl_cv_sys_dlopen_deplibs=yes
10548 libltdl_cv_sys_dlopen_deplibs=yes
10551 libltdl_cv_sys_dlopen_deplibs=yes
10554 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10555 # it did *not* use an RPATH in a shared library to find objects the
10556 # library depends on, so we explicitly say `no'.
10557 libltdl_cv_sys_dlopen_deplibs=no
10559 osf5.0|osf5.0a|osf5.1)
10560 # dlopen *does* load deplibs and with the right loader patch applied
10561 # it even uses RPATH in a shared library to search for shared objects
10562 # that the library depends on, but there's no easy way to know if that
10563 # patch is installed. Since this is the case, all we can really
10564 # say is unknown -- it depends on the patch being installed. If
10565 # it is, this changes to `yes'. Without it, it would be `no'.
10566 libltdl_cv_sys_dlopen_deplibs=unknown
10569 # the two cases above should catch all versions of osf <= 5.1. Read
10570 # the comments above for what we know about them.
10571 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10572 # is used to find them so we can finally say `yes'.
10573 libltdl_cv_sys_dlopen_deplibs=yes
10576 libltdl_cv_sys_dlopen_deplibs=yes
10578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10579 libltdl_cv_sys_dlopen_deplibs=yes
10584 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10585 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10586 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define LTDL_DLOPEN_DEPLIBS 1
10595 for ac_header in argz.h
10597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 ac_res=`eval echo '${'$as_ac_Header'}'`
10605 { echo "$as_me:$LINENO: result: $ac_res" >&5
10606 echo "${ECHO_T}$ac_res" >&6; }
10608 # Is the header compilable?
10609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 $ac_includes_default
10618 #include <$ac_header>
10620 rm -f conftest.$ac_objext
10621 if { (ac_try="$ac_compile"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_compile") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_try") 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_header_compiler=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_header_compiler=no
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10664 echo "${ECHO_T}$ac_header_compiler" >&6; }
10666 # Is the header present?
10667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 #include <$ac_header>
10677 if { (ac_try="$ac_cpp conftest.$ac_ext"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } >/dev/null; then
10690 if test -s conftest.err; then
10691 ac_cpp_err=$ac_c_preproc_warn_flag
10692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10699 if test -z "$ac_cpp_err"; then
10700 ac_header_preproc=yes
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_header_preproc=no
10708 rm -f conftest.err conftest.$ac_ext
10709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10710 echo "${ECHO_T}$ac_header_preproc" >&6; }
10712 # So? What about this header?
10713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10719 ac_header_preproc=yes
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10735 ## ------------------------------------ ##
10736 ## Report this to http://llvm.org/bugs/ ##
10737 ## ------------------------------------ ##
10739 ) | sed "s/^/$as_me: WARNING: /" >&2
10742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 eval "$as_ac_Header=\$ac_header_preproc"
10749 ac_res=`eval echo '${'$as_ac_Header'}'`
10750 { echo "$as_me:$LINENO: result: $ac_res" >&5
10751 echo "${ECHO_T}$ac_res" >&6; }
10754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10764 { echo "$as_me:$LINENO: checking for error_t" >&5
10765 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10766 if test "${ac_cv_type_error_t+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10779 typedef error_t ac__type_new_;
10783 if ((ac__type_new_ *) 0)
10785 if (sizeof (ac__type_new_))
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_compile") 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_type_error_t=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_type_error_t=no
10833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10836 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10837 if test $ac_cv_type_error_t = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_ERROR_T 1
10846 cat >>confdefs.h <<\_ACEOF
10847 #define error_t int
10858 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10874 #define $ac_func innocuous_$ac_func
10876 /* System header to define __stub macros and hopefully few prototypes,
10877 which can conflict with char $ac_func (); below.
10878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10879 <limits.h> exists even on freestanding compilers. */
10882 # include <limits.h>
10884 # include <assert.h>
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10896 /* The GNU C library defines this for functions which it implements
10897 to always fail with ENOSYS. Some functions are actually named
10898 something starting with __ and the normal name is an alias. */
10899 #if defined __stub_$ac_func || defined __stub___$ac_func
10906 return $ac_func ();
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 eval "$as_ac_var=no"
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10956 ac_res=`eval echo '${'$as_ac_var'}'`
10957 { echo "$as_me:$LINENO: result: $ac_res" >&5
10958 echo "${ECHO_T}$ac_res" >&6; }
10959 if test `eval echo '${'$as_ac_var'}'` = yes; then
10960 cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 ac_res=`eval echo '${'$as_ac_Header'}'`
11005 { echo "$as_me:$LINENO: result: $ac_res" >&5
11006 echo "${ECHO_T}$ac_res" >&6; }
11008 # Is the header compilable?
11009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 $ac_includes_default
11018 #include <$ac_header>
11020 rm -f conftest.$ac_objext
11021 if { (ac_try="$ac_compile"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_compile") 2>conftest.er1
11029 grep -v '^ *+' conftest.er1 >conftest.err
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_header_compiler=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_compiler=no
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064 echo "${ECHO_T}$ac_header_compiler" >&6; }
11066 # Is the header present?
11067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <$ac_header>
11077 if { (ac_try="$ac_cpp conftest.$ac_ext"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null; then
11090 if test -s conftest.err; then
11091 ac_cpp_err=$ac_c_preproc_warn_flag
11092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11099 if test -z "$ac_cpp_err"; then
11100 ac_header_preproc=yes
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_header_preproc=no
11108 rm -f conftest.err conftest.$ac_ext
11109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11110 echo "${ECHO_T}$ac_header_preproc" >&6; }
11112 # So? What about this header?
11113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11119 ac_header_preproc=yes
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11135 ## ------------------------------------ ##
11136 ## Report this to http://llvm.org/bugs/ ##
11137 ## ------------------------------------ ##
11139 ) | sed "s/^/$as_me: WARNING: /" >&2
11142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 eval "$as_ac_Header=\$ac_header_preproc"
11149 ac_res=`eval echo '${'$as_ac_Header'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11180 # Is the header compilable?
11181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 #include <$ac_header>
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11207 { (case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_try") 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_try") 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_header_compiler=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_compiler=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 echo "${ECHO_T}$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev/null; then
11262 if test -s conftest.err; then
11263 ac_cpp_err=$ac_c_preproc_warn_flag
11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11271 if test -z "$ac_cpp_err"; then
11272 ac_header_preproc=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_preproc=no
11280 rm -f conftest.err conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11282 echo "${ECHO_T}$ac_header_preproc" >&6; }
11284 # So? What about this header?
11285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11291 ac_header_preproc=yes
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307 ## ------------------------------------ ##
11308 ## Report this to http://llvm.org/bugs/ ##
11309 ## ------------------------------------ ##
11311 ) | sed "s/^/$as_me: WARNING: /" >&2
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 eval "$as_ac_Header=\$ac_header_preproc"
11321 ac_res=`eval echo '${'$as_ac_Header'}'`
11322 { echo "$as_me:$LINENO: result: $ac_res" >&5
11323 echo "${ECHO_T}$ac_res" >&6; }
11326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11327 cat >>confdefs.h <<_ACEOF
11328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337 for ac_header in string.h strings.h
11339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 ac_res=`eval echo '${'$as_ac_Header'}'`
11347 { echo "$as_me:$LINENO: result: $ac_res" >&5
11348 echo "${ECHO_T}$ac_res" >&6; }
11350 # Is the header compilable?
11351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 #include <$ac_header>
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_header_compiler=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_compiler=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6; }
11408 # Is the header present?
11409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <$ac_header>
11419 if { (ac_try="$ac_cpp conftest.$ac_ext"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } >/dev/null; then
11432 if test -s conftest.err; then
11433 ac_cpp_err=$ac_c_preproc_warn_flag
11434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441 if test -z "$ac_cpp_err"; then
11442 ac_header_preproc=yes
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_header_preproc=no
11450 rm -f conftest.err conftest.$ac_ext
11451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11452 echo "${ECHO_T}$ac_header_preproc" >&6; }
11454 # So? What about this header?
11455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11461 ac_header_preproc=yes
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11477 ## ------------------------------------ ##
11478 ## Report this to http://llvm.org/bugs/ ##
11479 ## ------------------------------------ ##
11481 ) | sed "s/^/$as_me: WARNING: /" >&2
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 eval "$as_ac_Header=\$ac_header_preproc"
11491 ac_res=`eval echo '${'$as_ac_Header'}'`
11492 { echo "$as_me:$LINENO: result: $ac_res" >&5
11493 echo "${ECHO_T}$ac_res" >&6; }
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 for ac_func in strchr index
11510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11524 #define $ac_func innocuous_$ac_func
11526 /* System header to define __stub macros and hopefully few prototypes,
11527 which can conflict with char $ac_func (); below.
11528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11529 <limits.h> exists even on freestanding compilers. */
11532 # include <limits.h>
11534 # include <assert.h>
11539 /* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11546 /* The GNU C library defines this for functions which it implements
11547 to always fail with ENOSYS. Some functions are actually named
11548 something starting with __ and the normal name is an alias. */
11549 #if defined __stub_$ac_func || defined __stub___$ac_func
11556 return $ac_func ();
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_try") 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_var=yes"
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 eval "$as_ac_var=no"
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11606 ac_res=`eval echo '${'$as_ac_var'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_var'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11619 for ac_func in strrchr rindex
11621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 cat >conftest.$ac_ext <<_ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11635 #define $ac_func innocuous_$ac_func
11637 /* System header to define __stub macros and hopefully few prototypes,
11638 which can conflict with char $ac_func (); below.
11639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11640 <limits.h> exists even on freestanding compilers. */
11643 # include <limits.h>
11645 # include <assert.h>
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11657 /* The GNU C library defines this for functions which it implements
11658 to always fail with ENOSYS. Some functions are actually named
11659 something starting with __ and the normal name is an alias. */
11660 #if defined __stub_$ac_func || defined __stub___$ac_func
11667 return $ac_func ();
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1 >conftest.err
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; } &&
11696 { ac_try='test -s conftest$ac_exeext'
11697 { (case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_try") 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 eval "$as_ac_var=yes"
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 eval "$as_ac_var=no"
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11717 ac_res=`eval echo '${'$as_ac_var'}'`
11718 { echo "$as_me:$LINENO: result: $ac_res" >&5
11719 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_var'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730 for ac_func in memcpy bcopy
11732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11746 #define $ac_func innocuous_$ac_func
11748 /* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func (); below.
11750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11751 <limits.h> exists even on freestanding compilers. */
11754 # include <limits.h>
11756 # include <assert.h>
11761 /* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11768 /* The GNU C library defines this for functions which it implements
11769 to always fail with ENOSYS. Some functions are actually named
11770 something starting with __ and the normal name is an alias. */
11771 #if defined __stub_$ac_func || defined __stub___$ac_func
11778 return $ac_func ();
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (ac_try="$ac_link"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_link") 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest$ac_exeext'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 eval "$as_ac_var=yes"
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 eval "$as_ac_var=no"
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11828 ac_res=`eval echo '${'$as_ac_var'}'`
11829 { echo "$as_me:$LINENO: result: $ac_res" >&5
11830 echo "${ECHO_T}$ac_res" >&6; }
11831 if test `eval echo '${'$as_ac_var'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841 for ac_func in memmove strcmp
11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11857 #define $ac_func innocuous_$ac_func
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below.
11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862 <limits.h> exists even on freestanding compilers. */
11865 # include <limits.h>
11867 # include <assert.h>
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined __stub_$ac_func || defined __stub___$ac_func
11889 return $ac_func ();
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (ac_try="$ac_link"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 eval "$as_ac_var=yes"
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 eval "$as_ac_var=no"
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11939 ac_res=`eval echo '${'$as_ac_var'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 for ac_func in closedir opendir readdir
11955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11969 #define $ac_func innocuous_$ac_func
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func (); below.
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974 <limits.h> exists even on freestanding compilers. */
11977 # include <limits.h>
11979 # include <assert.h>
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11991 /* The GNU C library defines this for functions which it implements
11992 to always fail with ENOSYS. Some functions are actually named
11993 something starting with __ and the normal name is an alias. */
11994 #if defined __stub_$ac_func || defined __stub___$ac_func
12001 return $ac_func ();
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (ac_try="$ac_link"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_link") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest$ac_exeext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 eval "$as_ac_var=yes"
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 eval "$as_ac_var=no"
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
12051 ac_res=`eval echo '${'$as_ac_var'}'`
12052 { echo "$as_me:$LINENO: result: $ac_res" >&5
12053 echo "${ECHO_T}$ac_res" >&6; }
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12065 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12078 if test "$GCC" != "yes" && test "$ICC" != "yes"
12080 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12081 echo "$as_me: error: gcc|icc required but not found" >&2;}
12082 { (exit 1); exit 1; }; }
12085 if test "$GXX" != "yes" && test "$IXX" != "yes"
12087 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12088 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12089 { (exit 1); exit 1; }; }
12092 if test "$GCC" = "yes"
12094 cat >conftest.$ac_ext <<_ACEOF
12095 #if !defined(__GNUC__) || __GNUC__ < 3
12096 #error Unsupported GCC version
12100 rm -f conftest.$ac_objext
12101 if { (ac_try="$ac_compile"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_compile") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1 >conftest.err
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12140 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12141 { (exit 1); exit 1; }; }
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 if test -z "$llvm_cv_gnu_make_command"
12149 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12150 echo "$as_me: error: GNU Make required but not found" >&2;}
12151 { (exit 1); exit 1; }; }
12154 { echo "$as_me:$LINENO: result: ok" >&5
12155 echo "${ECHO_T}ok" >&6; }
12157 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12158 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12159 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12161 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12163 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12165 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12166 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12170 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12171 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_m_sin+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_lib_m_sin=yes
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12245 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12246 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12247 if test $ac_cv_lib_m_sin = yes; then
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_LIBM 1
12256 if test "$llvm_cv_os_type" = "MingW" ; then
12258 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12259 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12260 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-limagehlp $LIBS"
12265 cat >conftest.$ac_ext <<_ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_lib_imagehlp_main=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_cv_lib_imagehlp_main=no
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12327 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12328 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12329 if test $ac_cv_lib_imagehlp_main = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define HAVE_LIBIMAGEHLP 1
12334 LIBS="-limagehlp $LIBS"
12339 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12340 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12341 if test "${ac_cv_lib_psapi_main+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-lpsapi $LIBS"
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (ac_try="$ac_link"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_link") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest$ac_exeext'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_lib_psapi_main=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_cv_lib_psapi_main=no
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12409 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12410 if test $ac_cv_lib_psapi_main = yes; then
12411 cat >>confdefs.h <<_ACEOF
12412 #define HAVE_LIBPSAPI 1
12415 LIBS="-lpsapi $LIBS"
12421 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12422 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12423 if test "${ac_cv_search_dlopen+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 ac_func_search_save_LIBS=$LIBS
12427 cat >conftest.$ac_ext <<_ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12449 for ac_lib in '' dl; do
12450 if test -z "$ac_lib"; then
12451 ac_res="none required"
12454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (ac_try="$ac_link"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_link") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471 { (case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_try") 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest$ac_exeext'
12481 { (case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_try") 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_search_dlopen=$ac_res
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12498 rm -f core conftest.err conftest.$ac_objext \
12500 if test "${ac_cv_search_dlopen+set}" = set; then
12504 if test "${ac_cv_search_dlopen+set}" = set; then
12507 ac_cv_search_dlopen=no
12509 rm conftest.$ac_ext
12510 LIBS=$ac_func_search_save_LIBS
12512 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12514 ac_res=$ac_cv_search_dlopen
12515 if test "$ac_res" != no; then
12516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_DLOPEN 1
12523 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12524 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12528 if test "$llvm_cv_enable_libffi" = "yes" ; then
12529 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12530 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12531 if test "${ac_cv_search_ffi_call+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 ffi_call ();
12557 for ac_lib in '' ffi; 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_ffi_call=$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_ffi_call+set}" = set; then
12612 if test "${ac_cv_search_ffi_call+set}" = set; then
12615 ac_cv_search_ffi_call=no
12617 rm conftest.$ac_ext
12618 LIBS=$ac_func_search_save_LIBS
12620 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12621 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12622 ac_res=$ac_cv_search_ffi_call
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_FFI_CALL 1
12631 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12632 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12633 { (exit 1); exit 1; }; }
12638 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12639 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12640 if test "${ac_cv_search_mallinfo+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 ac_func_search_save_LIBS=$LIBS
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12651 /* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12661 return mallinfo ();
12666 for ac_lib in '' malloc; do
12667 if test -z "$ac_lib"; then
12668 ac_res="none required"
12671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12688 { (case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_try") 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest$ac_exeext'
12698 { (case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_try") 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12707 ac_cv_search_mallinfo=$ac_res
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12715 rm -f core conftest.err conftest.$ac_objext \
12717 if test "${ac_cv_search_mallinfo+set}" = set; then
12721 if test "${ac_cv_search_mallinfo+set}" = set; then
12724 ac_cv_search_mallinfo=no
12726 rm conftest.$ac_ext
12727 LIBS=$ac_func_search_save_LIBS
12729 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12731 ac_res=$ac_cv_search_mallinfo
12732 if test "$ac_res" != no; then
12733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_MALLINFO 1
12742 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12744 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12745 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lpthread $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12764 char pthread_mutex_init ();
12768 return pthread_mutex_init ();
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788 { (case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_try") 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_lib_pthread_pthread_mutex_init=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_lib_pthread_pthread_mutex_init=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12820 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12821 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12822 cat >>confdefs.h <<_ACEOF
12823 #define HAVE_LIBPTHREAD 1
12826 LIBS="-lpthread $LIBS"
12830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12831 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 ac_func_search_save_LIBS=$LIBS
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12849 char pthread_mutex_lock ();
12853 return pthread_mutex_lock ();
12858 for ac_lib in '' pthread; do
12859 if test -z "$ac_lib"; then
12860 ac_res="none required"
12863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_try") 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_search_pthread_mutex_lock=$ac_res
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12907 rm -f core conftest.err conftest.$ac_objext \
12909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12913 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12916 ac_cv_search_pthread_mutex_lock=no
12918 rm conftest.$ac_ext
12919 LIBS=$ac_func_search_save_LIBS
12921 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12922 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12923 ac_res=$ac_cv_search_pthread_mutex_lock
12924 if test "$ac_res" != no; then
12925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12927 cat >>confdefs.h <<\_ACEOF
12928 #define HAVE_PTHREAD_MUTEX_LOCK 1
12933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12934 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 ac_func_search_save_LIBS=$LIBS
12939 cat >conftest.$ac_ext <<_ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12952 char pthread_rwlock_init ();
12956 return pthread_rwlock_init ();
12961 for ac_lib in '' pthread; do
12962 if test -z "$ac_lib"; then
12963 ac_res="none required"
12966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
12982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_search_pthread_rwlock_init=$ac_res
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13010 rm -f core conftest.err conftest.$ac_objext \
13012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13016 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13019 ac_cv_search_pthread_rwlock_init=no
13021 rm conftest.$ac_ext
13022 LIBS=$ac_func_search_save_LIBS
13024 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13025 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13026 ac_res=$ac_cv_search_pthread_rwlock_init
13027 if test "$ac_res" != no; then
13028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13030 cat >>confdefs.h <<\_ACEOF
13031 #define HAVE_PTHREAD_RWLOCK_INIT 1
13036 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13037 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13038 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 ac_func_search_save_LIBS=$LIBS
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13055 char pthread_getspecific ();
13059 return pthread_getspecific ();
13064 for ac_lib in '' pthread; do
13065 if test -z "$ac_lib"; then
13066 ac_res="none required"
13069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (ac_try="$ac_link"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_link") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest$ac_exeext'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_search_pthread_getspecific=$ac_res
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13113 rm -f core conftest.err conftest.$ac_objext \
13115 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13119 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13122 ac_cv_search_pthread_getspecific=no
13124 rm conftest.$ac_ext
13125 LIBS=$ac_func_search_save_LIBS
13127 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13128 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13129 ac_res=$ac_cv_search_pthread_getspecific
13130 if test "$ac_res" != no; then
13131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_PTHREAD_GETSPECIFIC 1
13142 # Check whether --with-udis86 was given.
13143 if test "${with_udis86+set}" = set; then
13144 withval=$with_udis86;
13149 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13152 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13153 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13154 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-ludis86 $LIBS"
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_udis86_ud_init=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_lib_udis86_ud_init=no
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13228 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13229 if test $ac_cv_lib_udis86_ud_init = yes; then
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_LIBUDIS86 1
13234 LIBS="-ludis86 $LIBS"
13238 echo "Error! You need to have libudis86 around."
13250 cat >>confdefs.h <<_ACEOF
13251 #define USE_UDIS86 $USE_UDIS86
13256 # Check whether --with-oprofile was given.
13257 if test "${with_oprofile+set}" = set; then
13258 withval=$with_oprofile;
13262 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13263 no) llvm_cv_oppath=
13266 *) llvm_cv_oppath="${withval}/lib/oprofile"
13267 CPPFLAGS="-I${withval}/include";;
13269 case $llvm_cv_os_type in
13271 if test -n "$llvm_cv_oppath" ; then
13272 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13273 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13274 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13275 if test "${ac_cv_search_bfd_init+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 ac_func_search_save_LIBS=$LIBS
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13296 return bfd_init ();
13301 for ac_lib in '' bfd; do
13302 if test -z "$ac_lib"; then
13303 ac_res="none required"
13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (ac_try="$ac_link"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_link") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13332 { ac_try='test -s conftest$ac_exeext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_cv_search_bfd_init=$ac_res
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13350 rm -f core conftest.err conftest.$ac_objext \
13352 if test "${ac_cv_search_bfd_init+set}" = set; then
13356 if test "${ac_cv_search_bfd_init+set}" = set; then
13359 ac_cv_search_bfd_init=no
13361 rm conftest.$ac_ext
13362 LIBS=$ac_func_search_save_LIBS
13364 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13365 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13366 ac_res=$ac_cv_search_bfd_init
13367 if test "$ac_res" != no; then
13368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13372 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13373 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13374 if test "${ac_cv_search_op_open_agent+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 ac_func_search_save_LIBS=$LIBS
13378 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13391 char op_open_agent ();
13395 return op_open_agent ();
13400 for ac_lib in '' opagent; do
13401 if test -z "$ac_lib"; then
13402 ac_res="none required"
13405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_cv_search_op_open_agent=$ac_res
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13449 rm -f core conftest.err conftest.$ac_objext \
13451 if test "${ac_cv_search_op_open_agent+set}" = set; then
13455 if test "${ac_cv_search_op_open_agent+set}" = set; then
13458 ac_cv_search_op_open_agent=no
13460 rm conftest.$ac_ext
13461 LIBS=$ac_func_search_save_LIBS
13463 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13464 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13465 ac_res=$ac_cv_search_op_open_agent
13466 if test "$ac_res" != no; then
13467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13471 echo "Error! You need to have libopagent around."
13476 if test "${ac_cv_header_opagent_h+set}" = set; then
13477 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13478 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13479 if test "${ac_cv_header_opagent_h+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13483 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13485 # Is the header compilable?
13486 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13487 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 $ac_includes_default
13495 #include <opagent.h>
13497 rm -f conftest.$ac_objext
13498 if { (ac_try="$ac_compile"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_compile") 2>conftest.er1
13506 grep -v '^ *+' conftest.er1 >conftest.err
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_header_compiler=no
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541 echo "${ECHO_T}$ac_header_compiler" >&6; }
13543 # Is the header present?
13544 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13545 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <opagent.h>
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_c_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13576 if test -z "$ac_cpp_err"; then
13577 ac_header_preproc=yes
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ac_header_preproc=no
13585 rm -f conftest.err conftest.$ac_ext
13586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587 echo "${ECHO_T}$ac_header_preproc" >&6; }
13589 # So? What about this header?
13590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13593 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13595 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13596 ac_header_preproc=yes
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13600 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13602 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13604 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13606 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13608 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13610 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13612 ## ------------------------------------ ##
13613 ## Report this to http://llvm.org/bugs/ ##
13614 ## ------------------------------------ ##
13616 ) | sed "s/^/$as_me: WARNING: /" >&2
13619 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13620 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13621 if test "${ac_cv_header_opagent_h+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_cv_header_opagent_h=$ac_header_preproc
13626 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13627 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13630 if test $ac_cv_header_opagent_h = yes; then
13634 echo "Error! You need to have opagent.h around."
13642 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13643 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13644 { (exit 1); exit 1; }; } ;;
13655 cat >>confdefs.h <<_ACEOF
13656 #define LLVM_USE_OPROFILE $USE_OPROFILE
13661 # Check whether --with-intel-jitevents was given.
13662 if test "${with_intel_jitevents+set}" = set; then
13663 withval=$with_intel_jitevents;
13664 case $llvm_cv_os_type in
13665 Linux|Win32|Cygwin|MingW) ;;
13667 { { echo "$as_me:$LINENO: error:
13668 Intel JIT API support is available on Linux and Windows only.\"" >&5
13669 echo "$as_me: error:
13670 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13671 { (exit 1); exit 1; }; } ;;
13674 USE_INTEL_JITEVENTS=1
13676 case "$llvm_cv_target_arch" in
13677 x86) llvm_intel_jitevents_archdir="lib32";;
13678 x86_64) llvm_intel_jitevents_archdir="lib64";;
13679 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13682 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13683 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13685 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13686 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13693 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13694 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13696 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13697 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13698 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 ac_func_search_save_LIBS=$LIBS
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13709 /* Override any GCC internal prototype to avoid an error.
13710 Use char because int might match the return type of a GCC
13711 builtin and then its argument prototype would still apply. */
13715 char iJIT_IsProfilingActive ();
13719 return iJIT_IsProfilingActive ();
13724 for ac_lib in '' jitprofiling; do
13725 if test -z "$ac_lib"; then
13726 ac_res="none required"
13729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (ac_try="$ac_link"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_link") 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13746 { (case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_try") 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest$ac_exeext'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13773 rm -f core conftest.err conftest.$ac_objext \
13775 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13779 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13782 ac_cv_search_iJIT_IsProfilingActive=no
13784 rm conftest.$ac_ext
13785 LIBS=$ac_func_search_save_LIBS
13787 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13788 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13789 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13790 if test "$ac_res" != no; then
13791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13795 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13800 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13801 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13802 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13803 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13807 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13809 # Is the header compilable?
13810 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13811 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 $ac_includes_default
13819 #include <jitprofiling.h>
13821 rm -f conftest.$ac_objext
13822 if { (ac_try="$ac_compile"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_header_compiler=yes
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ac_header_compiler=no
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867 # Is the header present?
13868 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13869 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <jitprofiling.h>
13878 if { (ac_try="$ac_cpp conftest.$ac_ext"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } >/dev/null; then
13891 if test -s conftest.err; then
13892 ac_cpp_err=$ac_c_preproc_warn_flag
13893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13900 if test -z "$ac_cpp_err"; then
13901 ac_header_preproc=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_header_preproc=no
13909 rm -f conftest.err conftest.$ac_ext
13910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13911 echo "${ECHO_T}$ac_header_preproc" >&6; }
13913 # So? What about this header?
13914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13916 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13917 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13919 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13920 ac_header_preproc=yes
13923 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13924 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13926 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13928 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13930 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13932 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13934 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13936 ## ------------------------------------ ##
13937 ## Report this to http://llvm.org/bugs/ ##
13938 ## ------------------------------------ ##
13940 ) | sed "s/^/$as_me: WARNING: /" >&2
13943 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13944 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 ac_cv_header_jitprofiling_h=$ac_header_preproc
13950 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13951 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13954 if test $ac_cv_header_jitprofiling_h = yes; then
13958 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13968 USE_INTEL_JITEVENTS=0
13974 cat >>confdefs.h <<_ACEOF
13975 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13985 ac_header_dirent=no
13986 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13987 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13988 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13989 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 #include <sys/types.h>
14011 rm -f conftest.$ac_objext
14012 if { (ac_try="$ac_compile"
14013 case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1 >conftest.err
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_try") 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_try") 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 eval "$as_ac_Header=yes"
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 eval "$as_ac_Header=no"
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 ac_res=`eval echo '${'$as_ac_Header'}'`
14056 { echo "$as_me:$LINENO: result: $ac_res" >&5
14057 echo "${ECHO_T}$ac_res" >&6; }
14058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14059 cat >>confdefs.h <<_ACEOF
14060 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14063 ac_header_dirent=$ac_hdr; break
14067 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14068 if test $ac_header_dirent = dirent.h; then
14069 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14071 if test "${ac_cv_search_opendir+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 ac_func_search_save_LIBS=$LIBS
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14097 for ac_lib in '' dir; do
14098 if test -z "$ac_lib"; then
14099 ac_res="none required"
14102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (ac_try="$ac_link"
14106 case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_link") 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest$ac_exeext'
14129 { (case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_try") 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_search_opendir=$ac_res
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14146 rm -f core conftest.err conftest.$ac_objext \
14148 if test "${ac_cv_search_opendir+set}" = set; then
14152 if test "${ac_cv_search_opendir+set}" = set; then
14155 ac_cv_search_opendir=no
14157 rm conftest.$ac_ext
14158 LIBS=$ac_func_search_save_LIBS
14160 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14161 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14162 ac_res=$ac_cv_search_opendir
14163 if test "$ac_res" != no; then
14164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14169 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14171 if test "${ac_cv_search_opendir+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 ac_func_search_save_LIBS=$LIBS
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14197 for ac_lib in '' x; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1 >conftest.err
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_search_opendir=$ac_res
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14246 rm -f core conftest.err conftest.$ac_objext \
14248 if test "${ac_cv_search_opendir+set}" = set; then
14252 if test "${ac_cv_search_opendir+set}" = set; then
14255 ac_cv_search_opendir=no
14257 rm conftest.$ac_ext
14258 LIBS=$ac_func_search_save_LIBS
14260 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14261 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14262 ac_res=$ac_cv_search_opendir
14263 if test "$ac_res" != no; then
14264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14270 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14271 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14272 if test "${ac_cv_header_mmap_anon+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <sys/mman.h>
14288 #include <unistd.h>
14293 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14298 rm -f conftest.$ac_objext
14299 if { (ac_try="$ac_compile"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_compile") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_header_mmap_anon=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_header_mmap_anon=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 ac_cpp='$CPP $CPPFLAGS'
14343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14350 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14351 if test "$ac_cv_header_mmap_anon" = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_MMAP_ANONYMOUS 1
14359 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14360 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_stat_broken+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <sys/types.h>
14371 #include <sys/stat.h>
14373 #if defined S_ISBLK && defined S_IFDIR
14374 # if S_ISBLK (S_IFDIR)
14379 #if defined S_ISBLK && defined S_IFCHR
14380 # if S_ISBLK (S_IFCHR)
14385 #if defined S_ISLNK && defined S_IFREG
14386 # if S_ISLNK (S_IFREG)
14391 #if defined S_ISSOCK && defined S_IFREG
14392 # if S_ISSOCK (S_IFREG)
14398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14399 $EGREP "You lose" >/dev/null 2>&1; then
14400 ac_cv_header_stat_broken=yes
14402 ac_cv_header_stat_broken=no
14407 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14408 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14409 if test $ac_cv_header_stat_broken = yes; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define STAT_MACROS_BROKEN 1
14417 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14418 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14419 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 cat >conftest.$ac_ext <<_ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14429 #include <sys/wait.h>
14430 #ifndef WEXITSTATUS
14431 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14434 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_header_sys_wait_h=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_header_sys_wait_h=no
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14493 if test $ac_cv_header_sys_wait_h = yes; then
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_SYS_WAIT_H 1
14501 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14502 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14503 if test "${ac_cv_header_time+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <sys/types.h>
14513 #include <sys/time.h>
14519 if ((struct tm *) 0)
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_header_time=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_cv_header_time=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14570 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14571 if test $ac_cv_header_time = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define TIME_WITH_SYS_TIME 1
14586 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 ac_res=`eval echo '${'$as_ac_Header'}'`
14596 { echo "$as_me:$LINENO: result: $ac_res" >&5
14597 echo "${ECHO_T}$ac_res" >&6; }
14599 # Is the header compilable?
14600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 $ac_includes_default
14609 #include <$ac_header>
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_try") 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_header_compiler=yes
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_header_compiler=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14655 echo "${ECHO_T}$ac_header_compiler" >&6; }
14657 # Is the header present?
14658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <$ac_header>
14668 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } >/dev/null; then
14681 if test -s conftest.err; then
14682 ac_cpp_err=$ac_c_preproc_warn_flag
14683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14690 if test -z "$ac_cpp_err"; then
14691 ac_header_preproc=yes
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_header_preproc=no
14699 rm -f conftest.err conftest.$ac_ext
14700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14701 echo "${ECHO_T}$ac_header_preproc" >&6; }
14703 # So? What about this header?
14704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14710 ac_header_preproc=yes
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14726 ## ------------------------------------ ##
14727 ## Report this to http://llvm.org/bugs/ ##
14728 ## ------------------------------------ ##
14730 ) | sed "s/^/$as_me: WARNING: /" >&2
14733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 eval "$as_ac_Header=\$ac_header_preproc"
14740 ac_res=`eval echo '${'$as_ac_Header'}'`
14741 { echo "$as_me:$LINENO: result: $ac_res" >&5
14742 echo "${ECHO_T}$ac_res" >&6; }
14745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14746 cat >>confdefs.h <<_ACEOF
14747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14760 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_res=`eval echo '${'$as_ac_Header'}'`
14770 { echo "$as_me:$LINENO: result: $ac_res" >&5
14771 echo "${ECHO_T}$ac_res" >&6; }
14773 # Is the header compilable?
14774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 #include <$ac_header>
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_compile") 2>conftest.er1
14794 grep -v '^ *+' conftest.er1 >conftest.err
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14800 { (case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_try") 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_try") 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_header_compiler=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_compiler=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831 # Is the header present?
14832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 #include <$ac_header>
14842 if { (ac_try="$ac_cpp conftest.$ac_ext"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null; then
14855 if test -s conftest.err; then
14856 ac_cpp_err=$ac_c_preproc_warn_flag
14857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14864 if test -z "$ac_cpp_err"; then
14865 ac_header_preproc=yes
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_header_preproc=no
14873 rm -f conftest.err conftest.$ac_ext
14874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14875 echo "${ECHO_T}$ac_header_preproc" >&6; }
14877 # So? What about this header?
14878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14884 ac_header_preproc=yes
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14900 ## ------------------------------------ ##
14901 ## Report this to http://llvm.org/bugs/ ##
14902 ## ------------------------------------ ##
14904 ) | sed "s/^/$as_me: WARNING: /" >&2
14907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 eval "$as_ac_Header=\$ac_header_preproc"
14914 ac_res=`eval echo '${'$as_ac_Header'}'`
14915 { echo "$as_me:$LINENO: result: $ac_res" >&5
14916 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14930 for ac_header in utime.h windows.h
14932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 ac_res=`eval echo '${'$as_ac_Header'}'`
14940 { echo "$as_me:$LINENO: result: $ac_res" >&5
14941 echo "${ECHO_T}$ac_res" >&6; }
14943 # Is the header compilable?
14944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14953 #include <$ac_header>
14955 rm -f conftest.$ac_objext
14956 if { (ac_try="$ac_compile"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_compile") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_try") 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 ac_header_compiler=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_header_compiler=no
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14999 echo "${ECHO_T}$ac_header_compiler" >&6; }
15001 # Is the header present?
15002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 #include <$ac_header>
15012 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } >/dev/null; then
15025 if test -s conftest.err; then
15026 ac_cpp_err=$ac_c_preproc_warn_flag
15027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15034 if test -z "$ac_cpp_err"; then
15035 ac_header_preproc=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 ac_header_preproc=no
15043 rm -f conftest.err conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6; }
15047 # So? What about this header?
15048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15054 ac_header_preproc=yes
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070 ## ------------------------------------ ##
15071 ## Report this to http://llvm.org/bugs/ ##
15072 ## ------------------------------------ ##
15074 ) | sed "s/^/$as_me: WARNING: /" >&2
15077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 eval "$as_ac_Header=\$ac_header_preproc"
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15103 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15116 # Is the header compilable?
15117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 #include <$ac_header>
15128 rm -f conftest.$ac_objext
15129 if { (ac_try="$ac_compile"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_compile") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_try") 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_header_compiler=yes
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_header_compiler=no
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15172 echo "${ECHO_T}$ac_header_compiler" >&6; }
15174 # Is the header present?
15175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <$ac_header>
15185 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } >/dev/null; then
15198 if test -s conftest.err; then
15199 ac_cpp_err=$ac_c_preproc_warn_flag
15200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15207 if test -z "$ac_cpp_err"; then
15208 ac_header_preproc=yes
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 ac_header_preproc=no
15216 rm -f conftest.err conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15218 echo "${ECHO_T}$ac_header_preproc" >&6; }
15220 # So? What about this header?
15221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15227 ac_header_preproc=yes
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15243 ## ------------------------------------ ##
15244 ## Report this to http://llvm.org/bugs/ ##
15245 ## ------------------------------------ ##
15247 ) | sed "s/^/$as_me: WARNING: /" >&2
15250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 eval "$as_ac_Header=\$ac_header_preproc"
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15275 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15288 # Is the header compilable?
15289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15298 #include <$ac_header>
15300 rm -f conftest.$ac_objext
15301 if { (ac_try="$ac_compile"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_header_compiler=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_header_compiler=no
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344 echo "${ECHO_T}$ac_header_compiler" >&6; }
15346 # Is the header present?
15347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #include <$ac_header>
15357 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1 >conftest.err
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } >/dev/null; then
15370 if test -s conftest.err; then
15371 ac_cpp_err=$ac_c_preproc_warn_flag
15372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15379 if test -z "$ac_cpp_err"; then
15380 ac_header_preproc=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_header_preproc=no
15388 rm -f conftest.err conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6; }
15392 # So? What about this header?
15393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15399 ac_header_preproc=yes
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15415 ## ------------------------------------ ##
15416 ## Report this to http://llvm.org/bugs/ ##
15417 ## ------------------------------------ ##
15419 ) | sed "s/^/$as_me: WARNING: /" >&2
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 eval "$as_ac_Header=\$ac_header_preproc"
15429 ac_res=`eval echo '${'$as_ac_Header'}'`
15430 { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15444 for ac_header in valgrind/valgrind.h
15446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 ac_res=`eval echo '${'$as_ac_Header'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15457 # Is the header compilable?
15458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15467 #include <$ac_header>
15469 rm -f conftest.$ac_objext
15470 if { (ac_try="$ac_compile"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15484 { (case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_try") 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_header_compiler=yes
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_header_compiler=no
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513 echo "${ECHO_T}$ac_header_compiler" >&6; }
15515 # Is the header present?
15516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 #include <$ac_header>
15526 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15548 if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_preproc=no
15557 rm -f conftest.err conftest.$ac_ext
15558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15559 echo "${ECHO_T}$ac_header_preproc" >&6; }
15561 # So? What about this header?
15562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15568 ac_header_preproc=yes
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15584 ## ------------------------------------ ##
15585 ## Report this to http://llvm.org/bugs/ ##
15586 ## ------------------------------------ ##
15588 ) | sed "s/^/$as_me: WARNING: /" >&2
15591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 eval "$as_ac_Header=\$ac_header_preproc"
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 for ac_header in fenv.h
15615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 ac_res=`eval echo '${'$as_ac_Header'}'`
15623 { echo "$as_me:$LINENO: result: $ac_res" >&5
15624 echo "${ECHO_T}$ac_res" >&6; }
15626 # Is the header compilable?
15627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 #include <$ac_header>
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_header_compiler=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_header_compiler=no
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682 echo "${ECHO_T}$ac_header_compiler" >&6; }
15684 # Is the header present?
15685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <$ac_header>
15695 if { (ac_try="$ac_cpp conftest.$ac_ext"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15717 if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_preproc=no
15726 rm -f conftest.err conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6; }
15730 # So? What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15753 ## ------------------------------------ ##
15754 ## Report this to http://llvm.org/bugs/ ##
15755 ## ------------------------------------ ##
15757 ) | sed "s/^/$as_me: WARNING: /" >&2
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 eval "$as_ac_Header=\$ac_header_preproc"
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15781 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15783 for ac_header in pthread.h
15785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15796 # Is the header compilable?
15797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 $ac_includes_default
15806 #include <$ac_header>
15808 rm -f conftest.$ac_objext
15809 if { (ac_try="$ac_compile"
15810 case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_compile") 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823 { (case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_try") 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_header_compiler=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_header_compiler=no
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852 echo "${ECHO_T}$ac_header_compiler" >&6; }
15854 # Is the header present?
15855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 #include <$ac_header>
15865 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } >/dev/null; then
15878 if test -s conftest.err; then
15879 ac_cpp_err=$ac_c_preproc_warn_flag
15880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15887 if test -z "$ac_cpp_err"; then
15888 ac_header_preproc=yes
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_header_preproc=no
15896 rm -f conftest.err conftest.$ac_ext
15897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898 echo "${ECHO_T}$ac_header_preproc" >&6; }
15900 # So? What about this header?
15901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15907 ac_header_preproc=yes
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15923 ## ------------------------------------ ##
15924 ## Report this to http://llvm.org/bugs/ ##
15925 ## ------------------------------------ ##
15927 ) | sed "s/^/$as_me: WARNING: /" >&2
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 eval "$as_ac_Header=\$ac_header_preproc"
15937 ac_res=`eval echo '${'$as_ac_Header'}'`
15938 { echo "$as_me:$LINENO: result: $ac_res" >&5
15939 echo "${ECHO_T}$ac_res" >&6; }
15942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15943 cat >>confdefs.h <<_ACEOF
15944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15960 if test "$llvm_cv_enable_libffi" = "yes" ; then
15963 for ac_header in ffi.h ffi/ffi.h
15965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_res=`eval echo '${'$as_ac_Header'}'`
15973 { echo "$as_me:$LINENO: result: $ac_res" >&5
15974 echo "${ECHO_T}$ac_res" >&6; }
15976 # Is the header compilable?
15977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 $ac_includes_default
15986 #include <$ac_header>
15988 rm -f conftest.$ac_objext
15989 if { (ac_try="$ac_compile"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16003 { (case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_try") 2>&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; } &&
16012 { ac_try='test -s conftest.$ac_objext'
16013 { (case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_try") 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_header_compiler=yes
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_header_compiler=no
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 echo "${ECHO_T}$ac_header_compiler" >&6; }
16034 # Is the header present?
16035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <$ac_header>
16045 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16053 grep -v '^ *+' conftest.er1 >conftest.err
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } >/dev/null; then
16058 if test -s conftest.err; then
16059 ac_cpp_err=$ac_c_preproc_warn_flag
16060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16067 if test -z "$ac_cpp_err"; then
16068 ac_header_preproc=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_header_preproc=no
16076 rm -f conftest.err conftest.$ac_ext
16077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16078 echo "${ECHO_T}$ac_header_preproc" >&6; }
16080 # So? What about this header?
16081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16087 ac_header_preproc=yes
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16103 ## ------------------------------------ ##
16104 ## Report this to http://llvm.org/bugs/ ##
16105 ## ------------------------------------ ##
16107 ) | sed "s/^/$as_me: WARNING: /" >&2
16110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 eval "$as_ac_Header=\$ac_header_preproc"
16117 ac_res=`eval echo '${'$as_ac_Header'}'`
16118 { echo "$as_me:$LINENO: result: $ac_res" >&5
16119 echo "${ECHO_T}$ac_res" >&6; }
16122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16134 for ac_header in CrashReporterClient.h
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16168 grep -v '^ *+' conftest.er1 >conftest.err
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_header_compiler=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_header_compiler=no
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16203 echo "${ECHO_T}$ac_header_compiler" >&6; }
16205 # Is the header present?
16206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 #include <$ac_header>
16216 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } >/dev/null; then
16229 if test -s conftest.err; then
16230 ac_cpp_err=$ac_c_preproc_warn_flag
16231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16238 if test -z "$ac_cpp_err"; then
16239 ac_header_preproc=yes
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_header_preproc=no
16247 rm -f conftest.err conftest.$ac_ext
16248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6; }
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16274 ## ------------------------------------ ##
16275 ## Report this to http://llvm.org/bugs/ ##
16276 ## ------------------------------------ ##
16278 ) | sed "s/^/$as_me: WARNING: /" >&2
16281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 eval "$as_ac_Header=\$ac_header_preproc"
16288 ac_res=`eval echo '${'$as_ac_Header'}'`
16289 { echo "$as_me:$LINENO: result: $ac_res" >&5
16290 echo "${ECHO_T}$ac_res" >&6; }
16293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16294 cat >>confdefs.h <<_ACEOF
16295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16303 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16304 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 extern const char *__crashreporter_info__;
16313 __crashreporter_info__ = "test";
16318 rm -f conftest.$ac_objext conftest$ac_exeext
16319 if { (ac_try="$ac_link"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_link") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest$ac_exeext'
16343 { (case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 { echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6; }
16355 cat >>confdefs.h <<\_ACEOF
16356 #define HAVE_CRASHREPORTER_INFO 1
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 { echo "$as_me:$LINENO: result: no" >&5
16364 echo "${ECHO_T}no" >&6; }
16366 cat >>confdefs.h <<\_ACEOF
16367 #define HAVE_CRASHREPORTER_INFO 0
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16379 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16380 if test "${ac_cv_huge_val_sanity+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 ac_cpp='$CXXCPP $CPPFLAGS'
16386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16390 ac_save_CXXFLAGS=$CXXFLAGS
16391 CXXFLAGS="$CXXFLAGS -pedantic"
16392 if test "$cross_compiling" = yes; then
16393 ac_cv_huge_val_sanity=yes
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16405 double x = HUGE_VAL; return x != x;
16410 rm -f conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_link") 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_huge_val_sanity=yes
16432 echo "$as_me: program exited with status $ac_status" >&5
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ( exit $ac_status )
16437 ac_cv_huge_val_sanity=no
16439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16443 CXXFLAGS=$ac_save_CXXFLAGS
16445 ac_cpp='$CPP $CPPFLAGS'
16446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16452 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16453 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16454 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16457 { echo "$as_me:$LINENO: checking for pid_t" >&5
16458 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16459 if test "${ac_cv_type_pid_t+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 $ac_includes_default
16469 typedef pid_t ac__type_new_;
16473 if ((ac__type_new_ *) 0)
16475 if (sizeof (ac__type_new_))
16481 rm -f conftest.$ac_objext
16482 if { (ac_try="$ac_compile"
16483 case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_compile") 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_try") 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ac_cv_type_pid_t=yes
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_cv_type_pid_t=no
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16526 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16527 if test $ac_cv_type_pid_t = yes; then
16531 cat >>confdefs.h <<_ACEOF
16537 { echo "$as_me:$LINENO: checking for size_t" >&5
16538 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16539 if test "${ac_cv_type_size_t+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 $ac_includes_default
16549 typedef size_t ac__type_new_;
16553 if ((ac__type_new_ *) 0)
16555 if (sizeof (ac__type_new_))
16561 rm -f conftest.$ac_objext
16562 if { (ac_try="$ac_compile"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_compile") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_type_size_t=yes
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_cv_type_size_t=no
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16606 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16607 if test $ac_cv_type_size_t = yes; then
16611 cat >>confdefs.h <<_ACEOF
16612 #define size_t unsigned int
16618 cat >>confdefs.h <<_ACEOF
16619 #define RETSIGTYPE void
16622 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16623 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16624 if test "${ac_cv_struct_tm+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 #include <sys/types.h>
16639 struct tm *tp; tp->tm_sec;
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
16669 { (case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_try") 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_struct_tm=time.h
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_struct_tm=sys/time.h
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16689 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16690 if test $ac_cv_struct_tm = sys/time.h; then
16692 cat >>confdefs.h <<\_ACEOF
16693 #define TM_IN_SYS_TIME 1
16698 { echo "$as_me:$LINENO: checking for int64_t" >&5
16699 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16700 if test "${ac_cv_type_int64_t+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 $ac_includes_default
16710 typedef int64_t ac__type_new_;
16714 if ((ac__type_new_ *) 0)
16716 if (sizeof (ac__type_new_))
16722 rm -f conftest.$ac_objext
16723 if { (ac_try="$ac_compile"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_compile") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_type_int64_t=yes
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_type_int64_t=no
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16767 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16768 if test $ac_cv_type_int64_t = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define HAVE_INT64_T 1
16776 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16777 echo "$as_me: error: Type int64_t required but not found" >&2;}
16778 { (exit 1); exit 1; }; }
16781 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16782 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16783 if test "${ac_cv_type_uint64_t+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 $ac_includes_default
16793 typedef uint64_t ac__type_new_;
16797 if ((ac__type_new_ *) 0)
16799 if (sizeof (ac__type_new_))
16805 rm -f conftest.$ac_objext
16806 if { (ac_try="$ac_compile"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_compile") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_cv_type_uint64_t=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_type_uint64_t=no
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16850 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16851 if test $ac_cv_type_uint64_t = yes; then
16853 cat >>confdefs.h <<_ACEOF
16854 #define HAVE_UINT64_T 1
16859 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16860 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16861 if test "${ac_cv_type_u_int64_t+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 cat >conftest.$ac_ext <<_ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870 $ac_includes_default
16871 typedef u_int64_t ac__type_new_;
16875 if ((ac__type_new_ *) 0)
16877 if (sizeof (ac__type_new_))
16883 rm -f conftest.$ac_objext
16884 if { (ac_try="$ac_compile"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_compile") 2>conftest.er1
16892 grep -v '^ *+' conftest.er1 >conftest.err
16894 cat conftest.err >&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16898 { (case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_try") 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_try") 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_type_u_int64_t=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 ac_cv_type_u_int64_t=no
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16928 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16929 if test $ac_cv_type_u_int64_t = yes; then
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_U_INT64_T 1
16937 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16938 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16939 { (exit 1); exit 1; }; }
16953 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16969 #define $ac_func innocuous_$ac_func
16971 /* System header to define __stub macros and hopefully few prototypes,
16972 which can conflict with char $ac_func (); below.
16973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974 <limits.h> exists even on freestanding compilers. */
16977 # include <limits.h>
16979 # include <assert.h>
16984 /* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16991 /* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994 #if defined __stub_$ac_func || defined __stub___$ac_func
17001 return $ac_func ();
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 eval "$as_ac_var=yes"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_var=no"
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17051 ac_res=`eval echo '${'$as_ac_var'}'`
17052 { echo "$as_me:$LINENO: result: $ac_res" >&5
17053 echo "${ECHO_T}$ac_res" >&6; }
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17066 for ac_func in powf fmodf strtof round
17068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17082 #define $ac_func innocuous_$ac_func
17084 /* System header to define __stub macros and hopefully few prototypes,
17085 which can conflict with char $ac_func (); below.
17086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17087 <limits.h> exists even on freestanding compilers. */
17090 # include <limits.h>
17092 # include <assert.h>
17097 /* Override any GCC internal prototype to avoid an error.
17098 Use char because int might match the return type of a GCC
17099 builtin and then its argument prototype would still apply. */
17104 /* The GNU C library defines this for functions which it implements
17105 to always fail with ENOSYS. Some functions are actually named
17106 something starting with __ and the normal name is an alias. */
17107 #if defined __stub_$ac_func || defined __stub___$ac_func
17114 return $ac_func ();
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_try") 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } &&
17143 { ac_try='test -s conftest$ac_exeext'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 eval "$as_ac_var=yes"
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 eval "$as_ac_var=no"
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17164 ac_res=`eval echo '${'$as_ac_var'}'`
17165 { echo "$as_me:$LINENO: result: $ac_res" >&5
17166 echo "${ECHO_T}$ac_res" >&6; }
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17168 cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17180 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196 #define $ac_func innocuous_$ac_func
17198 /* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char $ac_func (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17204 # include <limits.h>
17206 # include <assert.h>
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17218 /* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221 #if defined __stub_$ac_func || defined __stub___$ac_func
17228 return $ac_func ();
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 eval "$as_ac_var=yes"
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 eval "$as_ac_var=no"
17275 rm -f core conftest.err conftest.$ac_objext \
17276 conftest$ac_exeext conftest.$ac_ext
17278 ac_res=`eval echo '${'$as_ac_var'}'`
17279 { echo "$as_me:$LINENO: result: $ac_res" >&5
17280 echo "${ECHO_T}$ac_res" >&6; }
17281 if test `eval echo '${'$as_ac_var'}'` = yes; then
17282 cat >>confdefs.h <<_ACEOF
17283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17292 for ac_func in isatty mkdtemp mkstemp
17294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17308 #define $ac_func innocuous_$ac_func
17310 /* System header to define __stub macros and hopefully few prototypes,
17311 which can conflict with char $ac_func (); below.
17312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17313 <limits.h> exists even on freestanding compilers. */
17316 # include <limits.h>
17318 # include <assert.h>
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17330 /* The GNU C library defines this for functions which it implements
17331 to always fail with ENOSYS. Some functions are actually named
17332 something starting with __ and the normal name is an alias. */
17333 #if defined __stub_$ac_func || defined __stub___$ac_func
17340 return $ac_func ();
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_link") 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17360 { (case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_try") 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest$ac_exeext'
17370 { (case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_try") 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 eval "$as_ac_var=yes"
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 eval "$as_ac_var=no"
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17390 ac_res=`eval echo '${'$as_ac_var'}'`
17391 { echo "$as_me:$LINENO: result: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17393 if test `eval echo '${'$as_ac_var'}'` = yes; then
17394 cat >>confdefs.h <<_ACEOF
17395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17408 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17424 #define $ac_func innocuous_$ac_func
17426 /* System header to define __stub macros and hopefully few prototypes,
17427 which can conflict with char $ac_func (); below.
17428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17429 <limits.h> exists even on freestanding compilers. */
17432 # include <limits.h>
17434 # include <assert.h>
17439 /* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17446 /* The GNU C library defines this for functions which it implements
17447 to always fail with ENOSYS. Some functions are actually named
17448 something starting with __ and the normal name is an alias. */
17449 #if defined __stub_$ac_func || defined __stub___$ac_func
17456 return $ac_func ();
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_try") 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 eval "$as_ac_var=yes"
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 eval "$as_ac_var=no"
17503 rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17506 ac_res=`eval echo '${'$as_ac_var'}'`
17507 { echo "$as_me:$LINENO: result: $ac_res" >&5
17508 echo "${ECHO_T}$ac_res" >&6; }
17509 if test `eval echo '${'$as_ac_var'}'` = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17520 for ac_func in strerror strerror_r setenv
17522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17536 #define $ac_func innocuous_$ac_func
17538 /* System header to define __stub macros and hopefully few prototypes,
17539 which can conflict with char $ac_func (); below.
17540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541 <limits.h> exists even on freestanding compilers. */
17544 # include <limits.h>
17546 # include <assert.h>
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17558 /* The GNU C library defines this for functions which it implements
17559 to always fail with ENOSYS. Some functions are actually named
17560 something starting with __ and the normal name is an alias. */
17561 #if defined __stub_$ac_func || defined __stub___$ac_func
17568 return $ac_func ();
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 eval "$as_ac_var=yes"
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 eval "$as_ac_var=no"
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17618 ac_res=`eval echo '${'$as_ac_var'}'`
17619 { echo "$as_me:$LINENO: result: $ac_res" >&5
17620 echo "${ECHO_T}$ac_res" >&6; }
17621 if test `eval echo '${'$as_ac_var'}'` = yes; then
17622 cat >>confdefs.h <<_ACEOF
17623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17633 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17649 #define $ac_func innocuous_$ac_func
17651 /* System header to define __stub macros and hopefully few prototypes,
17652 which can conflict with char $ac_func (); below.
17653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17654 <limits.h> exists even on freestanding compilers. */
17657 # include <limits.h>
17659 # include <assert.h>
17664 /* Override any GCC internal prototype to avoid an error.
17665 Use char because int might match the return type of a GCC
17666 builtin and then its argument prototype would still apply. */
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined __stub_$ac_func || defined __stub___$ac_func
17681 return $ac_func ();
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_try") 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 eval "$as_ac_var=yes"
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 eval "$as_ac_var=no"
17728 rm -f core conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17731 ac_res=`eval echo '${'$as_ac_var'}'`
17732 { echo "$as_me:$LINENO: result: $ac_res" >&5
17733 echo "${ECHO_T}$ac_res" >&6; }
17734 if test `eval echo '${'$as_ac_var'}'` = yes; then
17735 cat >>confdefs.h <<_ACEOF
17736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17747 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17763 #define $ac_func innocuous_$ac_func
17765 /* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char $ac_func (); below.
17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768 <limits.h> exists even on freestanding compilers. */
17771 # include <limits.h>
17773 # include <assert.h>
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17785 /* The GNU C library defines this for functions which it implements
17786 to always fail with ENOSYS. Some functions are actually named
17787 something starting with __ and the normal name is an alias. */
17788 #if defined __stub_$ac_func || defined __stub___$ac_func
17795 return $ac_func ();
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (ac_try="$ac_link"
17802 case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_link") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 eval "$as_ac_var=yes"
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 eval "$as_ac_var=no"
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17845 ac_res=`eval echo '${'$as_ac_var'}'`
17846 { echo "$as_me:$LINENO: result: $ac_res" >&5
17847 echo "${ECHO_T}$ac_res" >&6; }
17848 if test `eval echo '${'$as_ac_var'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17856 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17857 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17858 if test "${llvm_cv_c_printf_a+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 ac_cpp='$CPP $CPPFLAGS'
17863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17867 if test "$cross_compiling" = yes; then
17868 llvmac_cv_c_printf_a=no
17870 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17879 #include <stdlib.h>
17885 volatile double A, B;
17889 sprintf(Buffer, "%a", A);
17893 if (A != 0x1.999999999999ap-4)
17900 rm -f conftest$ac_exeext
17901 if { (ac_try="$ac_link"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_link") 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17911 { (case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_try") 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 llvm_cv_c_printf_a=yes
17922 echo "$as_me: program exited with status $ac_status" >&5
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 ( exit $ac_status )
17927 llvmac_cv_c_printf_a=no
17929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17934 ac_cpp='$CPP $CPPFLAGS'
17935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17940 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17941 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17942 if test "$llvm_cv_c_printf_a" = "yes"; then
17944 cat >>confdefs.h <<\_ACEOF
17945 #define HAVE_PRINTF_A 1
17951 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17952 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17953 if test "${ac_cv_func_rand48+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 ac_cpp='$CXXCPP $CPPFLAGS'
17958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 #include <stdlib.h>
17972 srand48(0);lrand48();drand48();
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_func_rand48=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_func_rand48=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18028 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18030 if test "$ac_cv_func_rand48" = "yes" ; then
18032 cat >>confdefs.h <<\_ACEOF
18033 #define HAVE_RAND48 1
18039 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18040 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18041 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 $ac_includes_default
18055 char *p = (char *) strerror_s;
18063 rm -f conftest.$ac_objext
18064 if { (ac_try="$ac_compile"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_compile") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_try") 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest.$ac_objext'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_have_decl_strerror_s=yes
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 ac_cv_have_decl_strerror_s=no
18105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18108 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18109 if test $ac_cv_have_decl_strerror_s = yes; then
18111 cat >>confdefs.h <<_ACEOF
18112 #define HAVE_DECL_STRERROR_S 1
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_DECL_STRERROR_S 0
18126 if test "$llvm_cv_os_type" = "MingW" ; then
18127 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18128 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18129 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 ac_check_lib_save_LIBS=$LIBS
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18141 /* Override any GCC internal prototype to avoid an error.
18142 Use char because int might match the return type of a GCC
18143 builtin and then its argument prototype would still apply. */
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_link") 2>conftest.er1
18165 grep -v '^ *+' conftest.er1 >conftest.err
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } &&
18180 { ac_try='test -s conftest$ac_exeext'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_lib_gcc__alloca=yes
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 ac_cv_lib_gcc__alloca=no
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_check_lib_save_LIBS
18202 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18203 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18204 if test $ac_cv_lib_gcc__alloca = yes; then
18206 cat >>confdefs.h <<\_ACEOF
18207 #define HAVE__ALLOCA 1
18212 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18213 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18214 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 ac_check_lib_save_LIBS=$LIBS
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18236 return __alloca ();
18241 rm -f conftest.$ac_objext conftest$ac_exeext
18242 if { (ac_try="$ac_link"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_link") 2>conftest.er1
18250 grep -v '^ *+' conftest.er1 >conftest.err
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest$ac_exeext'
18266 { (case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_try") 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_cv_lib_gcc___alloca=yes
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_cv_lib_gcc___alloca=no
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18287 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18288 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18289 if test $ac_cv_lib_gcc___alloca = yes; then
18291 cat >>confdefs.h <<\_ACEOF
18292 #define HAVE___ALLOCA 1
18297 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18298 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18299 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 ac_check_lib_save_LIBS=$LIBS
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18321 return __chkstk ();
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest$ac_exeext'
18351 { (case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_try") 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 ac_cv_lib_gcc___chkstk=yes
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 ac_cv_lib_gcc___chkstk=no
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18372 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18373 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18374 if test $ac_cv_lib_gcc___chkstk = yes; then
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE___CHKSTK 1
18382 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18383 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18384 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 ac_check_lib_save_LIBS=$LIBS
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18406 return ___chkstk ();
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (ac_try="$ac_link"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_link") 2>conftest.er1
18420 grep -v '^ *+' conftest.er1 >conftest.err
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_try") 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_gcc____chkstk=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_lib_gcc____chkstk=no
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18457 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18458 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18459 if test $ac_cv_lib_gcc____chkstk = yes; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE____CHKSTK 1
18468 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18469 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18470 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 ac_check_lib_save_LIBS=$LIBS
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18482 /* Override any GCC internal prototype to avoid an error.
18483 Use char because int might match the return type of a GCC
18484 builtin and then its argument prototype would still apply. */
18492 return __ashldi3 ();
18497 rm -f conftest.$ac_objext conftest$ac_exeext
18498 if { (ac_try="$ac_link"
18499 case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_link") 2>conftest.er1
18506 grep -v '^ *+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18512 { (case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_try") 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; } &&
18521 { ac_try='test -s conftest$ac_exeext'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
18531 ac_cv_lib_gcc___ashldi3=yes
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_cv_lib_gcc___ashldi3=no
18539 rm -f core conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18541 LIBS=$ac_check_lib_save_LIBS
18543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18544 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18545 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18547 cat >>confdefs.h <<\_ACEOF
18548 #define HAVE___ASHLDI3 1
18553 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18554 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18555 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 ac_check_lib_save_LIBS=$LIBS
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18567 /* Override any GCC internal prototype to avoid an error.
18568 Use char because int might match the return type of a GCC
18569 builtin and then its argument prototype would still apply. */
18577 return __ashrdi3 ();
18582 rm -f conftest.$ac_objext conftest$ac_exeext
18583 if { (ac_try="$ac_link"
18584 case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_link") 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18597 { (case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_try") 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest$ac_exeext'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 ac_cv_lib_gcc___ashrdi3=yes
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_lib_gcc___ashrdi3=no
18624 rm -f core conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18629 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18630 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18632 cat >>confdefs.h <<\_ACEOF
18633 #define HAVE___ASHRDI3 1
18638 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18639 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18640 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 ac_check_lib_save_LIBS=$LIBS
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18662 return __divdi3 ();
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_link") 2>conftest.er1
18676 grep -v '^ *+' conftest.er1 >conftest.err
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18682 { (case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_try") 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest$ac_exeext'
18692 { (case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_try") 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; }; then
18701 ac_cv_lib_gcc___divdi3=yes
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 ac_cv_lib_gcc___divdi3=no
18709 rm -f core conftest.err conftest.$ac_objext \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18713 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18714 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18715 if test $ac_cv_lib_gcc___divdi3 = yes; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE___DIVDI3 1
18723 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18724 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18725 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 ac_check_lib_save_LIBS=$LIBS
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18737 /* Override any GCC internal prototype to avoid an error.
18738 Use char because int might match the return type of a GCC
18739 builtin and then its argument prototype would still apply. */
18747 return __fixdfdi ();
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (ac_try="$ac_link"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_link") 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18767 { (case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_try") 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; } &&
18776 { ac_try='test -s conftest$ac_exeext'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 ac_cv_lib_gcc___fixdfdi=yes
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_lib_gcc___fixdfdi=no
18794 rm -f core conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext conftest.$ac_ext
18796 LIBS=$ac_check_lib_save_LIBS
18798 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18799 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18800 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18802 cat >>confdefs.h <<\_ACEOF
18803 #define HAVE___FIXDFDI 1
18808 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18809 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18810 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 ac_check_lib_save_LIBS=$LIBS
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18832 return __fixsfdi ();
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_link") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
18851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18852 { (case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_try") 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest$ac_exeext'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_cv_lib_gcc___fixsfdi=yes
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 ac_cv_lib_gcc___fixsfdi=no
18879 rm -f core conftest.err conftest.$ac_objext \
18880 conftest$ac_exeext conftest.$ac_ext
18881 LIBS=$ac_check_lib_save_LIBS
18883 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18884 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18885 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18887 cat >>confdefs.h <<\_ACEOF
18888 #define HAVE___FIXSFDI 1
18893 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18894 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18895 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_check_lib_save_LIBS=$LIBS
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18913 char __floatdidf ();
18917 return __floatdidf ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_try") 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest$ac_exeext'
18947 { (case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_try") 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_cv_lib_gcc___floatdidf=yes
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_cv_lib_gcc___floatdidf=no
18964 rm -f core conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext conftest.$ac_ext
18966 LIBS=$ac_check_lib_save_LIBS
18968 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18969 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18970 if test $ac_cv_lib_gcc___floatdidf = yes; then
18972 cat >>confdefs.h <<\_ACEOF
18973 #define HAVE___FLOATDIDF 1
18978 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18979 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18980 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 ac_check_lib_save_LIBS=$LIBS
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18992 /* Override any GCC internal prototype to avoid an error.
18993 Use char because int might match the return type of a GCC
18994 builtin and then its argument prototype would still apply. */
19002 return __lshrdi3 ();
19007 rm -f conftest.$ac_objext conftest$ac_exeext
19008 if { (ac_try="$ac_link"
19009 case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014 (eval "$ac_link") 2>conftest.er1
19016 grep -v '^ *+' conftest.er1 >conftest.err
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19022 { (case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_try") 2>&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } &&
19031 { ac_try='test -s conftest$ac_exeext'
19032 { (case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_try") 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_lib_gcc___lshrdi3=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_cv_lib_gcc___lshrdi3=no
19049 rm -f core conftest.err conftest.$ac_objext \
19050 conftest$ac_exeext conftest.$ac_ext
19051 LIBS=$ac_check_lib_save_LIBS
19053 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19054 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19055 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19057 cat >>confdefs.h <<\_ACEOF
19058 #define HAVE___LSHRDI3 1
19063 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19064 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19065 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 ac_check_lib_save_LIBS=$LIBS
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 /* Override any GCC internal prototype to avoid an error.
19078 Use char because int might match the return type of a GCC
19079 builtin and then its argument prototype would still apply. */
19087 return __moddi3 ();
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_link") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest$ac_exeext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_lib_gcc___moddi3=yes
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ac_cv_lib_gcc___moddi3=no
19134 rm -f core conftest.err conftest.$ac_objext \
19135 conftest$ac_exeext conftest.$ac_ext
19136 LIBS=$ac_check_lib_save_LIBS
19138 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19139 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19140 if test $ac_cv_lib_gcc___moddi3 = yes; then
19142 cat >>confdefs.h <<\_ACEOF
19143 #define HAVE___MODDI3 1
19148 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19149 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19150 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 ac_check_lib_save_LIBS=$LIBS
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 /* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply. */
19172 return __udivdi3 ();
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
19191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest$ac_exeext'
19202 { (case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_try") 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_cv_lib_gcc___udivdi3=yes
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_lib_gcc___udivdi3=no
19219 rm -f core conftest.err conftest.$ac_objext \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19223 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19224 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19225 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19227 cat >>confdefs.h <<\_ACEOF
19228 #define HAVE___UDIVDI3 1
19233 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19234 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19235 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 ac_check_lib_save_LIBS=$LIBS
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19257 return __umoddi3 ();
19262 rm -f conftest.$ac_objext conftest$ac_exeext
19263 if { (ac_try="$ac_link"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_link") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest$ac_exeext'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_lib_gcc___umoddi3=yes
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_cv_lib_gcc___umoddi3=no
19304 rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19308 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19309 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19310 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE___UMODDI3 1
19319 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19320 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19321 if test "${ac_cv_lib_gcc___main+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 ac_check_lib_save_LIBS=$LIBS
19326 cat >conftest.$ac_ext <<_ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19333 /* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest$ac_exeext'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_cv_lib_gcc___main=yes
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_cv_lib_gcc___main=no
19390 rm -f core conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19392 LIBS=$ac_check_lib_save_LIBS
19394 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19395 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19396 if test $ac_cv_lib_gcc___main = yes; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define HAVE___MAIN 1
19404 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19405 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19406 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 ac_check_lib_save_LIBS=$LIBS
19411 cat >conftest.$ac_ext <<_ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19428 return __cmpdi2 ();
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (ac_try="$ac_link"
19435 case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_link") 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest$ac_exeext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_lib_gcc___cmpdi2=yes
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 ac_cv_lib_gcc___cmpdi2=no
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 LIBS=$ac_check_lib_save_LIBS
19479 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19480 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19481 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE___CMPDI2 1
19491 if test "$llvm_cv_os_type" = "MingW" ; then
19492 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19493 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19494 cat >conftest.$ac_ext <<_ACEOF
19495 #include <windows.h>
19496 #include <imagehlp.h>
19497 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19498 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19500 rm -f conftest.$ac_objext
19501 if { (ac_try="$ac_compile"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compile") 2>conftest.er1
19509 grep -v '^ *+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19535 { echo "$as_me:$LINENO: result: yes" >&5
19536 echo "${ECHO_T}yes" >&6; }
19537 llvm_cv_win32_elmcb_pcstr="PCSTR"
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19544 { echo "$as_me:$LINENO: result: no" >&5
19545 echo "${ECHO_T}no" >&6; }
19546 llvm_cv_win32_elmcb_pcstr="PSTR"
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 cat >>confdefs.h <<_ACEOF
19553 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19559 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19560 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19561 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 ac_cpp='$CXXCPP $CPPFLAGS'
19566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600 { (case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_try") 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_try") 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_cv_func_isnan_in_math_h=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_cv_func_isnan_in_math_h=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19636 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19639 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_ISNAN_IN_MATH_H 1
19647 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19648 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19649 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 ac_cpp='$CXXCPP $CPPFLAGS'
19654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19658 cat >conftest.$ac_ext <<_ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19682 grep -v '^ *+' conftest.er1 >conftest.err
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_cv_func_isnan_in_cmath=yes
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 ac_cv_func_isnan_in_cmath=no
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 ac_cpp='$CPP $CPPFLAGS'
19718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19724 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19726 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19728 cat >>confdefs.h <<\_ACEOF
19729 #define HAVE_ISNAN_IN_CMATH 1
19734 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19735 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19736 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 ac_cpp='$CXXCPP $CPPFLAGS'
19741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19755 float f; std::isnan(f);
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_compile") 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19775 { (case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_try") 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
19785 { (case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_try") 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_func_std_isnan_in_cmath=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_func_std_isnan_in_cmath=no
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 ac_cpp='$CPP $CPPFLAGS'
19805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19811 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19813 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_STD_ISNAN_IN_CMATH 1
19822 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19823 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19824 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 ac_cpp='$CXXCPP $CPPFLAGS'
19829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19848 rm -f conftest.$ac_objext
19849 if { (ac_try="$ac_compile"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest.$ac_objext'
19873 { (case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_try") 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_func_isinf_in_math_h=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_func_isinf_in_math_h=no
19890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19892 ac_cpp='$CPP $CPPFLAGS'
19893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19899 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19901 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_ISINF_IN_MATH_H 1
19909 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19910 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19911 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 ac_cpp='$CXXCPP $CPPFLAGS'
19916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_compile") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
19949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; } &&
19959 { ac_try='test -s conftest.$ac_objext'
19960 { (case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_try") 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_cv_func_isinf_in_cmath=yes
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_cv_func_isinf_in_cmath=no
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19985 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19986 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19988 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19990 cat >>confdefs.h <<\_ACEOF
19991 #define HAVE_ISINF_IN_CMATH 1
19996 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19997 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19998 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 ac_cpp='$CXXCPP $CPPFLAGS'
20003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20017 float f; std::isinf(f);
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_compile") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_func_std_isinf_in_cmath=yes
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_cv_func_std_isinf_in_cmath=no
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 ac_cpp='$CPP $CPPFLAGS'
20067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20073 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20075 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20077 cat >>confdefs.h <<\_ACEOF
20078 #define HAVE_STD_ISINF_IN_CMATH 1
20083 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20084 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20085 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 ac_cpp='$CXXCPP $CPPFLAGS'
20090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <ieeefp.h>
20104 float f; finite(f);
20109 rm -f conftest.$ac_objext
20110 if { (ac_try="$ac_compile"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_compile") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20124 { (case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_try") 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_try") 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_func_finite_in_ieeefp_h=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_func_finite_in_ieeefp_h=no
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 ac_cpp='$CPP $CPPFLAGS'
20154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20160 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20162 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20164 cat >>confdefs.h <<\_ACEOF
20165 #define HAVE_FINITE_IN_IEEEFP_H 1
20172 if test "$llvm_cv_platform_type" = "Unix" ; then
20175 for ac_header in stdlib.h unistd.h
20177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 ac_res=`eval echo '${'$as_ac_Header'}'`
20185 { echo "$as_me:$LINENO: result: $ac_res" >&5
20186 echo "${ECHO_T}$ac_res" >&6; }
20188 # Is the header compilable?
20189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 #include <$ac_header>
20200 rm -f conftest.$ac_objext
20201 if { (ac_try="$ac_compile"
20202 case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_compile") 2>conftest.er1
20209 grep -v '^ *+' conftest.er1 >conftest.err
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20215 { (case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_try") 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest.$ac_objext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_header_compiler=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_header_compiler=no
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6; }
20246 # Is the header present?
20247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <$ac_header>
20257 if { (ac_try="$ac_cpp conftest.$ac_ext"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } >/dev/null; then
20270 if test -s conftest.err; then
20271 ac_cpp_err=$ac_c_preproc_warn_flag
20272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20279 if test -z "$ac_cpp_err"; then
20280 ac_header_preproc=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_header_preproc=no
20288 rm -f conftest.err conftest.$ac_ext
20289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20290 echo "${ECHO_T}$ac_header_preproc" >&6; }
20292 # So? What about this header?
20293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20299 ac_header_preproc=yes
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20315 ## ------------------------------------ ##
20316 ## Report this to http://llvm.org/bugs/ ##
20317 ## ------------------------------------ ##
20319 ) | sed "s/^/$as_me: WARNING: /" >&2
20322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 eval "$as_ac_Header=\$ac_header_preproc"
20329 ac_res=`eval echo '${'$as_ac_Header'}'`
20330 { echo "$as_me:$LINENO: result: $ac_res" >&5
20331 echo "${ECHO_T}$ac_res" >&6; }
20334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20344 for ac_func in getpagesize
20346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20360 #define $ac_func innocuous_$ac_func
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func (); below.
20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20365 <limits.h> exists even on freestanding compilers. */
20368 # include <limits.h>
20370 # include <assert.h>
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20382 /* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385 #if defined __stub_$ac_func || defined __stub___$ac_func
20392 return $ac_func ();
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (ac_try="$ac_link"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_link") 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20412 { (case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_try") 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest$ac_exeext'
20422 { (case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_try") 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 eval "$as_ac_var=yes"
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 eval "$as_ac_var=no"
20439 rm -f core conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20442 ac_res=`eval echo '${'$as_ac_var'}'`
20443 { echo "$as_me:$LINENO: result: $ac_res" >&5
20444 echo "${ECHO_T}$ac_res" >&6; }
20445 if test `eval echo '${'$as_ac_var'}'` = yes; then
20446 cat >>confdefs.h <<_ACEOF
20447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453 { echo "$as_me:$LINENO: checking for working mmap" >&5
20454 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20455 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 if test "$cross_compiling" = yes; then
20459 ac_cv_func_mmap_fixed_mapped=no
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20468 /* malloc might have been renamed as rpl_malloc. */
20471 /* Thanks to Mike Haertel and Jim Avera for this test.
20472 Here is a matrix of mmap possibilities:
20473 mmap private not fixed
20474 mmap private fixed at somewhere currently unmapped
20475 mmap private fixed at somewhere already mapped
20476 mmap shared not fixed
20477 mmap shared fixed at somewhere currently unmapped
20478 mmap shared fixed at somewhere already mapped
20479 For private mappings, we should verify that changes cannot be read()
20480 back from the file, nor mmap's back from the file at a different
20481 address. (There have been systems where private was not correctly
20482 implemented like the infamous i386 svr4.0, and systems where the
20483 VM page cache was not coherent with the file system buffer cache
20484 like early versions of FreeBSD and possibly contemporary NetBSD.)
20485 For shared mappings, we should conversely verify that changes get
20486 propagated back to all the places they're supposed to be.
20488 Grep wants private fixed already mapped.
20489 The main things grep needs to know about mmap are:
20490 * does it exist and is it safe to write into the mmap'd area
20491 * how to use it (BSD variants) */
20494 #include <sys/mman.h>
20496 #if !STDC_HEADERS && !HAVE_STDLIB_H
20500 /* This mess was copied from the GNU getpagesize.h. */
20501 #if !HAVE_GETPAGESIZE
20502 /* Assume that all systems that can run configure have sys/param.h. */
20503 # if !HAVE_SYS_PARAM_H
20504 # define HAVE_SYS_PARAM_H 1
20507 # ifdef _SC_PAGESIZE
20508 # define getpagesize() sysconf(_SC_PAGESIZE)
20509 # else /* no _SC_PAGESIZE */
20510 # if HAVE_SYS_PARAM_H
20511 # include <sys/param.h>
20512 # ifdef EXEC_PAGESIZE
20513 # define getpagesize() EXEC_PAGESIZE
20514 # else /* no EXEC_PAGESIZE */
20516 # define getpagesize() NBPG * CLSIZE
20519 # endif /* no CLSIZE */
20520 # else /* no NBPG */
20522 # define getpagesize() NBPC
20523 # else /* no NBPC */
20525 # define getpagesize() PAGESIZE
20526 # endif /* PAGESIZE */
20527 # endif /* no NBPC */
20528 # endif /* no NBPG */
20529 # endif /* no EXEC_PAGESIZE */
20530 # else /* no HAVE_SYS_PARAM_H */
20531 # define getpagesize() 8192 /* punt totally */
20532 # endif /* no HAVE_SYS_PARAM_H */
20533 # endif /* no _SC_PAGESIZE */
20535 #endif /* no HAVE_GETPAGESIZE */
20540 char *data, *data2, *data3;
20544 pagesize = getpagesize ();
20546 /* First, make a file with some known garbage in it. */
20547 data = (char *) malloc (pagesize);
20550 for (i = 0; i < pagesize; ++i)
20551 *(data + i) = rand ();
20553 fd = creat ("conftest.mmap", 0600);
20556 if (write (fd, data, pagesize) != pagesize)
20560 /* Next, try to mmap the file at a fixed address which already has
20561 something else allocated at it. If we can, also make sure that
20562 we see the same garbage. */
20563 fd = open ("conftest.mmap", O_RDWR);
20566 data2 = (char *) malloc (2 * pagesize);
20569 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20570 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20571 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20573 for (i = 0; i < pagesize; ++i)
20574 if (*(data + i) != *(data2 + i))
20577 /* Finally, make sure that changes to the mapped area do not
20578 percolate back to the file as seen by read(). (This is a bug on
20579 some variants of i386 svr4.0.) */
20580 for (i = 0; i < pagesize; ++i)
20581 *(data2 + i) = *(data2 + i) + 1;
20582 data3 = (char *) malloc (pagesize);
20585 if (read (fd, data3, pagesize) != pagesize)
20587 for (i = 0; i < pagesize; ++i)
20588 if (*(data + i) != *(data3 + i))
20594 rm -f conftest$ac_exeext
20595 if { (ac_try="$ac_link"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_link") 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20605 { (case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_try") 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; }; then
20614 ac_cv_func_mmap_fixed_mapped=yes
20616 echo "$as_me: program exited with status $ac_status" >&5
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ( exit $ac_status )
20621 ac_cv_func_mmap_fixed_mapped=no
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20629 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20630 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20632 cat >>confdefs.h <<\_ACEOF
20633 #define HAVE_MMAP 1
20637 rm -f conftest.mmap
20639 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20640 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20641 if test "${ac_cv_func_mmap_file+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650 if test "$cross_compiling" = yes; then
20651 ac_cv_func_mmap_file=no
20653 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20661 #include <sys/types.h>
20662 #include <sys/mman.h>
20670 fd = creat ("foo",0777);
20671 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20673 return (fd != (int) MAP_FAILED);
20678 rm -f conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_link") 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_try") 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_cv_func_mmap_file=yes
20700 echo "$as_me: program exited with status $ac_status" >&5
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ( exit $ac_status )
20705 ac_cv_func_mmap_file=no
20707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20712 ac_cpp='$CPP $CPPFLAGS'
20713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20719 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20720 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20721 if test "$ac_cv_func_mmap_file" = yes; then
20723 cat >>confdefs.h <<\_ACEOF
20724 #define HAVE_MMAP_FILE
20731 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20732 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20733 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 if test "$llvm_cv_os_type" = "Interix" ; then
20737 ac_cv_need_dev_zero_for_mmap=yes
20739 ac_cv_need_dev_zero_for_mmap=no
20743 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20744 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20745 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20747 cat >>confdefs.h <<\_ACEOF
20748 #define NEED_DEV_ZERO_FOR_MMAP 1
20753 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20755 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20756 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20758 if test "$ac_cv_func_mmap_file" = "no"
20760 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20761 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20765 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20766 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20768 ac_cpp='$CXXCPP $CPPFLAGS'
20769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 volatile unsigned long val = 1;
20781 __sync_synchronize();
20782 __sync_val_compare_and_swap(&val, 1, 0);
20783 __sync_add_and_fetch(&val, 1);
20784 __sync_sub_and_fetch(&val, 1);
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_try") 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829 { echo "$as_me:$LINENO: result: yes" >&5
20830 echo "${ECHO_T}yes" >&6; }
20832 cat >>confdefs.h <<\_ACEOF
20833 #define LLVM_HAS_ATOMICS 1
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 { echo "$as_me:$LINENO: result: no" >&5
20841 echo "${ECHO_T}no" >&6; }
20843 cat >>confdefs.h <<\_ACEOF
20844 #define LLVM_HAS_ATOMICS 0
20847 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20848 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20851 rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20855 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20856 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20857 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20858 if test "${llvm_cv_linux_mixed+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20874 error: Not x86-64 even if uname says so!
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 llvm_cv_linux_mixed=no
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 llvm_cv_linux_mixed=yes
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20937 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20939 if test "$llvm_cv_linux_mixed" = "yes"; then
20940 llvm_cv_target_arch="x86"
20946 for ac_func in __dso_handle
20948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20962 #define $ac_func innocuous_$ac_func
20964 /* System header to define __stub macros and hopefully few prototypes,
20965 which can conflict with char $ac_func (); below.
20966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20967 <limits.h> exists even on freestanding compilers. */
20970 # include <limits.h>
20972 # include <assert.h>
20977 /* Override any GCC internal prototype to avoid an error.
20978 Use char because int might match the return type of a GCC
20979 builtin and then its argument prototype would still apply. */
20984 /* The GNU C library defines this for functions which it implements
20985 to always fail with ENOSYS. Some functions are actually named
20986 something starting with __ and the normal name is an alias. */
20987 #if defined __stub_$ac_func || defined __stub___$ac_func
20994 return $ac_func ();
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_link") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21014 { (case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_try") 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest$ac_exeext'
21024 { (case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_try") 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 eval "$as_ac_var=yes"
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 eval "$as_ac_var=no"
21041 rm -f core conftest.err conftest.$ac_objext \
21042 conftest$ac_exeext conftest.$ac_ext
21044 ac_res=`eval echo '${'$as_ac_var'}'`
21045 { echo "$as_me:$LINENO: result: $ac_res" >&5
21046 echo "${ECHO_T}$ac_res" >&6; }
21047 if test `eval echo '${'$as_ac_var'}'` = yes; then
21048 cat >>confdefs.h <<_ACEOF
21049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21056 SHLIBEXT=$libltdl_cv_shlibext
21059 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21062 if test "${prefix}" = "NONE" ; then
21063 prefix="/usr/local"
21065 eval LLVM_PREFIX="${prefix}";
21066 eval LLVM_BINDIR="${prefix}/bin";
21067 eval LLVM_LIBDIR="${prefix}/lib";
21068 eval LLVM_DATADIR="${prefix}/share/llvm";
21069 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21070 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21071 eval LLVM_INCLUDEDIR="${prefix}/include";
21072 eval LLVM_INFODIR="${prefix}/info";
21073 eval LLVM_MANDIR="${prefix}/man";
21074 LLVM_CONFIGTIME=`date`
21086 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21087 LLVM_CONFIGTIME="(timestamp not enabled)"
21091 cat >>confdefs.h <<_ACEOF
21092 #define LLVM_PREFIX "$LLVM_PREFIX"
21096 cat >>confdefs.h <<_ACEOF
21097 #define LLVM_BINDIR "$LLVM_BINDIR"
21101 cat >>confdefs.h <<_ACEOF
21102 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21106 cat >>confdefs.h <<_ACEOF
21107 #define LLVM_DATADIR "$LLVM_DATADIR"
21111 cat >>confdefs.h <<_ACEOF
21112 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21116 cat >>confdefs.h <<_ACEOF
21117 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21121 cat >>confdefs.h <<_ACEOF
21122 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21126 cat >>confdefs.h <<_ACEOF
21127 #define LLVM_INFODIR "$LLVM_INFODIR"
21131 cat >>confdefs.h <<_ACEOF
21132 #define LLVM_MANDIR "$LLVM_MANDIR"
21136 cat >>confdefs.h <<_ACEOF
21137 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21141 cat >>confdefs.h <<_ACEOF
21142 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21146 if test "$BINDINGS_TO_BUILD" = auto ; then
21147 BINDINGS_TO_BUILD=""
21148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21152 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21158 binding_prereqs_failed=0
21159 for a_binding in $BINDINGS_TO_BUILD ; do
21160 case "$a_binding" in
21162 if test "x$OCAMLC" = x ; then
21163 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21164 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21165 binding_prereqs_failed=1
21167 if test "x$OCAMLDEP" = x ; then
21168 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21169 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21170 binding_prereqs_failed=1
21172 if test "x$OCAMLOPT" = x ; then
21173 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21174 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21176 if test "x$with_ocaml_libdir" != xauto ; then
21177 OCAML_LIBDIR=$with_ocaml_libdir
21180 ocaml_stdlib="`"$OCAMLC" -where`"
21181 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21183 # ocaml stdlib is beneath our prefix; use stdlib
21184 OCAML_LIBDIR=$ocaml_stdlib
21187 # ocaml stdlib is outside our prefix; use libdir/ocaml
21188 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21195 if test "$binding_prereqs_failed" = 1 ; then
21196 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21197 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21198 { (exit 1); exit 1; }; }
21201 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21202 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21203 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 ac_cpp='$CXXCPP $CPPFLAGS'
21208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212 oldcxxflags="$CXXFLAGS"
21213 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21214 cat >conftest.$ac_ext <<_ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_compile") 2>conftest.er1
21238 grep -v '^ *+' conftest.er1 >conftest.err
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
21243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest.$ac_objext'
21254 { (case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_try") 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 llvm_cv_cxx_visibility_inlines_hidden=yes
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 llvm_cv_cxx_visibility_inlines_hidden=no
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 CXXFLAGS="$oldcxxflags"
21274 ac_cpp='$CPP $CPPFLAGS'
21275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21281 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21282 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21283 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21284 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21287 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21292 if test "$llvm_cv_link_use_r" = "yes" ; then
21299 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21300 RDYNAMIC="-Wl,-export-dynamic"
21307 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21314 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21316 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21318 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21320 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21322 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21325 ac_config_files="$ac_config_files Makefile.config"
21328 ac_config_files="$ac_config_files llvm.spec"
21331 ac_config_files="$ac_config_files docs/doxygen.cfg"
21334 if test "${clang_src_root}" = ""; then
21335 clang_src_root="$srcdir/tools/clang"
21337 if test -f ${clang_src_root}/README.txt; then
21338 configh="include/clang/Config/config.h"
21339 doxy="docs/doxygen.cfg"
21340 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21342 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21346 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21349 ac_config_commands="$ac_config_commands setup"
21351 ac_config_commands="$ac_config_commands Makefile"
21354 ac_config_commands="$ac_config_commands Makefile.common"
21357 ac_config_commands="$ac_config_commands examples/Makefile"
21360 ac_config_commands="$ac_config_commands lib/Makefile"
21363 ac_config_commands="$ac_config_commands runtime/Makefile"
21366 ac_config_commands="$ac_config_commands test/Makefile"
21369 ac_config_commands="$ac_config_commands test/Makefile.tests"
21372 ac_config_commands="$ac_config_commands unittests/Makefile"
21375 ac_config_commands="$ac_config_commands tools/Makefile"
21378 ac_config_commands="$ac_config_commands utils/Makefile"
21381 ac_config_commands="$ac_config_commands projects/Makefile"
21384 ac_config_commands="$ac_config_commands bindings/Makefile"
21387 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21391 cat >confcache <<\_ACEOF
21392 # This file is a shell script that caches the results of configure
21393 # tests run on this system so they can be shared between configure
21394 # scripts and configure runs, see configure's option --config-cache.
21395 # It is not useful on other systems. If it contains results you don't
21396 # want to keep, you may remove or edit it.
21398 # config.status only pays attention to the cache file if you give it
21399 # the --recheck option to rerun configure.
21401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21403 # following values.
21407 # The following way of writing the cache mishandles newlines in values,
21408 # but we know of no workaround that is simple, portable, and efficient.
21409 # So, we kill variables containing newlines.
21410 # Ultrix sh set writes to stderr and can't be redirected directly,
21411 # and sets the high bit in the cache file unless we assign to the vars.
21413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21414 eval ac_val=\$$ac_var
21418 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21419 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21422 _ | IFS | as_nl) ;; #(
21423 *) $as_unset $ac_var ;;
21429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21430 *${as_nl}ac_space=\ *)
21431 # `set' does not quote correctly, so add quotes (double-quote
21432 # substitution turns \\\\ into \\, and sed turns \\ into \).
21435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21438 # `set' quotes correctly as required by POSIX, so do not add quotes.
21439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21453 if test -w "$cache_file"; then
21454 test "x$cache_file" != "x/dev/null" &&
21455 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21456 echo "$as_me: updating cache $cache_file" >&6;}
21457 cat confcache >$cache_file
21459 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21460 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21466 # Let make expand exec_prefix.
21467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21469 DEFS=-DHAVE_CONFIG_H
21473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21474 # 1. Remove the extension, and $U if already installed.
21475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21476 ac_i=`echo "$ac_i" | sed "$ac_script"`
21477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21478 # will be set to the directory where LIBOBJS objects are built.
21479 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21480 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21482 LIBOBJS=$ac_libobjs
21484 LTLIBOBJS=$ac_ltlibobjs
21487 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21488 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21489 Usually this means the macro was only invoked conditionally." >&5
21490 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&2;}
21492 { (exit 1); exit 1; }; }
21494 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21495 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21496 Usually this means the macro was only invoked conditionally." >&5
21497 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&2;}
21499 { (exit 1); exit 1; }; }
21502 : ${CONFIG_STATUS=./config.status}
21503 ac_clean_files_save=$ac_clean_files
21504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21505 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21507 cat >$CONFIG_STATUS <<_ACEOF
21509 # Generated by $as_me.
21510 # Run this file to recreate the current configuration.
21511 # Compiler output produced by configure, useful for debugging
21512 # configure, is in config.log if it exists.
21515 ac_cs_recheck=false
21517 SHELL=\${CONFIG_SHELL-$SHELL}
21520 cat >>$CONFIG_STATUS <<\_ACEOF
21521 ## --------------------- ##
21522 ## M4sh Initialization. ##
21523 ## --------------------- ##
21525 # Be Bourne compatible
21526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21529 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21530 # is contrary to our usage. Disable this feature.
21531 alias -g '${1+"$@"}'='"$@"'
21532 setopt NO_GLOB_SUBST
21534 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21536 BIN_SH=xpg4; export BIN_SH # for Tru64
21537 DUALCASE=1; export DUALCASE # for MKS sh
21541 # Avoid depending upon Character Ranges.
21542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21545 as_cr_digits='0123456789'
21546 as_cr_alnum=$as_cr_Letters$as_cr_digits
21548 # The user is always right.
21549 if test "${PATH_SEPARATOR+set}" != set; then
21550 echo "#! /bin/sh" >conf$$.sh
21551 echo "exit 0" >>conf$$.sh
21553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21561 # Support unset when possible.
21562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21570 # We need space, tab and new line, in precisely that order. Quoting is
21571 # there to prevent editors from complaining about space-tab.
21572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21573 # splitting by setting IFS to empty value.)
21578 # Find who we are. Look in the path if we contain no directory separator.
21580 *[\\/]* ) as_myself=$0 ;;
21581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21582 for as_dir in $PATH
21585 test -z "$as_dir" && as_dir=.
21586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21592 # We did not find ourselves, most probably we were run as `sh COMMAND'
21593 # in which case we are not to be found in the path.
21594 if test "x$as_myself" = x; then
21597 if test ! -f "$as_myself"; then
21598 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21599 { (exit 1); exit 1; }
21602 # Work around bugs in pre-3.0 UWIN ksh.
21603 for as_var in ENV MAIL MAILPATH
21604 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21612 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21613 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21614 LC_TELEPHONE LC_TIME
21616 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21617 eval $as_var=C; export $as_var
21619 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21623 # Required to use basename.
21624 if expr a : '\(a\)' >/dev/null 2>&1 &&
21625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21632 as_basename=basename
21638 # Name of the executable.
21639 as_me=`$as_basename -- "$0" ||
21640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21641 X"$0" : 'X\(//\)$' \| \
21642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21644 sed '/^.*\/\([^/][^/]*\)\/*$/{
21663 as_lineno_1=$LINENO
21664 as_lineno_2=$LINENO
21665 test "x$as_lineno_1" != "x$as_lineno_2" &&
21666 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21669 # uniformly replaced by the line number. The first 'sed' inserts a
21670 # line-number line after each line using $LINENO; the second 'sed'
21671 # does the real work. The second script uses 'N' to pair each
21672 # line-number line with the line containing $LINENO, and appends
21673 # trailing '-' during substitution so that $LINENO is not a special
21674 # case at line end.
21675 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21676 # scripts with optimization help from Paolo Bonzini. Blame Lee
21677 # E. McMahon (1931-1989) for sed's syntax. :-)
21689 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21692 ' >$as_me.lineno &&
21693 chmod +x "$as_me.lineno" ||
21694 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21695 { (exit 1); exit 1; }; }
21697 # Don't try to exec as it changes $[0], causing all sort of problems
21698 # (the dirname of $[0] is not the place where we might find the
21699 # original and so on. Autoconf is especially sensitive to this).
21700 . "./$as_me.lineno"
21701 # Exit status is that of the last command.
21706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21712 ECHO_C= ECHO_N= ECHO_T=
21713 case `echo -n x` in
21715 case `echo 'x\c'` in
21716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21723 if expr a : '\(a\)' >/dev/null 2>&1 &&
21724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21730 rm -f conf$$ conf$$.exe conf$$.file
21731 if test -d conf$$.dir; then
21732 rm -f conf$$.dir/conf$$.file
21738 if ln -s conf$$.file conf$$ 2>/dev/null; then
21740 # ... but there are two gotchas:
21741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21743 # In both cases, we have to default to `cp -p'.
21744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21746 elif ln conf$$.file conf$$ 2>/dev/null; then
21751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21752 rmdir conf$$.dir 2>/dev/null
21754 if mkdir -p . 2>/dev/null; then
21757 test -d ./-p && rmdir ./-p
21761 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21762 # systems may use methods other than mode bits to determine executability.
21763 cat >conf$$.file <<_ASEOF
21767 chmod +x conf$$.file
21768 if test -x conf$$.file >/dev/null 2>&1; then
21769 as_executable_p="test -x"
21775 # Sed expression to map a string onto a valid CPP name.
21776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21778 # Sed expression to map a string onto a valid variable name.
21779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21784 # Save the log message, to keep $[0] and so on meaningful, and to
21785 # report actual input values of CONFIG_FILES etc. instead of their
21786 # values after options handling.
21788 This file was extended by LLVM $as_me 3.1svn, which was
21789 generated by GNU Autoconf 2.60. Invocation command line was
21791 CONFIG_FILES = $CONFIG_FILES
21792 CONFIG_HEADERS = $CONFIG_HEADERS
21793 CONFIG_LINKS = $CONFIG_LINKS
21794 CONFIG_COMMANDS = $CONFIG_COMMANDS
21797 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21802 cat >>$CONFIG_STATUS <<_ACEOF
21803 # Files that config.status was made for.
21804 config_files="$ac_config_files"
21805 config_headers="$ac_config_headers"
21806 config_commands="$ac_config_commands"
21810 cat >>$CONFIG_STATUS <<\_ACEOF
21812 \`$as_me' instantiates files from templates according to the
21813 current configuration.
21815 Usage: $0 [OPTIONS] [FILE]...
21817 -h, --help print this help, then exit
21818 -V, --version print version number, then exit
21819 -q, --quiet do not print progress messages
21820 -d, --debug don't remove temporary files
21821 --recheck update $as_me by reconfiguring in the same conditions
21822 --file=FILE[:TEMPLATE]
21823 instantiate the configuration file FILE
21824 --header=FILE[:TEMPLATE]
21825 instantiate the configuration header FILE
21827 Configuration files:
21830 Configuration headers:
21833 Configuration commands:
21836 Report bugs to <bug-autoconf@gnu.org>."
21839 cat >>$CONFIG_STATUS <<_ACEOF
21841 LLVM config.status 3.1svn
21842 configured by $0, generated by GNU Autoconf 2.60,
21843 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21845 Copyright (C) 2006 Free Software Foundation, Inc.
21846 This config.status script is free software; the Free Software Foundation
21847 gives unlimited permission to copy, distribute and modify it."
21854 cat >>$CONFIG_STATUS <<\_ACEOF
21855 # If no file are specified by the user, then we need to provide default
21856 # value. By we need to know if files were specified by the user.
21862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21874 # Handling of the options.
21875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21878 echo "$ac_cs_version"; exit ;;
21879 --debug | --debu | --deb | --de | --d | -d )
21881 --file | --fil | --fi | --f )
21883 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21884 ac_need_defaults=false;;
21885 --header | --heade | --head | --hea )
21887 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21888 ac_need_defaults=false;;
21890 # Conflict between --help and --header
21891 { echo "$as_me: error: ambiguous option: $1
21892 Try \`$0 --help' for more information." >&2
21893 { (exit 1); exit 1; }; };;
21894 --help | --hel | -h )
21895 echo "$ac_cs_usage"; exit ;;
21896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21897 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21900 # This is an error.
21901 -*) { echo "$as_me: error: unrecognized option: $1
21902 Try \`$0 --help' for more information." >&2
21903 { (exit 1); exit 1; }; } ;;
21905 *) ac_config_targets="$ac_config_targets $1"
21906 ac_need_defaults=false ;;
21912 ac_configure_extra_args=
21914 if $ac_cs_silent; then
21916 ac_configure_extra_args="$ac_configure_extra_args --silent"
21920 cat >>$CONFIG_STATUS <<_ACEOF
21921 if \$ac_cs_recheck; then
21922 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21923 CONFIG_SHELL=$SHELL
21924 export CONFIG_SHELL
21925 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21929 cat >>$CONFIG_STATUS <<\_ACEOF
21933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21934 ## Running $as_me. ##
21940 cat >>$CONFIG_STATUS <<_ACEOF
21944 llvm_src="${srcdir}"
21948 cat >>$CONFIG_STATUS <<\_ACEOF
21950 # Handling of arguments.
21951 for ac_config_target in $ac_config_targets
21953 case $ac_config_target in
21954 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21955 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21956 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21957 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21958 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21959 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21960 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21961 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21962 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21963 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21964 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21965 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21966 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21967 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21968 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21969 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21970 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21971 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21972 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21973 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21974 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21975 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21976 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21977 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21978 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21979 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21980 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21982 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21983 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21984 { (exit 1); exit 1; }; };;
21989 # If the user did not use the arguments to specify the items to instantiate,
21990 # then the envvar interface is used. Set only those that are not.
21991 # We use the long form for the default assignment because of an extremely
21992 # bizarre bug on SunOS 4.1.3.
21993 if $ac_need_defaults; then
21994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21999 # Have a temporary directory for convenience. Make it in the build tree
22000 # simply because there is no reason against having it here, and in addition,
22001 # creating and moving files from /tmp can sometimes cause problems.
22002 # Hook for its removal unless debugging.
22003 # Note that there is a small window in which the directory will not be cleaned:
22004 # after its creation but before its name has been assigned to `$tmp'.
22008 trap 'exit_status=$?
22009 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22011 trap '{ (exit 1); exit 1; }' 1 2 13 15
22013 # Create a (secure) tmp directory for tmp files.
22016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22017 test -n "$tmp" && test -d "$tmp"
22020 tmp=./conf$$-$RANDOM
22021 (umask 077 && mkdir "$tmp")
22024 echo "$me: cannot create a temporary directory in ." >&2
22025 { (exit 1); exit 1; }
22029 # Set up the sed scripts for CONFIG_FILES section.
22032 # No need to generate the scripts if there are no CONFIG_FILES.
22033 # This happens for instance when ./config.status config.h
22034 if test -n "$CONFIG_FILES"; then
22041 for ac_last_try in false false false false false :; do
22042 cat >conf$$subs.sed <<_ACEOF
22043 SHELL!$SHELL$ac_delim
22044 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22045 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22046 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22047 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22048 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22049 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22050 exec_prefix!$exec_prefix$ac_delim
22051 prefix!$prefix$ac_delim
22052 program_transform_name!$program_transform_name$ac_delim
22053 bindir!$bindir$ac_delim
22054 sbindir!$sbindir$ac_delim
22055 libexecdir!$libexecdir$ac_delim
22056 datarootdir!$datarootdir$ac_delim
22057 datadir!$datadir$ac_delim
22058 sysconfdir!$sysconfdir$ac_delim
22059 sharedstatedir!$sharedstatedir$ac_delim
22060 localstatedir!$localstatedir$ac_delim
22061 includedir!$includedir$ac_delim
22062 oldincludedir!$oldincludedir$ac_delim
22063 docdir!$docdir$ac_delim
22064 infodir!$infodir$ac_delim
22065 htmldir!$htmldir$ac_delim
22066 dvidir!$dvidir$ac_delim
22067 pdfdir!$pdfdir$ac_delim
22068 psdir!$psdir$ac_delim
22069 libdir!$libdir$ac_delim
22070 localedir!$localedir$ac_delim
22071 mandir!$mandir$ac_delim
22072 DEFS!$DEFS$ac_delim
22073 ECHO_C!$ECHO_C$ac_delim
22074 ECHO_N!$ECHO_N$ac_delim
22075 ECHO_T!$ECHO_T$ac_delim
22076 LIBS!$LIBS$ac_delim
22077 build_alias!$build_alias$ac_delim
22078 host_alias!$host_alias$ac_delim
22079 target_alias!$target_alias$ac_delim
22080 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22082 CFLAGS!$CFLAGS$ac_delim
22083 LDFLAGS!$LDFLAGS$ac_delim
22084 CPPFLAGS!$CPPFLAGS$ac_delim
22085 ac_ct_CC!$ac_ct_CC$ac_delim
22086 EXEEXT!$EXEEXT$ac_delim
22087 OBJEXT!$OBJEXT$ac_delim
22089 CXXFLAGS!$CXXFLAGS$ac_delim
22090 ac_ct_CXX!$ac_ct_CXX$ac_delim
22092 subdirs!$subdirs$ac_delim
22093 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22094 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22095 build!$build$ac_delim
22096 build_cpu!$build_cpu$ac_delim
22097 build_vendor!$build_vendor$ac_delim
22098 build_os!$build_os$ac_delim
22099 host!$host$ac_delim
22100 host_cpu!$host_cpu$ac_delim
22101 host_vendor!$host_vendor$ac_delim
22102 host_os!$host_os$ac_delim
22103 target!$target$ac_delim
22104 target_cpu!$target_cpu$ac_delim
22105 target_vendor!$target_vendor$ac_delim
22106 target_os!$target_os$ac_delim
22108 HOST_OS!$HOST_OS$ac_delim
22109 TARGET_OS!$TARGET_OS$ac_delim
22110 LINKALL!$LINKALL$ac_delim
22111 NOLINKALL!$NOLINKALL$ac_delim
22112 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22113 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22114 ARCH!$ARCH$ac_delim
22115 ENDIAN!$ENDIAN$ac_delim
22116 GREP!$GREP$ac_delim
22117 EGREP!$EGREP$ac_delim
22118 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22119 BUILD_CC!$BUILD_CC$ac_delim
22120 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22121 BUILD_CXX!$BUILD_CXX$ac_delim
22122 CVSBUILD!$CVSBUILD$ac_delim
22123 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22124 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22125 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22126 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22127 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22128 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22129 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22130 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22132 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22133 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22134 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22135 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22136 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22137 ENABLE_PIC!$ENABLE_PIC$ac_delim
22138 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22139 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22142 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22144 elif $ac_last_try; then
22145 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22146 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22147 { (exit 1); exit 1; }; }
22149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22154 if test -n "$ac_eof"; then
22155 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22156 ac_eof=`expr $ac_eof + 1`
22159 cat >>$CONFIG_STATUS <<_ACEOF
22160 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22165 s/^/s,@/; s/!/@,|#_!!_#|/
22168 s/'"$ac_delim"'$/,g/; t
22170 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22171 ' >>$CONFIG_STATUS <conf$$subs.sed
22172 rm -f conf$$subs.sed
22173 cat >>$CONFIG_STATUS <<_ACEOF
22179 for ac_last_try in false false false false false :; do
22180 cat >conf$$subs.sed <<_ACEOF
22181 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22182 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22183 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22184 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22185 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22186 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22187 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22188 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22189 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22190 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22191 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22192 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22194 ifGNUmake!$ifGNUmake$ac_delim
22195 LN_S!$LN_S$ac_delim
22198 DATE!$DATE$ac_delim
22199 FIND!$FIND$ac_delim
22200 MKDIR!$MKDIR$ac_delim
22202 RANLIB!$RANLIB$ac_delim
22207 BINPWD!$BINPWD$ac_delim
22208 GRAPHVIZ!$GRAPHVIZ$ac_delim
22211 NEATO!$NEATO$ac_delim
22212 TWOPI!$TWOPI$ac_delim
22213 CIRCO!$CIRCO$ac_delim
22215 DOTTY!$DOTTY$ac_delim
22216 XDOT_PY!$XDOT_PY$ac_delim
22217 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22218 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22219 INSTALL_DATA!$INSTALL_DATA$ac_delim
22220 BZIP2!$BZIP2$ac_delim
22222 DOXYGEN!$DOXYGEN$ac_delim
22223 GROFF!$GROFF$ac_delim
22224 GZIPBIN!$GZIPBIN$ac_delim
22225 POD2HTML!$POD2HTML$ac_delim
22226 POD2MAN!$POD2MAN$ac_delim
22227 PDFROFF!$PDFROFF$ac_delim
22228 RUNTEST!$RUNTEST$ac_delim
22229 TCLSH!$TCLSH$ac_delim
22231 OCAMLC!$OCAMLC$ac_delim
22232 OCAMLOPT!$OCAMLOPT$ac_delim
22233 OCAMLDEP!$OCAMLDEP$ac_delim
22234 OCAMLDOC!$OCAMLDOC$ac_delim
22236 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22237 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22238 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22239 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22240 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22241 LIBADD_DL!$LIBADD_DL$ac_delim
22242 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22243 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22244 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22245 USE_UDIS86!$USE_UDIS86$ac_delim
22246 USE_OPROFILE!$USE_OPROFILE$ac_delim
22247 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22248 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22249 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22250 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22251 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22252 MMAP_FILE!$MMAP_FILE$ac_delim
22253 SHLIBEXT!$SHLIBEXT$ac_delim
22254 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22255 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22256 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22257 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22258 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22259 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22260 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22261 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22262 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22263 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22264 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22265 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22266 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22267 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22268 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22269 RPATH!$RPATH$ac_delim
22270 RDYNAMIC!$RDYNAMIC$ac_delim
22271 LIBOBJS!$LIBOBJS$ac_delim
22272 LTLIBOBJS!$LTLIBOBJS$ac_delim
22275 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22277 elif $ac_last_try; then
22278 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22279 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22280 { (exit 1); exit 1; }; }
22282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22286 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22287 if test -n "$ac_eof"; then
22288 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22289 ac_eof=`expr $ac_eof + 1`
22292 cat >>$CONFIG_STATUS <<_ACEOF
22293 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22297 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22298 s/^/s,@/; s/!/@,|#_!!_#|/
22301 s/'"$ac_delim"'$/,g/; t
22303 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22304 ' >>$CONFIG_STATUS <conf$$subs.sed
22305 rm -f conf$$subs.sed
22306 cat >>$CONFIG_STATUS <<_ACEOF
22313 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22314 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22315 # trailing colons and then remove the whole line if VPATH becomes empty
22316 # (actually we leave an empty line to preserve line numbers).
22317 if test "x$srcdir" = x.; then
22318 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22319 s/:*\$(srcdir):*/:/
22320 s/:*\${srcdir}:*/:/
22322 s/^\([^=]*=[ ]*\):*/\1/
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22329 fi # test -n "$CONFIG_FILES"
22332 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22335 :[FHLC]) ac_mode=$ac_tag; continue;;
22337 case $ac_mode$ac_tag in
22339 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22340 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22341 { (exit 1); exit 1; }; };;
22342 :[FH]-) ac_tag=-:-;;
22343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22360 -) ac_f="$tmp/stdin";;
22361 *) # Look for the file first in the build tree, then in the source tree
22362 # (if the path is not absolute). The absolute path cannot be DOS-style,
22363 # because $ac_f cannot contain `:'.
22367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22369 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22370 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22371 { (exit 1); exit 1; }; };;
22373 ac_file_inputs="$ac_file_inputs $ac_f"
22376 # Let's still pretend it is `configure' which instantiates (i.e., don't
22377 # use $as_me), people would be surprised to read:
22378 # /* config.h. Generated by config.status. */
22379 configure_input="Generated from "`IFS=:
22380 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22381 if test x"$ac_file" != x-; then
22382 configure_input="$ac_file. $configure_input"
22383 { echo "$as_me:$LINENO: creating $ac_file" >&5
22384 echo "$as_me: creating $ac_file" >&6;}
22388 *:-:* | *:-) cat >"$tmp/stdin";;
22393 ac_dir=`$as_dirname -- "$ac_file" ||
22394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22395 X"$ac_file" : 'X\(//\)[^/]' \| \
22396 X"$ac_file" : 'X\(//\)$' \| \
22397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22403 /^X\(\/\/\)[^/].*/{
22418 -*) as_dir=./$as_dir;;
22420 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22424 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22425 *) as_qdir=$as_dir;;
22427 as_dirs="'$as_qdir' $as_dirs"
22428 as_dir=`$as_dirname -- "$as_dir" ||
22429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22430 X"$as_dir" : 'X\(//\)[^/]' \| \
22431 X"$as_dir" : 'X\(//\)$' \| \
22432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22438 /^X\(\/\/\)[^/].*/{
22451 test -d "$as_dir" && break
22453 test -z "$as_dirs" || eval "mkdir $as_dirs"
22454 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22455 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22456 { (exit 1); exit 1; }; }; }
22460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22462 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22463 # A ".." for each directory in $ac_dir_suffix.
22464 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22465 case $ac_top_builddir_sub in
22466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22470 ac_abs_top_builddir=$ac_pwd
22471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22472 # for backward compatibility:
22473 ac_top_builddir=$ac_top_build_prefix
22476 .) # We are building in place.
22478 ac_top_srcdir=$ac_top_builddir_sub
22479 ac_abs_top_srcdir=$ac_pwd ;;
22480 [\\/]* | ?:[\\/]* ) # Absolute name.
22481 ac_srcdir=$srcdir$ac_dir_suffix;
22482 ac_top_srcdir=$srcdir
22483 ac_abs_top_srcdir=$srcdir ;;
22484 *) # Relative name.
22485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22486 ac_top_srcdir=$ac_top_build_prefix$srcdir
22487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22504 cat >>$CONFIG_STATUS <<\_ACEOF
22505 # If the template does not know about datarootdir, expand it.
22506 # FIXME: This hack should be removed a few years after 2.60.
22507 ac_datarootdir_hack=; ac_datarootdir_seen=
22509 case `sed -n '/datarootdir/ {
22518 ' $ac_file_inputs` in
22519 *datarootdir*) ac_datarootdir_seen=yes;;
22520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22521 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22522 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22524 cat >>$CONFIG_STATUS <<_ACEOF
22525 ac_datarootdir_hack='
22526 s&@datadir@&$datadir&g
22527 s&@docdir@&$docdir&g
22528 s&@infodir@&$infodir&g
22529 s&@localedir@&$localedir&g
22530 s&@mandir@&$mandir&g
22531 s&\\\${datarootdir}&$datarootdir&g' ;;
22535 # Neutralize VPATH when `$srcdir' = `.'.
22536 # Shell code in configure.ac might set extrasub.
22537 # FIXME: do we really want to maintain this feature?
22538 cat >>$CONFIG_STATUS <<_ACEOF
22542 cat >>$CONFIG_STATUS <<\_ACEOF
22544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22545 s&@configure_input@&$configure_input&;t t
22546 s&@top_builddir@&$ac_top_builddir_sub&;t t
22547 s&@srcdir@&$ac_srcdir&;t t
22548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22549 s&@top_srcdir@&$ac_top_srcdir&;t t
22550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22551 s&@builddir@&$ac_builddir&;t t
22552 s&@abs_builddir@&$ac_abs_builddir&;t t
22553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22554 s&@INSTALL@&$ac_INSTALL&;t t
22555 $ac_datarootdir_hack
22556 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22561 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22562 which seems to be undefined. Please make sure it is defined." >&5
22563 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22564 which seems to be undefined. Please make sure it is defined." >&2;}
22568 -) cat "$tmp/out"; rm -f "$tmp/out";;
22569 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22578 # Transform confdefs.h into a sed script `conftest.defines', that
22579 # substitutes the proper values into config.h.in to produce config.h.
22580 rm -f conftest.defines conftest.tail
22581 # First, append a space to every undef/define line, to ease matching.
22582 echo 's/$/ /' >conftest.defines
22583 # Then, protect against being on the right side of a sed subst, or in
22584 # an unquoted here document, in config.status. If some macros were
22585 # called several times there might be several #defines for the same
22586 # symbol, which is useless. But do not sort them, since the last
22587 # AC_DEFINE must be honored.
22588 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22589 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22590 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22591 # PARAMS is the parameter list in the macro definition--in most cases, it's
22592 # just an empty string.
22593 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22594 ac_dB='\\)[ (].*,\\1define\\2'
22602 s/^[ ]*#[ ]*define[ ][ ]*//
22607 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22608 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22609 ' >>conftest.defines
22611 # Remove the space that was appended to ease matching.
22612 # Then replace #undef with comments. This is necessary, for
22613 # example, in the case of _POSIX_SOURCE, which is predefined and required
22614 # on some systems where configure will not decide to define it.
22615 # (The regexp can be short, since the line contains either #define or #undef.)
22617 s,^[ #]*u.*,/* & */,' >>conftest.defines
22619 # Break up conftest.defines:
22620 ac_max_sed_lines=50
22622 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22623 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22624 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22626 ac_in='$ac_file_inputs'
22627 ac_out='"$tmp/out1"'
22628 ac_nxt='"$tmp/out2"'
22632 # Write a here document:
22633 cat >>$CONFIG_STATUS <<_ACEOF
22634 # First, check the format of the line:
22635 cat >"\$tmp/defines.sed" <<\\CEOF
22636 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22637 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22641 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22643 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22644 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22645 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22646 grep . conftest.tail >/dev/null || break
22647 rm -f conftest.defines
22648 mv conftest.tail conftest.defines
22650 rm -f conftest.defines conftest.tail
22652 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22654 if test x"$ac_file" != x-; then
22655 echo "/* $configure_input */" >"$tmp/config.h"
22656 cat "$ac_result" >>"$tmp/config.h"
22657 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22659 echo "$as_me: $ac_file is unchanged" >&6;}
22662 mv "$tmp/config.h" $ac_file
22665 echo "/* $configure_input */"
22671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22672 echo "$as_me: executing $ac_file commands" >&6;}
22677 case $ac_file$ac_mode in
22678 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22679 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22680 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22681 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22682 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22684 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22686 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22688 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22690 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22692 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22694 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22696 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22698 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22700 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22702 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22709 { (exit 0); exit 0; }
22711 chmod +x $CONFIG_STATUS
22712 ac_clean_files=$ac_clean_files_save
22715 # configure is writing to config.log, and then calls config.status.
22716 # config.status does its own redirection, appending to config.log.
22717 # Unfortunately, on DOS this fails, as config.log is still kept open
22718 # by configure, so config.status won't be able to write to it; its
22719 # output is simply discarded. So we exec the FD to /dev/null,
22720 # effectively closing config.log, so it can be properly (re)opened and
22721 # appended to by config.status. When coming back to configure, we
22722 # need to make the FD available again.
22723 if test "$no_create" != yes; then
22725 ac_config_status_args=
22726 test "$silent" = yes &&
22727 ac_config_status_args="$ac_config_status_args --quiet"
22729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22732 # would make configure fail if this is the last instruction.
22733 $ac_cs_success || { (exit 1); exit 1; }
22737 # CONFIG_SUBDIRS section.
22739 if test "$no_recursion" != yes; then
22741 # Remove --cache-file and --srcdir arguments so they do not pile up.
22742 ac_sub_configure_args=
22744 eval "set x $ac_configure_args"
22748 if test -n "$ac_prev"; then
22753 -cache-file | --cache-file | --cache-fil | --cache-fi \
22754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22755 ac_prev=cache_file ;;
22756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22760 --config-cache | -C)
22762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22766 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22768 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22772 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22774 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22778 # Always prepend --prefix to ensure using the same prefix
22779 # in subdir configurations.
22780 ac_arg="--prefix=$prefix"
22782 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22784 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22787 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22789 # Do not complain, so a configure script can configure whichever
22790 # parts of a large source tree are present.
22791 test -d "$srcdir/$ac_dir" || continue
22793 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22794 echo "$as_me:$LINENO: $ac_msg" >&5
22798 -*) as_dir=./$as_dir;;
22800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22804 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22805 *) as_qdir=$as_dir;;
22807 as_dirs="'$as_qdir' $as_dirs"
22808 as_dir=`$as_dirname -- "$as_dir" ||
22809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22810 X"$as_dir" : 'X\(//\)[^/]' \| \
22811 X"$as_dir" : 'X\(//\)$' \| \
22812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22818 /^X\(\/\/\)[^/].*/{
22831 test -d "$as_dir" && break
22833 test -z "$as_dirs" || eval "mkdir $as_dirs"
22834 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22835 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22836 { (exit 1); exit 1; }; }; }
22840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22843 # A ".." for each directory in $ac_dir_suffix.
22844 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22845 case $ac_top_builddir_sub in
22846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22850 ac_abs_top_builddir=$ac_pwd
22851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22852 # for backward compatibility:
22853 ac_top_builddir=$ac_top_build_prefix
22856 .) # We are building in place.
22858 ac_top_srcdir=$ac_top_builddir_sub
22859 ac_abs_top_srcdir=$ac_pwd ;;
22860 [\\/]* | ?:[\\/]* ) # Absolute name.
22861 ac_srcdir=$srcdir$ac_dir_suffix;
22862 ac_top_srcdir=$srcdir
22863 ac_abs_top_srcdir=$srcdir ;;
22864 *) # Relative name.
22865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22866 ac_top_srcdir=$ac_top_build_prefix$srcdir
22867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22874 # Check for guested configure; otherwise get Cygnus style configure.
22875 if test -f "$ac_srcdir/configure.gnu"; then
22876 ac_sub_configure=$ac_srcdir/configure.gnu
22877 elif test -f "$ac_srcdir/configure"; then
22878 ac_sub_configure=$ac_srcdir/configure
22879 elif test -f "$ac_srcdir/configure.in"; then
22880 # This should be Cygnus configure.
22881 ac_sub_configure=$ac_aux_dir/configure
22883 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22884 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22888 # The recursion is here.
22889 if test -n "$ac_sub_configure"; then
22890 # Make the cache file name correct relative to the subdirectory.
22891 case $cache_file in
22892 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22893 *) # Relative name.
22894 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22897 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22898 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22899 # The eval makes quoting arguments work.
22900 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22901 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22902 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22903 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22904 { (exit 1); exit 1; }; }